centos7 安装桌面

实验环境:计算机为win7, 在vmware上安装了centos7 mini。

①首先安装X(X Window System),命令为

yum groupinstall "X Window System"  //注意有引号,名称中有空格需要用引号

②安装图形界面软件 GNOME

 X Window System 是必须的

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

③启动桌面环境 、设置桌面环境为默认

startx

systemctl set-default graphical.target

遇到问题:

启动图形界面startx报错connection to X server lost

删除先前的安装程序

yum groupremove "X Window System"

yum groupremove "GNOME Desktop"

yum groupremove "Graphical Administration Tools"

有些会显示找不到,不用管

解决方法:https://unix.stackexchange.com/questions/181503/how-to-install-desktop-environments-on-centos-7

猜你喜欢

转载自blog.csdn.net/Man_In_The_Night/article/details/85396654