Boot Linux into CLI or GUI by Default

  • Boot systemd based Linux into CLI instead of GUI to minimize CPU/RAM usage, but also have the option of booting up the Desktop Environment if you need it.
  • https://unix.stackexchange.com/questions/90554/how-to-boot-linux-to-command-line-mode-instead-of-gui

Switch The Current Session

# Switch current session to tty (virtual console)
sudo systemctl isolate multi-user.target

# Switch current session to GUI
sudo systemctl isolate graphical.target

Set Default Session Type For Boot

# Set tty as default boot (virtual console)
sudo systemctl set-default multi-user.target

# Set GUI as default boot
sudo systemctl set-default graphical.target

NOTE: Secondary Networks will not work by default in KDE Plasma in multi-user.target until you log in, need to change the following:

  • You need to set the “All users may connect to this network” option in Network Settings for that network.
  • https://superuser.com/questions/16090/how-to-force-networkmanager-to-make-a-connection-before-login 532dce313fc9f1a95dfad7af1956be7d.png

Resource Usage Comparison

  • Using Plasma KDE desktop evironment 03162e1a4fdb03be7137bc534e69c1e1.png

Last updated on July 09, 2024. For any questions/feedback, email me at blog@zinchuk.xyz.