Skip to content

Instantly share code, notes, and snippets.

@kossoy
Last active August 24, 2016 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kossoy/1a7a2dd8f6d1c465c71a9f809b5b1404 to your computer and use it in GitHub Desktop.
Save kossoy/1a7a2dd8f6d1c465c71a9f809b5b1404 to your computer and use it in GitHub Desktop.
Prevent GUI login ubuntu
Edit /etc/default/grub with your favourite editor, e.g. vi:
sudo vi /etc/default/grub
Find this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to:
GRUB_CMDLINE_LINUX_DEFAULT="text"
Update GRUB:
sudo update-grub
For systems that use systemd

This is an additional step for systemd releases, e.g. Ubuntu 15.04, the steps above for grub are still necessary. You need to tell systemd to not load the graphical login manager:

sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target
Another method (for systemd)
 echo  "manual" | sudo tee -a /etc/init/lightdm.override
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment