Home >Operation and Maintenance >CentOS >centos7 cannot install graphical interface

centos7 cannot install graphical interface

王林
王林Original
2020-04-02 09:36:003025browse

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

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  #设置图形界面为默认启动界面

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

2. Install NetEase source

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

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!

Statement:
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