我正在尝试通过远程桌面从我的 Windows 机器远程连接到我的 ubuntu 20 机器,但我只看到黑屏
首先我这样做(正如我所写这个问题)
>sudo systemctl status xrdp
Unit xrdp.service could not be found
所以我从 0 开始
sudo apt install xrdp
进而
sudo systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-06-29 11:19:02 JST; 17s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 1953879 (xrdp)
Tasks: 1 (limit: 28577)
Memory: 1.1M
CGroup: /system.slice/xrdp.service
└─1953879 /usr/sbin/xrdp
6月 29 11:19:01 my-Zephyrus-Ubuntu xrdp[1953878]: (1953878)(139627163875136)[INFO ] address [0.0.0.0] port [3389] mode 1
6月 29 11:19:01 my-Zephyrus-Ubuntu xrdp[1953878]: (1953878)(139627163875136)[INFO ] listening to port 3389 on 0.0.0.0
6月 29 11:19:01 my-Zephyrus-Ubuntu xrdp[1953878]: (1953878)(139627163875136)[INFO ] xrdp_listen_pp done
6月 29 11:19:01 my-Zephyrus-Ubuntu xrdp[1953878]: (1953878)(139627163875136)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
6月 29 11:19:01 my-Zephyrus-Ubuntu systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after start: Operation not permitted
6月 29 11:19:02 my-Zephyrus-Ubuntu systemd[1]: Started xrdp daemon.
6月 29 11:19:03 my-Zephyrus-Ubuntu xrdp[1953879]: (1953879)(139627163875136)[INFO ] starting xrdp with pid 1953879
6月 29 11:19:03 my-Zephyrus-Ubuntu xrdp[1953879]: (1953879)(139627163875136)[INFO ] address [0.0.0.0] port [3389] mode 1
6月 29 11:19:03 my-Zephyrus-Ubuntu xrdp[1953879]: (1953879)(139627163875136)[INFO ] listening to port 3389 on 0.0.0.0
6月 29 11:19:03 my-Zephyrus-Ubuntu xrdp[1953879]: (1953879)(139627163875136)[INFO ] xrdp_listen_pp done
然后
sudo ufw allow from any to any port 3389 proto tcp
这样,我就从我的 Windows 电脑打开远程桌面,然后输入主机名等
但是现在我有一个远程窗口,但是它完全是黑色的。
这里可能出现什么问题以及如何纠正它?