Booting in to the command prompt January 22, 2006Posted by Carthik in commands, snippets, ubuntu.
Recently, I switched to using multiple monitors at work. At home, however, I have only the laptop screen. I did not want the GUI login (GDM/KDM) to come up on boot. I wanted to be able to change the xorg.conf file before starting X, depending on whether I was at home or at work.
I found a reversible way to disable booting into the graphical display.
To disable graphical login (to log into the command prompt) do:
$echo "false" | sudo tee /etc/X11/default-display-manager
The next time you reboot, you will find yourself staring at the command prompt.
To enable it again, do:
$echo "/usr/bin/gdm" | sudo tee /etc/X11/default-display-manager
Note: replace gdm in the above with kdm if you use kde’s display manager, or xdm, if, for some reason you use that.
Hat tip to Peter Garrett on the ubuntu-users list.