How to minimize the absence of a desktop after centos7.0 installation (manually install a graphical desktop)

Source: Internet
Author: User

1. Place the file on a CD

2. Enter the following command as the root user:

mount /dev/sr0 /media

3. Configure the CD as the local Yum Source

Command:

vi /etc/yum.repos.d/local.repo


Press the Insert key to enter the following content:


[local]name=localbaseurl=file:///media/enabled=1gpgcheck=0



Press ESC and enter X or WQ to save the settings (do not miss the input :)


(You can view tutorials online without using vi)


4. Load the yum cache:

 yum makecache


Then you find that the operation fails. follow these steps:

mkdir /tmp/repo    mv /etc/yum.repos.d/* /tmp/repo  mv /tmp/repo/local.repo  /etc/yum.repos.d/yum clean all && rm -rf /var/cache/yum/*yum makecache


5,

yum grouplist

The S command shows the installed group:

Minimal install (the minimum installation for LZ is not desktop), GNOME desktop, Kde plasma workspaces, etc.

Choose GNOME desktop or KDE Desktop

Command:

yum groupinstall -y  "GNOME Desktop" yum groupinstall -y  "KDE Plasma Workspaces"

6. After the installation is complete, set the startup mode to a graphical interface. Previously, it was changed to/etc/inittab. After cat and/etc/inittab, it was found that inittab was changed to systemd, therefore, use the following command:

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

7,

reboot

The graphic interface is displayed after restart.

PS: Linux Commands include Mount Yum mkdir mV and VI. We recommend that you start with the command and download many good videos from the Internet.






This article from the "Silently Accumulate Small universe" blog, please be sure to keep this source http://tianshoulong.blog.51cto.com/4998102/1571464

How to minimize the absence of a desktop after centos7.0 installation (manually install 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.