RHEL7.1安装后进入X环境

1、安装的时候要选择带GUI的,就是要带图形的。不然很麻烦。

2、如果没有带图形,则需要

1)安装和配置YUM。

mount /dev/cdrom /mnt

(会提示:mount:block device /dev/cdrom is write-protected,mounting read-only)

cd /mnt 

cd /etc/yum.repo.d/

vi server.repo

name=server
baseurl=ftp:///mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

2)yum group install “Server with GUI” 大概664个文件需要安装。

3)startx 

安装完成之后,startx就不会提示“命令找不到”了。可以正常的进入X环境了。

原文地址:https://www.cnblogs.com/alexy/p/4699005.html