# xrdp 在linux deploy 折腾记录

xrdp 在linux deploy 折腾记录

1. xrdp connect fail

vnc 不管用tiger or vnc4server都可以正常用,但xrdp无法连接
netstat -tnlp看一下是否有3389,没有。 说明xrdp没有打开。
用/etc/init.d/xrdp restart 依旧无效,只有xrdp-sesman。
手动执行xrdp。可以连接了
但黑屏。

root@localhost:/etc/xrdp# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN      25340/Xtightvnc
tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      25340/Xtightvnc
tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN      27054/xrdp-sesman
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      24857/sshd
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      25062/0
tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN      27062/xrdp
tcp6       0      0 :::22                   :::*                    LISTEN      24857/sshd
tcp6       0      0 ::1:6010                :::*                    LISTEN      25062/0

2. xrdp黑屏的解决方法

先配置~/.xsession,参考下面选当前用的桌面是mate还是xfce4.
我用mate,注释掉xfce4即可。

root@localhost:~# cat .xsession
#startxfce4 &
mate-session
#xfce4-session

这样修改后还是不行, 但我保留上面的配置后重新安装xrdp
apt-get purge xrdp
apt-get install xrdp
查看xrdp状态:
/etc/init.d/xrdp status
重启:
/etc/init.d/xrdp start

再执行## 1. 的xrdp, 就可以正常跑了。

posted @ 2018-03-18 17:41  qanniu  阅读(1388)  评论(0编辑  收藏  举报