This article mainly introduces how to install a graphical interface in centos. in some cases, the command-only interface is too tired. for personal learning, you can use the image interface. the server strongly does not recommend using the graphical interface CentOS.
Log on to the system and use yum to install
# Yum groupinstall 'X Window system'-y
Install GNOME desktop environment
# Yum groupinstall 'Gnome Desktop Environment '-y
If you install the KDE desktop environment
# Yum groupinstall 'kde (K Desktop Environment) '-y
If an error occurs:
Warning: Group GNOME Desktop Environment does not exist.
No packages in any requested group available to install or update
You can first use yum grouplist to check the groups supported by the installed groups, obtain the corresponding group name, and then install
Uninstall GNOME desktop
# Yum groupremove "GNOME Desktop Environment"
Uninstall the KDE desktop environment
# Yum groupremove "KDE (K Desktop Environment )"
Or:
Copy codeThe code is as follows:
Yum-y groupinstall Desktop
Yum-y groupinstall "X Window System"
Yum-y groupinstall chinese-support
Vi/etc/sysconfig/i18n
Change en_US to zh_CN.
Init 5