CentOS 7 command line installation GUI (GNOME, KDE, etc.)

CentOS 7 does not have a graphical interface by default, but after many of us are accustomed to the graphical interface of Windows, we always want a graphical interface to facilitate our use. Here is how to install a graphical desktop system on CentOS7.

1. Enter root mode

Because of permission restrictions, we need to enter the root mode. You can use root to log in or switch to the root user during system operation.

2. Install the X Window System

1. First install X (X Window System), the command is

yum groupinstall " X Window System "   // Note the quotation marks

 Then the system will automatically find the nearest network to download related files

Select y and start downloading the required package

Select y to start the installation

When Complete! Indicates that the installation was successful here.

 

Here we can check the software we have installed and the software that can be installed, the command is

yum grouplist

3. Install the graphical interface software GNOME

Then we start to install the graphical interface software we need, GNOME (GNOME Desktop)

pay attention! ! ! ! Be sure to note that the names must correspond, otherwise an error of No packages in any requested group available to install or update will appear . This is because the software names of different versions of CentOS may be different (other Linux systems are similar)

 As shown above, the installation command is:

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

 Select y to start downloading the package that needs to be installed

 

 

The installation is complete here.

At this time, we can enter the graphical interface through the command startx, the first entry will be slow, please be patient. (may need to restart, the command is reboot)

ps:

  • If the virtual machine cannot be opened after the installation is complete, we need to adjust the memory size allocated by the virtual machine (note that it is not the disk size), 1024M is basically enough.
  • If the virtual machine reports an error of 0x0000005c after the installation is complete, please turn off the 3D acceleration function of the virtual machine (uncheck it)

Fourth, update the default run level of the system

After the above operations, the system startup is still the command line page by default, and we need to switch. If you want to make the system start as a graphical window, you need to execute the following command

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

 

 

Author: Xinxin Xin, published in   Blog Park

Please indicate the source when reprinting. Email communication is welcome: [email protected]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324614033&siteId=291194637