In previous versions of Ubuntu I could get the computer to boot into console mode by setting the variable GRUB_CMDLINE_LINUX_DEFAULT to "text" in the file /etc/default/grub and run sudo update-grub. In Ubuntu 11.10, however, it has no effect - I am still presented with the LightDM login screen. Any clues?

link|improve this question

60% accept rate
feedback

4 Answers

up vote 5 down vote accepted

That's a bug [1] and a fix has been commited in the packaging vcs, the issue should be fixed with the next lightdm upload.

[1] https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/873334

link|improve this answer
1  
Received the update of lightdm (1.0.6) today and now the GRUB setting works. – August Karlstrom Nov 11 '11 at 16:08
feedback

Okay another way would be to disable the lightdm service in init:

/etc/init/lightdm.conf

in there there is a section like this:

start on (filesystem
and started dbus
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udev-fallback-graphics))

commenting out this block with # should prevent Upstart to run your window manager.

Hopefully this works for you.

Greetings again from switzerland, Michael

link|improve this answer
I commented out the start section but after reboot I only got a black screen after the Ubuntu logo (forcing me to go into rescue mode and restore the lightdm.conf file). – August Karlstrom Oct 21 '11 at 13:15
feedback

what you setup with this option in grub config is only whether you see the text messages floating at bootup, not whether Ubuntu boots into X or into a console mode.

If you want to boot into console mode you have to prevent your window manager to be started at bootup. You can remove the service by invoking

sudo update-rc.d -f gdm remove

The upper line removes Gnome from being started at boot up. For LightDM this line needs to be changed to

sudo update-rc.d -f lightdm remove

I did not try that, because i do not have LightDM set up.

I hope this helps you.

Hint: to reset the configuration, the following command should work:

sudo update-rc.d lightdm defaults

Please be sure you know what you re doing.

Greetings from Switzerland, Michael

link|improve this answer
Running the update-rc.d command did not help unfortunately. If I remember correctly, removing the gdm service did not do the trick either and that is why I used the GRUB solution which worked in Ubuntu 11.04. – August Karlstrom Oct 21 '11 at 12:35
feedback

I did following

Step 1 First update your repository by running

sudo apt-get update

Step 2 There is some bug in old version of lightdm, so we need to upgrade the same. To do so run,

sudo apt-get install lightdm

Step 3 Now we have to modify grub config. Step 3a Open /etc/default/grub with your faviourite editor and change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="text"

Step 3b Also comment GRUB_HIDDEN_TIMEOUT=0 This line is for unhiding the GRUB menu

Step 4 Now we will upgrade GRUB configuration

sudo update-grub

Step 5 Ubuntu 11.10 Desktop edition use lightdm for GUI. We need to disable the same

sudo update-rc.d -f lightdm remove

Step 6 Now restart your machine.

Found at Disable GUI Boot in Ubuntu 11.10

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.