一.在操作系统中用管理员权限安装以下软件
1. 安装xrdp: sudo apt-get install xrdp
2. 安装vnc4server: sudo apt-get install vnc4server
3. 安装xubuntu-desktop: sudo apt-get install xubuntu-desktop
4. xsession中写入xfce4-session,需要远程的用户都要单独执行这条命令: echo "xfce4-session" >~/.xsession
5. 重启xrdp服务: /etc/init.d/xrdp restart
按照网上所有东西配置好之后,输入用户名密码,报错
后来发现是文件夹权限不够,在控制台远程连接界面输入命令
sudo chmod -R 777 /home/你的登陆名/
终于成功连接!