资源
下载下面资源放到Linux根目录./下
链接:https://pan.baidu.com/s/1U52YMpcAUgUYtYclztgPBA?pwd=bqcy
提取码:bqcy
安装桌面环境
yum groupinstall "GNOME Desktop" -y
安装easyconnect
下面安装的文件都在文章最开头资源里
# 安装Opera
rpm -ivh opera-11.61-1.R.x86_64.rpm
# 安装jre
chmod a+x ./jre-for-linux-x64-rhel.bin
./jre-for-linux-x64-rhel.bin
# 安装
rpm -ivh EasyConnect_x64.rpm
# 浏览器关联jre
cd /usr/lib64/mozilla/plugins
rm -f libnpjp2.so
ln -s /usr/java/jre1.6.0_27/lib/amd64/libnpjp2.so libnpjp2.so
配置
# 安装epel
yum install epel-release
# 安装xrdp
yum install xrdp -y
# 安装vnc(Xrdp最终会自动启用VNC,所以必须安装tigervnc-server,否则xrdp无法使用)
yum install tigervnc-server -y
# 关闭防火墙
systemctl stop firewalld && systemctl disable firewalld
# 关闭selinux
setenforce 0
# 启动xrdp
systemctl start xrdp && systemctl enable xrdp
# 重启服务器
reboot
远程连接
打开winodws远程连接,计算机为你的centos机器IP,用户名密码采用默认空
xrdp的用户名密码填你的centos用户名密码即可
即可进入远程桌面
在左上角applicantion中找到easy connect进行连接
如果已经安装过easy connect但在列表中没有看到,可以重启机器试试。如果没装,可以通过Firefox或opera浏览器访问
https://27.115.72.190:9443/com/installClient.html找到对应版本进行下载安装
如果提示easyconnect版本不对,需要卸载之后,再下载新版本进行安装,重启机器后使用