Using the Yum groupinstall command, it is easy to install a GUI-like desktop system.
1. Yum's group Instructions
Yum can install packaged packages in the program group mode. The supported packages can be passed,
# yum Grouplist
Query to. In the group software package, desktop, desktop Platform, KDE desktop, X Window System are the main desktops.
The list of packages is displayed according to the language used by the system and supports simplified Chinese file names. So it is best to use the above command to check before installation. If the system uses Simplified Chinese, and the installation instruction is in English, it may cause errors such as software packages to be queried. The following installation instructions are in English.
2. Graphical Desktop environment
To install the KDE desktop environment, execute the instructions,
# yum Groupinstall "X window System" "KDE desktop" desktop
3 packages are installed at the same time. Note that because both KDE Desktop and X Window System Two package names contain spaces between them, you need to enclose them in quotation marks.
To install the Gnome desktop environment, execute the instructions,
# yum Groupinstall "X window System" "Desktop Platform" desktop
# yum Groupinstall "Gnome Desktop Environment" "Gnome software Development" "Graphical Internet"
3 packages are installed at the same time, X Window System is required, whether Gnome or KDE.
Since it is a desktop environment, you may also need things like fonts, administrative tools, such as,
# yum-y Groupinstall "Graphical administration Tools" # yum-y Groupinstall "Internet Browser" # yum-y Groupinstall "Gener Al Purpose Desktop "# yum-y Groupinstall" Office Suite and Productivity "# yum-y Groupinstall" Graphics Creation Tools "
3. Enable
Start the graphical desktop environment directly from the command line,
# STARTX
This will launch the default Gnome or KDE desktop environment. If someone likes to install both Gnome and KDE, the switchover method can refer to the CentOS documentation.
If you want to start automatically when you start to the graphical desktop, you need to modify/etc/inittab, change Id:3:initdefault: to Id:5:initdefault:. Reference. It would be convenient to use SED directly,
Sed-i ' s/id:3:initdefault:/id:5:initdefault:/'/etc/inittab
Add to the auto-start restart the system, or use STARTX is only the foreground command, can not run in the background. After starting the graphical interface, if you want to switch from the graphical interface to the command line interface, you can use CTRL + ALT + F6 (actually F1 to F6, but they represent different consoles in Linux), or in turn Ctrl + ALT + F7 back to just the graphical interface.
Reprint: http://www.myhack58.com/Article/48/66/2014/46225.htm
YUM Install desktop environment in CentOS (GO)