Install X Window with Yum in centos

Source: Internet
Author: User
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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.