CentOS installation X Window installation X graphical interface System www.2cto.com yum list all installable software packages can be checked through yum grouplist to see which lists may be installed in bulk first install X windows # yum groupinstall 'x Window system '- y install GNOME Desktop Environment # yum groupinstall GNOME Desktop Environment install KDE Desktop Environment # yum groupinstall KDE Desktop Environment ============== = yum if the error message says that a certain rpm is missing, go to another source to download and then install it # rpm-I file ============== ===uninstall GNOME Desktop Environment yum groupremove GNOME Desktop Environment uninstall KDE Desktop Environment yum gro Upremove KDE Desktop Environment Method for enabling the X graphical interface 1. startx2, set Automatic startup, modify/etc/inittab id: 3: initdefault: ------> id: 5: initdefault: 3. Select www.2cto.com as the default desktop environment in init 5. 1. Set GNOME or KDE as the default desktop environment. Method 1: Modify/etc/sysconfig/desktop, 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: # The startkde GUI and the character interface are switched to multiple consoles in LINUX. The first six are the character interface and the seventh is the graphic interface. If you need to switch to the character interface, you can use CTRL + ALT + Fn, where Fn is any one of the F1-F6, of course, if you switch between character interfaces, there is no need to CTRL, and ALT Fn directly