This is a cache of https://discuss.96boards.org/t/debian-os-gui-disable/682. It is a snapshot of the page at 2024-11-01T03:50:17.184+0000.
Debian OS GUI Disable - DragonBoard410c - 96Boards Forum

Debian OS GUI Disable

Hello,

Is there an easy way to disable the GUI in Debian? I would like to have a command line only system. I have tried to disable the GUI program, but cannot find KDE or Gnome. Am I forced to recompile with the GUI option deselected? Thank you for your time!

on a running system, you can change the ‘default’ target to be console only:

systemctl set-default multi-user.target

More info here: https://wiki.archlinux.org/index.php/systemd (i am sure there is a Debian/ubuntu wiki too… but i usually refer to this page)

Send “text” arg in the kernel cmdline to boot to console mode.

later to go to gui mode

export DISPLAY=:0.0
startlxde &
xterm &

@vinaysimha: this no longer works actually. Using ‘text’ in bootargs is the old method that worked ~1.5 year ago before we started using systemd in our Debian (or ubuntu) builds.

You can set the boot target in the bootargs but instead of ‘text’ you need to add ‘systemd.unit=multi-user.target’ instead.

Once the system is started , if you want to start the GUI, you can run:

systemctl isolate graphical.target

Hi ndec and others.

Thanks for the responses. ndec, your solution was simple and works great! Thanks again!