XRDP 无法在 Ubuntu 17.10 上运行

XRDP 无法在 Ubuntu 17.10 上运行

我正在尝试在 Ubuntu 17.10 服务器上运行 XRDP。我之前在 Ubuntu 16.04 桌面上做过这个,非常容易,但现在却出乎意料地失败了。(而且在另一台机器上图形用户界面运行正常的 Ubuntu 17.10 桌面上也失败了。)

我目前所做的工作:* 我安装了mate-desktop以及xfce4可能将它们用作窗口管理器。* 我安装了xrdp

该服务自动启动。xrdp运行,因为我可以使用 Ubuntu 17.10 中提供的远程桌面查看器从另一台计算机连接到该服务RDP。我可以输入我的用户名和密码并确认登录。然后一段时间内什么都没有发生。之后我收到一条错误消息,显示以下文本:

  • connecting to sesman ip 127.0.0.1 port 3350
  • sesman connect ok
  • sending login info to session manager, please wait...
  • login successful for display 10
  • started connecting
  • connection problem, giving up
  • some problem

好吧,我想,让我们看看日志文件。这是以下内容/etc/xrdp/xrdp.log

  • [20171204-14:24:39] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.10.110 port 3389)
  • [20171204-14:24:39] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
  • [20171204-14:24:39] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
  • [20171204-14:24:39] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
  • [20171204-14:24:39] [DEBUG] Security layer: requested 3, selected 0
  • [20171204-14:24:39] [DEBUG] xrdp_0000362c_wm_login_mode_event_00000001
  • [20171204-14:24:39] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini`
  • [20171204-14:24:39] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
  • [20171204-14:24:39] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
  • [20171204-14:24:39] [WARN ] local keymap file for 0x00000000 found and doesn't match built in keymap, using local keymap file
  • [20171204-14:24:46] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
  • [20171204-14:24:47] [INFO ] xrdp_wm_log_msg: sesman connect ok
  • [20171204-14:24:47] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
  • [20171204-14:24:47] [DEBUG] return value from xrdp_mm_connect 0
  • [20171204-14:24:47] [INFO ] xrdp_wm_log_msg: login successful for display 10
  • [20171204-14:24:47] [DEBUG] xrdp_wm_log_msg: started connecting
  • [20171204-14:24:51] [DEBUG] Closed socket 17 (AF_UNIX)
  • [20171204-14:24:54] [DEBUG] Closed socket 17 (AF_UNIX)
  • (重复很多次)
  • [20171204-14:28:11] [DEBUG] Closed socket 17 (AF_UNIX)
  • [20171204-14:28:14] [DEBUG] Closed socket 17 (AF_UNIX)
  • [20171204-14:28:17] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
  • [20171204-14:28:17] [DEBUG] Closed socket 17 (AF_UNIX)
  • [20171204-14:28:17] [DEBUG] xrdp_wm_log_msg: some problem
  • [20171204-14:28:17] [DEBUG] xrdp_mm_module_cleanup
  • [20171204-14:28:17] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 33926)

该文件/var/log/xrdp-sesman.log更具结论性。如果出现以下错误消息:

  • [20171204-14:24:57] [ERROR] X server for display 10 startup timeout
  • [20171204-14:24:57] [INFO ] starting xrdp-sessvc - xpid=13891 - wmpid=13890
  • [20171204-14:24:57] [ERROR] X server for display 10 startup timeout
  • [20171204-14:24:57] [ERROR] another Xserver might already be active on display 10 - see log
  • [20171204-14:24:57] [DEBUG] aborting connection...

我猜是因为 wayland 而发生了一些重大变化?是否缺少一些软件包?我如何xrdp在 Ubuntu 17.10 上运行?我通过 Google 找到的任何信息都毫无帮助。它似乎解决了完全不同的问题。您对如何继续启动和运行 XRDP 有什么想法吗?

答案1

您需要进行调整/etc/X11/Xwrapper.config才能使其正常工作。只需替换allowed_users=consoleallowed_users=anybody,一切就应正常工作。

答案2

对我的情况来说,安装 xserver-xorg-core 而不是 xserver-xorg-core-hwe,然后安装 xorgxrdp 有帮助:

sudo -i
apt install xserver-xorg-core
apt install xorgxrdp
service xrdp restart

相关内容