When you install Rhel, if you do not have a graphical interface installed, or if you later want to uninstall the graphical interface, you can execute the following command
1 Configure the correct Yum source, you can refer to this blog related articles (in search of input yum can be searched)
2) Use Yum grouplist simple view
# Yum Grouplist|grep-i Desktop
General Purpose Desktop
Desktop
Desktop Debugging and Performance Tools
Desktop Platform
Desktop Platform Development
KDE Desktop
Remote Desktop Clients
3) Use Yum Groupinstall to bulk install related packages
# yum Groupinstall Desktop
# yum Groupinstall "X window System"
The Yum Groupinstall Desktop represents the GNOME environment, which is the default graphical interface for Rhel.
Yum Groupinstall "KDE Desktop" represents a KDE environment, and a buddy like KDE can install it.
After installation of the relevant package, with startx This command can start the graphical interface, if there is an error, you can search under Baidu, is generally the font and X11 version of the problem, need to add the following command to run
# yum Install libxfont-1.4.5-*
# yum Install libX11
# yum Groupinstall chinese-support
The domestic environment is best to pack the Chinese language.
4) Use Yum Groupremove bulk unload related packages
# yum Groupremove Desktop
# yum Groupremove "X window System"
# yum Groupremove "KDE Desktop"
5 If you need to start the graphical interface when the OS starts, you need to edit level 3 of the/etc/inittab file and change to level 5
# Vi/etc/inittab
Id:3:initdefault:
6 can switch between Level 3 and level 5
# init 3
# init 5