Disable GUI on modern Debian

Software

This is how you disable the GUI after logging in and launching a shell:

sudo systemctl set-default multi-user.target
sudo systemctl reboot

I inadvertently installed a graphical environment installing a new Debian Xen test server. This will let you reboot to a tty.

For fellow BSD people, remember that the systemctl(8) command has also kudzu’d shutdown(8) on most Linux distros now. I wonder how long it’ll take for sudoedit(8) to be replaced with systemctl text-editor-edit.

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.