ubuntu
下载xrdp
sudo apt update
sudo apt install xubuntu-desktop
sudo apt install xrdp
添加配置文件
sudo vim /etc/xrdp/startwm.sh
写入内容:
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
重启xrdp服务
sudo systemctl restart xrdp.service
windows
用windows自带远程桌面工具。
搜索ubuntu主机的IP地址,选择xrog,输入用户名和密码即可连接