Install graphical interface on Ubuntu

Installing the graphical interface on Ubuntu can be completed by following these steps:

  1. Install Ubuntu Server: If you don't have the Ubuntu Server version installed yet, you need to install it first. Download the latest Ubuntu Server ISO image file from the official Ubuntu website (https://ubuntu.com/download/server) and follow the instructions to install it on your computer.

  2. Install the graphical interface package: Once the Ubuntu Server installation is complete and you have logged into the system, you can install the graphical interface package with the following command:

sudo apt-get update
sudo apt-get install ubuntu-desktop

This will install the Ubuntu desktop environment and its associated packages.

  1. Configure the default display manager: Once the installation is complete, you will be asked to select a default display manager. You can choose LightDM, GDM or other available display managers. Use the Tab key to select the desired display manager and press Enter to confirm.

  2. Start the graphical interface: Once the installation and configuration are complete, you can start the graphical interface using the following command:

sudo systemctl start graphical.target
  1. Set automatic startup of the graphical interface: If you want the system to automatically enter the graphical interface every time it is started, you can use the following command:
sudo systemctl set-default graphical.target
  1. Reboot your system: Finally, for the changes to take effect, you can reboot your system using the following command:
sudo reboot

After the system restarts, you should enter the graphical interface. You can log in to the Ubuntu desktop environment by entering your username and password through the login interface.

Please note that installing the graphical interface may take some time and consume certain system resources. If your computer has a lower configuration or you want to keep your system lightweight, you may consider using a lightweight desktop environment (such as Xfce, LXQt, etc.) instead of the full Ubuntu desktop environment. You can install selected lightweight desktop environment packages in a similar manner.

Guess you like

Origin blog.csdn.net/qq_36146442/article/details/132859231