解决方法:用经典GNOME登录进入系统,打开终端,执行以下步骤:
#mkdir ~/.config/autostart
#vi ~/.config/autostart/Gnome-Shell.desktop
[Desktop Entry]
Type=Application
Exec=gnome-shell --replace
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Gnome Shell
Name=Gnome Shell
Comment[en_US]=
Comment=
保存退出。
# yum -y groups install "GNOME Desktop"
# startx #进入图形界面
# yum install epel* -y
# yum --enablerepo=epel -y install xrdp
# systemctl start xrdp #启动xrdp
# systemctl enable xrdp #设置开机启动xrdp
# firewall-cmd --zone=public --add-port=3389/tcp --permanent
# firewall-cmd -- reload
在系统出错时 点了 xxx out 那个按钮,然后ctrl+alt+F2 进入命令模式,然后输入root 账号和密码。
然后执行 yum update 执行这个命令 更新完成就行。
reboot 重启即可。
导致出错的原因,应该是在安装各种软件时触动了 Gnome 桌面底层依赖的包。