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.
Install X Windows first
# 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 )'
==================================
If Yum reports an error saying that a certain rpm is missing, go to another source to download it.
Install the # rpm-I file
==================================
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.
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