在 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 允许 3389
sudo shutdown -r now从 MS-Win10 连接看起来可以按预期工作:
- 输入登录名和密码信息后,我得到这个屏幕:
- 几秒钟后,我断开了连接。
文件.xsession-errors如下所示:
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....
请问我该如何解决这个问题?
好的,这个看起来很有趣:-)
首先, Ubuntu 16.04.x 不是 EOL ......这是一个 LTS 版本,将支持到2021 年......(但我同意这是一个旧的 Ubuntu 版本,可能是时候转移到最近的版本了......比如今天发布的 Ubuntu 20.04)
其次,关于你的问题......嗯
选项 1 - 保留旧 xrdp 包并连接到 Mate 桌面
因此,问题似乎与 mate-session 在远程会话中未正确启动的事实有关....
选项 2 - 安装更新的 xrdp 版本并使用 Unity 桌面
使用以前版本的 xrdp 包,无法访问 Unity 桌面...如果您决定使用更新的 xrdp 包,您应该能够从远程会话使用 Unity 桌面
您可以尝试使用 xrdp-installer-v1.x.sh 脚本在 Ubuntu 16.04.x 上轻松并自动安装较新的 xrdp 软件包,并允许您连接到 Unity Desktop。您可以在这篇文章中找到脚本以及如何使用它的说明
使用脚本非常简单
第 1 步 - 下载脚本
第 2 步 - 解压缩
第 3 步 - 将其标记为可执行文件
第 4 步 - 使用参数执行脚本以启用您选择的选项
由于 Ubuntu 20.04 即将发布,预计将发布新版本的脚本以修复一些小错误并包括对 Ubuntu 20.04 的支持
另请注意,如果用户 A 在 PC 上本地登录,用户 A 将无法远程连接(登录到远程会话后将断开连接)。如果远程连接,用户 A 将无法在机器上本地登录(登录循环)。这是一个需要注意的限制
希望这对下次有帮助