How to disable or enable the GUI when the Ubuntu desktop starts

01-09-2023

The editor of this article will introduce in detail how to disable or enable the GUI when the Ubuntu desktop starts. The content is detailed, the steps are clear, and the details are handled properly. I hope this how to disable or enable the GUI when the Ubuntu desktop starts. Follow the editor's thinking and slowly deepen, let's learn new knowledge together.

u=1541257222

The following command will disable the GUI on boot, so on reboot the system will boot to the multi-user target:

$ sudo systemctl set-default multi-user

Restart or logout from the current session to quit the GUI:

$ gnome-session-quit

How to enable GUI at startup

Since you have installed GUI on Ubuntu 20.04 server/desktop, you can enable GUI to start at system startup by executing the following command:

$ sudo systemctl set-default graphical

Manually start the GUI from the command line

For GNOME GUI installations with the default display manager GDM, you can start the GUI from the command line by executing the following command:

$ sudo systemctl start gdm3

Read here, this article The article on how to disable or enable the GUI when the Ubuntu desktop starts has been introduced. If you want to master the knowledge points of this article, you need to practice it yourself before you can understand it. If you want to know more articles about related content, please pay attention to Yisu Cloud Industry News channel.

Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us