RHEL/Centos7 install graphical desktop

Source: Internet
Author: User
Tags yum repolist

RHEL/Centos7 install graphical desktop
GuideLinux is a multi-tasking multi-user operating system. Many linux enthusiasts often encounter a problem after installing linux-no graphical desktop. Today, when I installed RHEL7, I did not install a graphical desktop. Next I will share with you how to install a graphical desktop.

I. RHEL7 system installation-No desktop by default

During installation, the default "Minimal Install" is not selected. After installation, it looks like this: the command line interface is not good. Log in and start the graphic. Try again: No graphic is installed. Install graphical components.

Ii. Install graphical components

Attach first
# Mount/dev/sr0/mnt \ attach the disc to "/mnt" # df \ to check whether the disc has been mounted

Create a local yum Repository

Verify the local yum repository and find the package name to install the component group

# Yum clean all \ clear yum repository cache # yum makecache \ create yum repository cache # yum repolist \ list available yum repositories # yum grouplist \ list program groups

Install the desktop package # yum-y groupinstall "Server with GUI" \ install a graphical program group

3. Set graphical default startup

Start desktop -- startx

# Startx \ Start xwindow to enter the graphical desktop

Go to the graphical interface to perform graphical settings.

Set the default running level to graphical

[Root @ localhost Desktop] # systemctl get-default \ zookeeper runtime level multi user.tar get [root @ localhost Desktop] # cat/etc/inittab # inittab is no longer used when using systemd. # adding configuration here will have no effect on your system. # Ctrl-Alt-Delete is handled by/etc/systemd/system/ctrl-alt-del.target # define EMD uses 'targets' instead of runlevels. by default, there are two main targets: # multi-user.target: analogous to runlevel 3 \ Run level 3: Multi-User Interface # graphical.tar get: analogous to runlevel 5 \ Run level 5: graphical interface # To set a default target, run: # ln-sf/lib/systemd/system /. target/etc/systemd/system/default.tar get # [root @ localhost Desktop] # systemctl set-default graphical.tar get \ sets the default graphical running level rm '/etc/systemd/system/ default.tar get 'ln-S'/usr/lib/systemd/system/graphical.tar get ''/etc/systemd/system/default.tar get '[root @ localhost Desktop] # systemctl get- default \ zookeeper runtime graphical.tar get \ graphical settings OK [root @ localhost Desktop] #

OK. The graphical desktop has been installed !!!

Ps: the linux system does not enter the graphical display after it is started, for the following reasons:

1. The system is not installed with graphical 2. The default running level of the system is not graphical 3. After the system is installed, operations that have been reduced by memory are performed. If the memory is too low, the desktop cannot be started. Solution:. increase Memory B. view the swap size and try to expand the swap partition 4. after the system is restarted, the software has a problem. As a result, RHEL 7 is not started on the desktop and has changed from 6 on the system, without the init running level, only 3 and 5 levels are available.

Address: http://www.linuxprobe.com/rhelcentos7-install-gui.html


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.