参考https://cloud.tencent.com/developer/article/1627252 配置xfce4是一次性成功的。
看下我的踩坑过程:
方法一,自己用iso在vmware虚拟机安装系统时选配图形界面即可
http://mirrors.tencent.com/opencloudos/8.5/isos/
方法二、命令行安装法
yum groupinstall "Server with GUI" -y
systemctl set-default graphical
reboot
yum install cmake patch gcc make autoconf libtool automake pkgconfig openssl-devel gettext file pam-devel libX11-devel libXfixes-devel libjpeg-devel libXrandr-devel flex bison gcc-c libxslt perl-libxml-perl xorg-x11-font-utils nasm
reboot
因为opencloudos的yum源上默认没开启epel源,所以yum install xrdp找不到
没有xrdp,去xrdp官网拿包安装
https://github.com/neutrinolabs/xrdp/releases
解压,编译安装
./bootstrap
./configure
make
make install
如果./configure的时候报错如下,执行yum install nasm -y后重新执行./configure
systemctl enable xrdp
这样弄下来,远程后是黑屏,不知道咋解决,那还是用yum吧
回到之前源码编译安装的目录执行make uninstall卸载,然后启用epel源然后再yum install xrdp,即:
yum install epel-release -y
yum install tigervnc-server xrdp -y
试了下,还是跟之前一样,远程上后是黑屏,就一个鼠标
于是换一个办法,参考https://cloud.tencent.com/developer/article/1627252 配置xfce4