Install x winodw with Yum in centos

Source: Internet
Author: User

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

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.