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.
2: Download the visual graphical interface
2.1 and install x Windows System.
Input: yum groupinstall “X Window System”
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
When you finally see this, it means the download is complete!
2.2 Check whether the graphical interface software name matches:
Enter: yum grouplist to view the following names.
2.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!
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.