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