参考命令如下: 

  1. sudo apt install xrdp
  2. sudo systemctl status xrdp
  3. sudo systemctl restart xrdp
  4. sudo ufw allow from any to any port 3389
  5. sudo ufw allow 3389

如果需要安全性高:

  • sudo ufw allow from 192.168.x.x to any port 3389

黑屏问题:

注销当前用户,再使用远程桌面。