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 defaultDuring 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 componentsAttach first# Mount/dev/sr0/mnt \ attach the disc to "/mnt" # df \ to check whether the disc has been mounted
Create a local yum RepositoryVerify 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 startupStart 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