How do i switch from graphical to non-graphical target when using systemd?
-
Systemd uses the concept of targets instead of runlevels. The default target is called graphical.target, meaning you desktop display manager is running.
To check the default target.
$ systemctl get-default graphical.target
isolate NAME
Start the unit specified on the command line and its dependencies and stop all others. If
a unit name with no extension is given, an extension of ".target" will be assumed. This is similar to changing the runlevel in a traditional init system. The isolate
command will immediately stop processes that are not enabled in the new unit, possibly
including the graphical environment or terminal you are currently using.
Note that this is allowed only on units where AllowIsolate= is enabled. See
systemd.unit(5) for details.To switch it to a non graphical target, you can change it to:
multi-user.target - loaded active active Multi-User System$ systemctl isolate multi-user.target
To check all targets.
$ systemctl list-units --type=target UNIT LOAD ACTIVE SUB DESCRIPTION basic.target loaded active active Basic System cryptsetup.target loaded active active Encrypted Volumes ... ... ...
© Lightnetics 2024