Manjaro (KDE) 以 rdp 伺服器運行

Manjaro (KDE) 以 rdp 伺服器運行

簡單的問題,但很難解決...到目前為止...=|

怎麼做曼札羅 (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 一起工作...

現在的情況:

。日誌 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)

。雷米納行為

它在兩個螢幕之間振盪,如下圖所示...

雷米納行為

答案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 的支持有限。


進一步的問題:

地球上的任何人都可以使用 xrdp 讓 Manjaro KDE(KDE 5、Plasma 5)用作 RDP 伺服器嗎? =|

謝謝! =D

相關內容