Manjaro(KDE)作为 rdp 服务器运行

Manjaro(KDE)作为 rdp 服务器运行

问题简单,但很难解决......到目前为止......=|

怎么做Manjaro(KDE)担任 rdp服务器

笔记: - 我们非常喜欢 rdp 协议,过去曾将其与其他 Linux 发行版(Ubuntu)一起用作服务器,但我们很难让 rdp 在 Manjaro(KDE)上作为服务器运行; - 我们知道远程访问有许多其他选项,但我们的实际使用情况要求我们使用 RDP,因此请要求所有答案都处理仅使用 rdp 解决方案

谢谢!=D

关于该主题的有趣链接:

https://forum.manjaro.org/t/xrdp-cant-get-plasma-to-start-after-initial-logging-into-xrdp-xorg-session/110678

https://forum.manjaro.org/t/not-able-to-rdp-from-windows-to-manjaro-vm-via-xrdp-xorg/94357/2

https://wiki.archlinux.org/index.php/xrdp


更新:

我们一直在尝试让 rdp (xrdp) 与 Manjaro KDE (KDE5) 协同工作,但是遇到了很多困难......=|

我们在互联网上使用了大量的文档和信息,尤其是在这些链接中......

https://raw.githubusercontent.com/Microsoft/linux-vm-tools/master/arch/install-config.sh

https://www.hiroom2.com/2019/06/15/ubuntu-1904-xrdp-kde-en/

显然可以让 xrdp 与 KDE 5 一起工作,但我们无法让它与 Manjaro KDE 一起工作……

现在的情况:

. LOG xrdp-sesman

less +F /var/log/xrdp-sesman.log

[20191211-14:03:27] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191211-14:03:27] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20191211-14:03:37] [ERROR] X server for display 10 startup timeout
[20191211-14:03:37] [CORE ] waiting for window manager (pid 5102) to exit
[20191211-14:03:37] [ERROR] X server for display 10 startup timeout
[20191211-14:03:37] [ERROR] another Xserver might already be active on display 10 - see log
[20191211-14:03:37] [DEBUG] aborting connection...
[20191211-14:03:37] [CORE ] window manager (pid 5102) did exit, cleaning up session
[20191211-14:03:37] [INFO ] calling auth_stop_session and auth_end from pid 5101
[20191211-14:03:37] [DEBUG] cleanup_sockets:
[20191211-14:03:37] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_10
[20191211-14:03:37] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20191211-14:03:37] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdpapi_10
[20191211-14:03:37] [INFO ] ++ terminated session:  username eduardolac, display :10.0, session_pid 5101, ip 192.168.12.1:33886 - socket: 1

. 日志 xrdp

less +F /var/log/xrdp.log

[20191211-14:05:19] [DEBUG] Closed socket 12 (AF_INET 192.168.12.253:3389)
[20191211-14:05:19] [DEBUG] xrdp_mm_module_cleanup
[20191211-14:05:19] [INFO ] Socket 12: AF_INET connection received from 192.168.12.1 port 34186
[20191211-14:05:19] [DEBUG] Closed socket 12 (AF_INET 192.168.12.253:3389)
[20191211-14:05:19] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191211-14:05:19] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20191211-14:05:19] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20191211-14:05:19] [DEBUG] TLSv1.3 enabled
[20191211-14:05:19] [DEBUG] TLSv1.2 enabled
[20191211-14:05:19] [DEBUG] Security layer: requested 3, selected 0
[20191211-14:05:19] [INFO ] connected client computer name: eduardo-nb
[20191211-14:05:19] [INFO ] adding channel item name cliprdr chan_id 1004 flags 0xc0a00000
[20191211-14:05:19] [INFO ] adding channel item name drdynvc chan_id 1005 flags 0xc0800000
[20191211-14:05:19] [INFO ] Non-TLS connection established from 192.168.12.1 port 34186: encrypted with standard RDP security
[20191211-14:05:19] [DEBUG] xrdp_00001455_wm_login_mode_event_00000001
[20191211-14:05:19] [INFO ] Cannot find keymap file /etc/xrdp/km-00000416.ini
[20191211-14:05:19] [INFO ] Cannot find keymap file /etc/xrdp/km-00000416.ini
[20191211-14:05:19] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20191211-14:05:19] [WARN ] local keymap file for 0x00000416 found and doesn't match built in keymap, using local keymap file
[20191211-14:05:20] [DEBUG] Closed socket 23 (AF_UNIX)

。 Remmina 行为

它在两个屏幕之间振荡,就像这幅图像一样……

Remmina 行为

答案1

要通过远程桌面协议 (RDP) 远程访问你的 Manjaro KDE (KDE 5、Plasma 5)(感谢 @AJSlye),请安装 FreeRDP (http://www.freerdp.com/)...

笔记:FreeRDP 是 Micro$$oft 的 RDP(远程桌面协议)的免费实现。

pacman -S --noconfirm freerdp

安装 FreeRDP 后,打开一个终端并(在您的服务器上)使用freerdp-shadow-cli您想要用于远程登录的用户运行命令...

freerdp-shadow-cli

对于 RDP 客户端(Manjaro KDE),我们推荐 KRDC...

pacman -S --noconfirm krdc

韩国核能公司


最后考虑:

我们非常喜欢 FreeRDP 服务器(“freerdp-shadow-cli”),它看起来非常轻巧,非常简单。如果它与服务管理器(如“systemctl”)集成,那就完美了!“freerdp-shadow-cli”缺乏文档让我们有点困扰。

我们还有其他选择,例如 xrdp (http://xrdp.org/),但似乎 xrdp 尚未像 FreeRDP 那样更新,并且对 Manjaro 和/或 KDE 5 的支持有限。我们希望看到它能够正常工作以进行比较……


进一步的问题:

地球上有人可以让 Manjaro KDE(KDE 5、Plasma 5)使用 xrdp 作为 RDP 服务器工作吗?=|

谢谢!=D

相关内容