Skip to content

Instantly share code, notes, and snippets.

@gp187
Created February 1, 2017 09:56
Show Gist options
  • Save gp187/c7da5cc622f5379fdca78c5e4f581e94 to your computer and use it in GitHub Desktop.
Save gp187/c7da5cc622f5379fdca78c5e4f581e94 to your computer and use it in GitHub Desktop.
OnStartup: no UI and No GUI. Just login screen for ubuntu 16
To boot to console:
`sudo systemctl set-default multi-user.target`
You must then edit /etc/default/grub by removing splash from the GRUB command line. (Remember to update GRUB afterward: sudo update-grub).
To get to the Unity desktop from the console, you must enter the command:
sudo systemctl start lightdm.service
(The usual startx command doesn't work with Unity.)
To restore boot to GUI:
sudo systemctl set-default graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment