Centos installation graphical interface

Source: Internet
Author: User
Centos installation graphical interface

 

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 check which lists may be installed in batches, such as # Yum groupinstall "DNS name server" // install bind and bind-chroot suite 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 )'
# Install lxde desktop environment (I don't know if this command can be installed.)

Yum groupinstall 'lightweight X11 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.
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

========================================================== ======================================

1. Close X Window on the image interface:
Run init 3 in the 1.1 shell to enter the text mode, and disable related services (xserver is definitely disabled)
1.2 Alt + Ctrl + F1 ~ F6 to the character interface, root login, PS aux | grep/usr/x11r6/bin/X, get the X process number,
Kill-9 process number. In fact, it is already in the text interface, and there is no need to close X. (This is too rude)
2. If you do not want to enter the X Window after the host is started:
Edit/etc/inittab
ID: 5: initdefault: changed
ID: 3: initdefault:
3. Open the graphic interface (X Window) in text mode ):
Input startx or init 5 in Shell

 

After you uninstall the graphic interface of Linux installed on the GUI, the system will prompt the error init: ID "X" respawning too fast: the solution of disabled for 5 minutes is to find the text in VI/etc/inittab and change the number following the ID in the text to 3 ID: 3: initdefault enables the system to start the text interface to find the text section X: 5: respawn:/etc/X11/preofdm-nodaemon and comment it out!

 

Centos close graphical interface (X Window) 2010-06-18. Close X Window on the image interface:
Run init 3 in the 1.1 shell to enter the text mode, and disable related services (xserver is definitely disabled)
1.2 Alt + Ctrl + F1 ~ F6 to the character interface, root login, PS aux | grep/usr/x11r6/bin/X, get the X process number,
Kill-9 process number. In fact, it is already in the text interface, and there is no need to close X. (This is too rude)

 

Centos sets the running level as shown in the following table, and the system can switch between these running levels to complete different tasks.

Run-level description:

0. All processes are terminated in north China. The machine will be stopped in an orderly manner.

1 single-user mode, used for system maintenance, only a few processes run, and all services are not started

The two-user mode is the same as running level 3, but forgets that the file system (NFS) service is not started.

3 multi-user mode: Allows multiple users to log on to the system, which is the default startup level of the system.

4 left to the user's custom running level

5 Multi-user mode, and run the X-WINDOWS after the system starts, give a graphical login window

6. All processes are terminated and the system restarts.

You can run the following command to view the running level of the current system:

PS anx | grep init runlevel

You can use the following command to switch the running level

Init 0

Init 1

Init 2

Init 3... and so on

Centos installation graphical interface

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.