Wednesday, December 22, 2010

Text boot and disabling GDM in Ubuntu

This is something that I made several times, but I always forget how to do it, so now I'll take note to help a bit to my mind...

If you for some reason don’t want graphical login (GDM, KDM, etc) when booting Ubuntu, here’s how to do it. This also shows how to get rid of the splash image when booting, if you would rather have the good old black screen with the whole boot process shown.

This applies to Ubuntu 10.04 (Lucid), 10.10 (Maverick) and possibly some earlier versions. Here we have an easy way:

To disable GDM/KDM/etc, do the following:

vi /etc/default/grub

and change the line:

GRUB_CMDLINE_LINUX=""
to GRUB_CMDLINE_LINUX="text"

To show boot messages and disable the splash image, remove quiet splash from GRUB_CMDLINE_LINUX_DEFAULT so that it reads GRUB_CMDLINE_LINUX_DEFAULT="" (If you want the splash image and some text, use splash).

Run:
sudo update-grub

Now boot, and try it ;)