centos7 cannot install graphical interface

王林
Release: 2020-04-02 09:36:00
Original
2975 people have browsed it

centos7 cannot install graphical interface

Problem:

centos7 installation graphical interface prompts an error: connection X Server lost

Cause: Some startup items are missing.

Solution:

yum updata
Copy after login

Attachment:

Installation method:

yum -y update  
yum -y groupinstall "X Window System"
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target  #设置图形界面为默认启动界面
Copy after login

Error 2: There are no enabled repos.

Cause: There is no repos source file specifying yum

Solution:

1. Install Alibaba source

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Copy after login

2. Install NetEase source

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
Copy after login

Recommended related tutorials: centos tutorial

The above is the detailed content of centos7 cannot install graphical interface. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template