1、以root身份进入
2、安装X Window System
yum groupinstall "X Window System"
3、安装图像界面软件 GNOME Desktop
yum groupinstall "GNOME Desktop"
最后出现complete 就表示完成安装了
4、执行 startx,可进入图形界面
============================================================
开机默认启动图形化界面 配置方法
1、
命令行模式下,执行systemctl get-default
查看当前开机启动的模式
graphical.target 代表开机时启动图形化界面
multi-user.target 代表开机时启动dos界面
2、执行 systemctl set-default xxxx来切换两种模式
例如:
设置开机启动图形界面
systemctl set-default graphical.target
设置开机时启动dos界面
systemctl set-default multi-user.target
============================================================
dos界面与图形界面快速切换方式
图形到dos:CTR+ALT+F2 或者 命令执行 init 3
dos到图形:执行startx命令 或者 命令执行 init 5
============================================================
安装图形界面过程
yum groupinstall "GNOME Desktop" –y
安装过程如遇报错:Transaction check error:
file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.el7.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.65.el7.centos.2.noarch
用 yum upgrade -y 只升级所有包,不升级软件和系统内核。