Rhel/centos7 Installing a graphical desktop

Source: Internet
Author: User
Tags yum repolist

Guide Linux is a multi-tasking multi-user operating system, and many Linux enthusiasts often encounter a problem after installing Linux-no graphical desktop. Today's small series in the installation of RHEL7, a step careful not to install a graphical desktop, the following share the process of installing a graphical desktop.

First, RHEL7 system installation--found no desktop by default

In the installation of the time did not pay attention to the choice is the default "Minimal install", after the installation is like this: command line interface, not cool. Log in, start the graphical test: Sure enough, there is no graphical installation. The following is a graphical component installation.

second, the installation of graphical components

First Mount
#mount/dev/sr0/mnt                          \ \ Attach the  disc to "/mnt" #df                                            \ \ See if it is already mounted

Create a local yum repository

Verify the local Yum repository to find the package name that you want to install the component group

#yum all                            \ \  Clear Yum Warehouse cache  #yum Makecache                             \ \ Create a yum warehouse cache #yum repolist                              \ \ Lists the available yum warehouses #yum grouplist< C10/>\\ Listing Program groups

Install the Desktop component package #yum-y groupinstall "Server with GUI" \ \ Install the graphical program group

third, set the graphical default boot

Start Desktop--startx

#startx                                                           \ \ Start Xwindow into the graphical desktop

Go to graphical, graphical settings

Set the default run level to graphical

[[email protected] desktop]# Systemctl get-default \ \ View default run level Multi-user.target[[email protected] desktop]# cat/e tc/inittab# Inittab is no longer used if using systemd.## ADDING CONFIGURATION here'll has no EFFECT on YOUR system.# # ctrl-alt-delete is handled by/etc/systemd/system/ctrl-alt-del.target## SYSTEMD uses ' targets ' instead of runlevels.By default, there is both main targets:##multi-user.target:analogous to RunLevel 3\ Run Level 3: Multi-user Interface #graphical.target: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.target #[[email protected] desktop]# systemctl set-default graphical.target \ Set Default graphical Run level RM '/etc/systemd/system/ Default.target ' ln-s '/usr/lib/systemd/system/graphical.target '/etc/systemd/system/default.target ' [email                                                    Protected] desktop]# Systemctl get-default \ \ View default Run level Graphical.target \ \ Graphical settings ok[[email protected] desktop]#

OK, the graphical desktop has been installed!!!

The Ps:linux system does not enter graphics after booting for the following reasons:

1. The system is not installed in the installation of graphical 2. The default operating level of the system is not graphical 3. After installation, the system has reduced memory operation, low memory can not start the desktop.  solution: A. Add memory           B. To see the size of the swap, try expanding the swap partition 4. After the system restarts, the software has a problem, causing the desktop not to start Rhel 7 on the system with 6 different changes, without the init runlevel, only 3 levels and 5 levels.

Rhel/centos7 Installing a graphical desktop

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.