Centos7最小化安装后如何安装图形化桌面

1. 安装X Window System命令

yum groupinstall "X Window System" -y

 

2. 安装图形界面软件 GNOME 

 

复制代码
yum groupinstall "GNOME Desktop" -y

过程报错
Transaction check error:

file /boot/efi/EFI/redhat from install of fwupdate-efi-12-5.el7.x86_64 conflicts with file from package grub2-common-1:2.02-0.65.el7_4.2.noarch

 

解决方式
yum update grub2-common;yum install grub2-efi fwupdate
执行后重新执行yum groupinstall "GNOME Desktop" -y
复制代码

 

CentOS Ghome桌面 Something has gone wrong 的解决办法

yum update
...等待
输入 y
...等待
就可以了

3. 更新系统的默认运行级别

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

 

4.重启系统

reboot

 

CentOS7的命令行模式与图形界面相互切换方式

systemctl get-default //获取当前系统启动模式
systemctl set-default graphical.target  //由命令行模式更改为图形界面模式
systemctl set-default multi-user.target  //由图形界面模式更改为命令行模式
posted @ 2020-06-08 20:41  无情站长  阅读(1985)  评论(0编辑  收藏  举报