Solve the problem that CentOS7.0 does not have a desktop after minimal installation

Source: Internet
Author: User

Solve the problem that CentOS7.0 does not have a desktop after minimal installation

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= local baseurl= file : ///media/ enabled=1 gpgcheck=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:

yummakecache

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/ yumcleanall&& rm -rf /var/cache/yum/ * yummakecache

5,

yumgrouplist

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:

yumgroupinstall-y "GNOMEDesktop" yumgroupinstall-y "KDEPlasmaWorkspaces"

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.

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.