The body of the

CentOS7 does not have a graphical interface by default, but many of us are used to Windows graphical interface, always want to have a graphical interface to facilitate us to use, here introduce CentOS7 graphical desktop system installation method.

1. Enter the root mode

Due to limited permissions, we need to enter the root mode. You can log in as root when the system starts up or switch to root when the system is running.

2. Install X window system

1. Install X(X Window System) first

Yum groupinstall “X Window System” //

Then the system will automatically find the nearest network to download the relevant files

Select Y and start downloading the package you want

Select Y to start the installation

When Complete! The installation is successful.

Here we can check the software we have installed and the software we can install with the command

yum grouplist

Install GNOME

Then we started installing the graphical interface software we needed, GNOME(GNOME Desktop).

Special attention !!!! No packages in any requested group available to install or update. ** This is because different versions of CentOS may have different software names (other Linux systems are similar).

As shown above, the installation command is:

yum groupinstall “GNOME Desktop” “Graphical Administration Tools”

Select Y to start downloading the package you want to install

At this point the installation is complete.

In this case, you can run the startx command to enter the GUI. It is slow to enter the GUI for the first time. Please be patient. (Restart may be required. Run the reboot command.)

Ps:

  • If the vm cannot be opened after the installation is complete, we need to adjust the ** allocated memory size (note not the disk size) of the VM. **1024 MB is almost sufficient.
  • If an error message 0x0000005C is displayed on the VM after the installation is complete, disable 3D acceleration on the VM (deselected).

Update the default running level of the system

After the above operation, the system startup is still the command line page by default, we need to switch. If you want the system to start as a graphical window, you need to execute the following command

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target