how to disable gui for servers
This commit is contained in:
parent
2625545e1f
commit
f1b30050eb
1 changed files with 22 additions and 0 deletions
22
how_to_disable_gui.md
Normal file
22
how_to_disable_gui.md
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Disable GUI
|
||||||
|
# Tested on debian 11
|
||||||
|
|
||||||
|
Pretty easy, apparently all is needed is the command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl set-default multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
And to go back to GUI on boot
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl set-default graphical.target
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
If the system starts without GUI, but you want to start the
|
||||||
|
GUI at some point, you can use the command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
startx
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue