Connection: http://blog.csdn.net/21aspnet/article/details/6855549
I didn't install any components when installing the centos 5.6 system. Now I use X Window. I need to install X Window again to start the graphic interface. However, the default graphic interface is a very simple interface, you can install gnome or KDE as needed.
Install x graphical interface
# You can check which components have been installed (for reference to component names)
Yum grouplist
# Install the X graphical interface system
Yum list lists all the software packages that can be installed. You can use Yum grouplist to view the list of software packages that may be installed in batches, for example, # Yum groupinstall "DNS name server" // install bind and bind-chroot.
Yum groupinstall 'x window system'-y
# Install GNOME Desktop Environment
Yum groupinstall 'gnome desktop environment '-y
# Install the KDE Desktop Environment
Yum groupinstall 'KDE (K desktop environment )'
Uninstall
Uninstall GNOME Desktop
Yum groupremove GNOME Desktop Environment'
Uninstall the KDE Desktop Environment
Yum groupremove 'K desktop environment'
How to start the X graphical interface
1. startx
2. Set automatic start upon startup and modify/etc/inittab
ID: 3: initdefault: ------> ID: 5: initdefault:
3. init 5
Select the default desktop environment
1. Set gnome or KDE as the default startup desktop environment
Method 1: Modify/etc/sysconfig/desktop and set the parameters following "desktop" to KDE or GNOME as needed.
Method 2: create the ". xinitrc" file in the current user directory. The file contains a line of startkde or gnome-session.
2. switching between GNOME and KDE
1. If you need to switch to Gnome:
# Switchdesk gnome
2. If you need to switch to KDE:
# Switchdesk KDE
2. If you need to switch to KDE:
# Startkde
Gui and character interface switching
In Linux, there are multiple consoles, the first six of which are character interfaces, and the seventh is a graphical interface.
To switch to the character interface, you can use CTRL + ALT + FNAnd fNIs any one of the F1-F6,
Of course, if you switch between character interfaces, there is no need to press Ctrl.N