Unlike 17.04, sudo service stop gdm
or sudo service stop lightdm
will return stop: unrecognized service
, so my question being how to stop the GUI process in this bleeding edge version?
Unlike 17.04, sudo service stop gdm
or sudo service stop lightdm
will return stop: unrecognized service
, so my question being how to stop the GUI process in this bleeding edge version?
Instead of killing the
gdm
, you can change the systemd target.Changing the systemd target
As mentioned here, starting from 16.04, Ubuntu uses
systemd
and the boot process relies on a set oftargets
. Eachtarget
defines the system software that Ubuntu must run.This is a list of
targets
for Ubuntu:To stop the GUI, you can change the
target
. The system checks all the running system software and kills those not included in the specified target. In consequence, if you change to themulti-user.target
target, the GUI will be killed.To change the "target" and kill the GUI:
To make this the default "target" (and start booting your computer without GUI), you can use:
To stop:
To start:
To stop it:
To disable it completely:
To start it:
and to re-enable it:
To see the actually running services