1

i need change default runlevel to ubuntu server 14.04. I installed GUI to manage the hp printers and now i need return to runlevel 3, i edit the file /etc/init/rc-sysinit.conf and modify the line:

env DEFAULT_RUNLEVEL=2

to

env DEFAULT_RUNLEVEL=3

But every boot start in graphical mode

stecog
  • 111
  • 4
  • Did it worked `sudo init 3` ? The default place in RH were ` /etc/inittab` if I remember well. I see you have done as suggested [here](http://serverfault.com/a/147440). – Hastur Jan 21 '16 at 14:09
  • yes, but it happens nothing – stecog Jan 21 '16 at 14:11
  • You may find interesting to read this [answer](http://askubuntu.com/a/615639/196535) for grub setting of the RUNLEVEL. Why did you change the default level and not only the current one? BTW the differences between RUNLEVEL 2 and 3 is the [network support](https://en.wikipedia.org/wiki/Runlevel). – Hastur Jan 21 '16 at 14:31
  • OK, how stop the graphical mode on boot? – stecog Jan 21 '16 at 14:36
  • Please make it more clean, do you mean the [X display manager](https://en.wikipedia.org/wiki/X_display_manager_%28program_type%29)? In case which is (lightdm...)? Search directly for the one you need. PS>I don't know if your Ubuntu has a _SystemV_ or _upstart_ as [it seems](http://superuser.com/questions/151330/ubuntu-control-the-init-startup?rq=1). They have different RUNLEVEL 3 meanings. If your question is different from the one you posted, please [edit] it. – Hastur Jan 21 '16 at 14:48

1 Answers1

0

I resolved adding text to line in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="text"

type after:

update-grub

and reboot, now works!

stecog
  • 111
  • 4
  • So you forced it from grub. Good. Glad that the [answer](http://askubuntu.com/questions/615634/how-to-set-default-runlevel/615639#615639) about the grub setting of the RUNLEVEL pointed you on the right direction. Please [edit] your answer and add some reference that you found of the value admitted for `GRUB_CMDLINE_LINUX_DEFAULT` it can help someone else too. :) – Hastur Jan 21 '16 at 16:06