# 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, 就可以正常跑了。

转载于:https://www.cnblogs.com/qanniu/p/8596474.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值