1.安装
apt-get install xrdp
apt-get install xfce4
(如果安装出错,请参考https://blog.csdn.net/qq_35428201/article/details/81227372)
2.修改 vim /etc/xrdp/startwm.sh 文件,在文件尾添加 echo “xfce4-session” >~/.xsession3.重启,开启开机启动
service xrdp restart
systemctl enable xrdp
4.使用windows的远程桌面进行连接