我在 Ubuntu 20.04 Web 服务器上安装了 XRDP,还添加了 GNOME 桌面。
它非常慢而且很滞后。我在网上找到了建议导航到etc/xrdp
并编辑的详细信息xrdp.ini
,它建议我更改crypt_level=High
为crypt_level=None
我这样做了,当我尝试使用远程桌面连接登录时,Ubuntu 桌面被锁定了,我输入了密码,但它不接受,然后我重新启动了 XRDP,看看问题是否解决了,但现在我有一个黑屏,我退出并重新登录,屏幕仍然是黑的
该服务器正在运行 Ubuntu 20.04,我正在使用远程桌面连接从 Windows 10 计算机访问服务 GUI
任何帮助将非常感激
/var/log/xrdp.log
[20220630-18:55:59] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:82.25.245.114 port 54503
[20220630-18:55:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:87.106.254.254 port 3389)
[20220630-18:55:59] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20220630-18:55:59] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20220630-18:55:59] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20220630-18:55:59] [DEBUG] TLSv1.3 enabled
[20220630-18:55:59] [DEBUG] TLSv1.2 enabled
[20220630-18:55:59] [DEBUG] Security layer: requested 11, selected 1
[20220630-18:55:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:87.106.254.254 port 3389)
[20220630-18:55:59] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:82.25.245.114 port 54504
[20220630-18:55:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:87.106.254.254 port 3389)
[20220630-18:55:59] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20220630-18:55:59] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20220630-18:55:59] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20220630-18:55:59] [DEBUG] TLSv1.3 enabled
[20220630-18:55:59] [DEBUG] TLSv1.2 enabled
[20220630-18:55:59] [DEBUG] Security layer: requested 11, selected 1
[20220630-18:56:00] [INFO ] connected client computer name: XXXX
[20220630-18:56:00] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20220630-18:56:00] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20220630-18:56:00] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20220630-18:56:00] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20220630-18:56:00] [INFO ] TLS connection established from ::ffff:82.25.245.114 port 54504: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20220630-18:56:00] [DEBUG] xrdp_0000acff_wm_login_mode_event_00000001
[20220630-18:56:00] [INFO ] Loading keymap file /etc/xrdp/km-00000809.ini
[20220630-18:56:01] [WARN ] local keymap file for 0x00000809 found and doesn't match built in keymap, using local keymap file
[20220630-18:56:01] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20220630-18:56:01] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220630-18:56:01] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20220630-18:56:01] [DEBUG] return value from xrdp_mm_connect 0
[20220630-18:56:03] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20220630-18:56:03] [DEBUG] xrdp_mm_module_cleanup
[20220630-18:56:04] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 42180)
[20220630-18:56:10] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20220630-18:56:10] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220630-18:56:10] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20220630-18:56:10] [DEBUG] return value from xrdp_mm_connect 0
[20220630-18:56:10] [INFO ] xrdp_wm_log_msg: login successful for display 11
[20220630-18:56:10] [DEBUG] xrdp_wm_log_msg: started connecting
[20220630-18:56:10] [INFO ] lib_mod_log_peer: xrdp_pid=44287 connected to X11rdp_pid=42490 X11rdp_uid=0 X11rdp_gid=0 client_ip=::ffff:82.25.245.114 client_port=54504
[20220630-18:56:10] [DEBUG] xrdp_wm_log_msg: connected ok
[20220630-18:56:10] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20220630-18:56:10] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 42192)
答案1
对于任何感兴趣的人,我设法通过导航到 /etc/xrdp/ 并编辑文件 startwm.sh 来解决问题
我补充道
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
这里
if test -r /etc/profile; then
. /etc/profile
fi
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
if test -r /etc/default/locale; then
. /etc/default/locale
test -z "${LANG+x}" || export LANG
答案2
我安装了 xrdp,花了大约半天时间浏览论坛,试图让它工作。我的问题是我使用了安装 Ubuntu 时使用的帐户 (darren)。创建了一个新帐户并添加到 xrdp 组。立即生效,此后一直没有问题。我不知道为什么它能工作,但现在我可以连接了。