1.将用户切换为root用户:
$ su root
2.输入密码后:
将现登录账户添加到sudoers文件中
$ vim /etc/sudoers
3.备份centos8原始更新源文件:
$ cd /etc/yum.repos.d/
$ mkdir centos-backup
$ mv CentOS* centos-backup/
4.将centos8的更新源变更为阿里源:
$ sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
5.安装epel:
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
6.安装xorg-x11-drv-vmware:
$ sudo dnf install -y xorg-x11-drv-vmware
7.重启,桌面可以正常布满并自动适配:
$ reboot