我在一台虚拟的Ubuntu18.04机器上安装了新的XRDP,我无法通过Windows 10膝上型计算机(我目前仅有的一台测试设备)连接到它。
Windows 10中的错误消息是:
Remote Desktop can't connect to the remote computer for one of the following reasons:
1) Remote access to the server is not enabled
2) The remote computer is turned off
3) The remote computer is not available on the network.
也许更能说明问题的是Ubuntu机器上的XRDP状态,我指出了一条似乎不对的行:
____________:~$ sudo systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-08-29 20:47:56 CDT; 4s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 2551 ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill (code=exited, status=0/SUCCESS)
Process: 2566 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Process: 2558 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
Main PID: 2567 (xrdp)
Tasks: 1 (limit: 4682)
CGroup: /system.slice/xrdp.service
└─2567 /usr/sbin/xrdp
Aug 29 20:47:55 novakvm systemd[1]: Starting xrdp daemon...
Aug 29 20:47:55 novakvm xrdp[2566]: (2566)(139886408361792)[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
Aug 29 20:47:55 novakvm xrdp[2566]: (2566)(139886408361792)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
-----> Aug 29 20:47:55 novakvm systemd[1]: xrdp.service: Can't open PID file /var/run/xrdp/xrdp.pid (yet?) after start: No such file or directory <----- THIS ONE
Aug 29 20:47:56 novakvm systemd[1]: Started xrdp daemon.
Aug 29 20:47:57 novakvm xrdp[2567]: (2567)(139886408361792)[INFO ] starting xrdp with pid 2567
Aug 29 20:47:57 novakvm xrdp[2567]: (2567)(139886408361792)[INFO ] listening to port 3389 on 0.0.0.0
这个文件是什么,它意味着什么,这有可能导致我的问题吗?我能做些什么?
(其他注意事项: Ubuntu机器上的端口3389是开放的,甚至在Windows机器上完全关闭防火墙,并以admin的方式运行远程桌面也没有帮助。
发布于 2020-10-28 22:46:51
我认为这是因为xrdp不允许同一个用户进行多个会话,并且当您通过虚拟管理器打开VM时,它已经被消耗掉了。仅仅为了测试,您能创建一个新用户并尝试使用它打开一个会话吗?
发布于 2021-10-06 11:02:26
似乎提示在“没有这样的文件或目录”中。路径可能是xRDP-Server找不到的错误目标或目的地。
我确实遇到了一个类似的问题,我们在尝试使用xRDP和sudo systemctl status xrdp
进行状态测试时收到的消息几乎相同。上面写着
xrdp.service: Can´t open PID file /run/xrdp/xrdp.pid (yet?) after start: Operation not permitted
也许可以尝试这条解决问题的途径:/run/xrdp/xrdp.pid
https://askubuntu.com/questions/1271206
复制相似问题