rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Retrieving https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
warning: /var/tmp/rpm-tmp.lK4Kbv: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-5 ################################# [100%]
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
Retrieving http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
warning: /var/tmp/rpm-tmp.LIgfx0: Header V4 RSA/SHA1 Signature, key ID 85c6cd8a: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:nux-dextop-release-0-1.el7.nux ################################# [100%]
cat /etc/yum.repos.d/xrdp.repo
cat: /etc/yum.repos.d/xrdp.repo: No such file or directory
cat >>/etc/yum.repos.d/xrdp.repo<
> [xrdp]
> name=xrdp
> baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
> enabled=1
> gpgcheck=0
> eof
cat /etc/yum.repos.d/xrdp.repo==>检查
[xrdp]
name=xrdp
baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
enabled=1
gpgcheck=0
yum -y install xrdp ==>因为centos7没有源所以必须按上面的操作来自己建源,要先安装vncserver可以参考前面的
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman
firewall-cmd --permanent --zone=public --add-port=3389/tcp==>开放3389端口
systemctl restart firewalld==>重启防火墙
安装完成用远程桌面登录可以使用
netstat -antupl | grep xrdp或ss -antup | grep xrdp查看
本文转自whshurk 51CTO博客,原文链接http://blog.51cto.com/shurk/1745768:,如需转载请自行联系原作者