Ubuntu 16.04.6 上的 xRDP 问题

Ubuntu 16.04.6 上的 xRDP 问题
  1. 在 Ubuntu 16.04.6 LTS Xenial 机器上,我像这样设置 xRDP:

    sudo apt-get update
    sudo apt-get install -y xrdp mate-core mate-desktop-environment mate-notification-daemon
    sudo sed -i.bak '/fi/a #xrdp 多用户配置 \n mate-session \n' /etc/xrdp/startwm.sh
    sudo ufw allow 3389
    sudo shutdown -r now

  2. 从 MS-Win10 连接看起来按预期工作:

在此处输入图片描述

  1. 输入登录名和密码信息后,我看到此屏幕:

在此处输入图片描述

  1. 几秒钟后,我的连接就断开了。

文件.xsession 错误看起来像这样:

Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
openConnection: connect: No such file or directory
cannot connect to brltty at :0
upstart: upstart-event-bridge pre-start process (42575) terminated with status 1
upstart: gnome-session (Unity) main process (42704) terminated with status 1
upstart: unity-settings-daemon main process (42696) killed by TERM signal
upstart: Disconnected from notified D-Bus bus
upstart: logrotate main process (42549) killed by TERM signal
upstart: update-notifier-release main process (42601) killed by TERM signal
upstart: bamfdaemon main process (42698) killed by TERM signal
upstart: unity7 pre-start process (42699) terminated with status 143
upstart: indicator-messages main process (42773) killed by TERM signal
upstart: indicator-bluetooth main process (42774) killed by TERM signal
upstart: indicator-power main process (42775) killed by TERM signal
upstart: indicator-datetime main process (42776) killed by TERM signal
upstart: indicator-keyboard main process (42779) killed by TERM signal
upstart: indicator-session main process (42784) killed by TERM signal
upstart: indicator-sound main process (42782) killed by TERM signal
Xsession: X session started for  at mardi 10 mars 2020, 10:16:44 (UTC+0100)
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
localuser:bob being added to access control list
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
openConnection: connect: No such file or directory
cannot connect to brltty at :0
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session-binary[1937]: WARNING: software acceleration check failed: Child process exited with code 1
gnome-session-binary[1937]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Xsession: X session started for  at mardi 10 mars 2020, 10:17:02 (UTC+0100)
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
localuser:bob being added to access control list
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
openConnection: connect: No such file or directory
cannot connect to brltty at :0
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session-binary[2057]: WARNING: software acceleration check failed: Child process exited with code 1
gnome-session-binary[2057]: CRITICAL: We failed, but the fail whale is dead. Sorry....

请问我该如何修复此问题?

答案1

好的,这个看起来很有趣:-)

第一的,Ubuntu 16.04.x 不是 EOL...它是一个 LTS 版本,将支持到2021年....(但我确实同意这是一个旧的 Ubuntu 版本,也许是时候迁移到最新版本了......比如今天发布的 Ubuntu 20.04)

第二,关于你的问题……嗯

选项 1 - 保留旧的 xrdp 包并连接到 Mate Desktop

因此,问题似乎与 mate-session 在远程会话中无法正确启动有关......

  • 您是否尝试过使用 mate-session 在机器上本地登录?
  • 如果这不起作用,请在 Ubuntu 上重新安装 mate-desktop 软件。确保您的 Ubuntu 16.04 机器上有 mate 桌面存储库
  • 如果此操作有效,请检查文件 /etc/xrdp/startwm.sh,并确保文件底部有以下行配对会话存在。

选项 2 - 安装较新的 xrdp 版本并使用 Unity Desktop

使用以前版本的 xrdp 包,无法访问 Unity Desktop...如果您决定使用较新的 xrdp 包,您应该能够从远程会话中使用 Unity Desktop

您可以尝试使用 xrdp-installer-v1.x.sh 脚本在 Ubuntu 16.04.x 上轻松自动安装较新的 xrdp 软件包,并允许您连接到 Unity Desktop。您可以在此处找到该脚本及其使用说明邮政

使用脚本非常简单

步骤 1 - 下载脚本

wget https://www.c-nergy.be/downloads/xrdp-installer-1.1.zip

第 2 步 - 解压

unzip xrdp-installer-1.1.zip

步骤 3 - 将其标记为可执行文件

chmod +x xrdp-installer-1.1.sh

步骤 4 - 使用参数执行脚本以启用您选择的选项

./xrdp-installer-1.1.sh -h  (for the help)
./xrdp-installer-1.1.sh     (install xrdp using xrdp ubuntu packages )
./xrdp-installer-1.1.sh -c  (install xrdp from sources )
....

由于 Ubuntu 20.04 即将发布,预计将发布新版本的脚本来修复一些小错误并包含对 Ubuntu 20.04 的支持

还请注意,如果用户 A 在 PC 上本地登录,则用户 A 将无法远程连接(登录远程会话后将断开连接)。如果用户 A 远程连接,则将无法在机器上本地登录(登录循环)。这是一个需要注意的限制

希望这能有所帮助,下次再见

相关内容