解決xrdp連接後立即閃退問題

Linux Mar 4, 2021

在Linux VPS安裝xrdp後,使用Remote Desktop Connection時連接時會閃退。
StackExchange的回答找到答案,以防日後再需要解決此問題,特此記錄。

Try this:

Stop xrdp with sudo service xrdp stop

Edit the xrdp start script: sudo nano /etc/xrdp/startwm.sh

In this file, replace the lines

test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

with startxfce4

(You can comment out lines by adding # at the start)

Restart xrdp with sudo service xrdp start

Select Xrdp as the session, and log in.

標籤