查看是否安装开源资源库
查看是否已经的安装epel
[root@vantech ~]# rpm -qa|grep epel
epel-release-7-11.noarch
- 没有安装进行yum安装
yum install epel-release
- 安装xrtp软件yum install xrdp
最新不用再安装
[root@vantech ~]# yum install xrdp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
- base: mirrors.aliyun.com
- epel: mirrors.tuna.tsinghua.edu.cn
- extras: mirrors.aliyun.com
- updates: mirrors.aliyun.com
Package 1:xrdp-0.9.9-1.el7.x86_64 already installed and latest version
Nothing to do
安装tigervnc服务yum install tigervnc-server
为用户root设置vnc密码,命令为:vncpasswd root
查询/usr/sbin/sestatus -v 关闭seliunx和防火墙
由于是测试,所以在此直接关闭防火墙,命令为:systemctl stop firewalld.service
如果需要开机关闭,则命令为 : systemctl disable firewalld.servie
启动服务命令:systemctl start xrdp
开机启动命令:systemctl enable xrdp
查询xrdp的运行状态
- 启动远程并连接
- 输入用户名密码即可