Use Yum to install or uninstall the centos graphical interface package-[Linux technology]

Source: Internet
Author: User

The graphic interface was installed by default when I installed the company server. The Company engineer told me the next day that the graphic interface could not be installed and I had to reinstall all the servers,

After that, I have been wondering if I Cannot uninstall the GUI after it is installed? In Linux, the graphic interface is just a software package, not the core.

Think of this problem, find information on the Internet, and find a simple method on the internet, directly install or uninstall using Yum!

 

Graphical interface for installation in Command Line Mode

Yum grouplist check installed groups

Yum groupinstall "X Window System"

Yum groupinstall "GNOME Desktop Environment"

Startx

Or init 5

OK.

 

Reinstall the centos System in graphic interface mode to uninstall the graphic interface in Yum mode.

Graphical interface to uninstall:

Yum groupremove "GNOME Desktop Environment"

Yum groupremove "X Window System"

 

An error is prompted after you uninstall the graphic interface of Linux installed on the GUI.

Init: ID "X" respawning too fast: disabled for 5 minutes

The solution is:

 

VI/etc/inittab

Find the text section and change the number following the ID to 3 ID: 3: initdefault to enable the system to start on the text interface.

Find the text Line X: 5: respawn:/etc/X11/preofdm-nodaemon and comment it out!

Note (this method does not confirm whether the server can be stabilized! Has not launched an experiment on the server)

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.