Install visual graphical interface in centOS7

Install visual graphical interface in centOS7

1: Check whether yum is available.
Enter yum list. If the following situation occurs, it means that it is not available.
Insert image description here

2: Download the visual graphical interface
2.1 and install x Windows System.
Input: yum groupinstall “X Window System”

Insert image description here

During the download process, the following situations will occur:

Is this ok [y/d/n]: y We just fill in y at the end and the system will execute it automatically

Insert image description here
When you finally see this, it means the download is complete!
Insert image description here
2.2 Check whether the graphical interface software name matches:

Enter: yum grouplist to view the following names.

Insert image description here2.3 Finally continue to enter: yum groupinstall “GNOME Desktop” Note: add quotation marks

You need to wait patiently during the installation process.

2.4 Finally enter the graphical interface: enter startx

【root @bogon ~】 # startx

2.5 Finally done!
Insert image description here
Three: After the installation is completed, if you want the system to enter this graphical interface by default:

Set via the command line:

This command checks the current mode

systemctl get-default

Start the graphical interface at boot

systemctl set-default graphical.target (graphical interface)
reboot (restart the system)

Start character interface mode at boot

systemctl set-default multi-user.target (character interface mode)
reboot (restart the system)

If you want to uninstall the graphical interface, it is relatively simple:

yum groupremove "GNOME Desktop"

After the uninstallation is completed, if you enter startx again, you will not be able to enter the graphical interface again.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43741718/article/details/132166195