1) 安装相关软件包
sudo apt install tightvncserver xrdp sudo apt install xubuntu-desktop echo xfce4-session >~/.xsession
2) sudo vim /etc/xrdp/startwm.sh
在 test -x /etc/X11/Xsession && exec /etc/X11/Xsession 上方添加
xfce4-session
3) sudo vim /etc/X11/Xsession
同样添加
xfce4-session
4) 最后,重启服务
sudo systemctl restart xrdp.service