Manjaro (KDE) running as a rdp server

Simple question, but difficult to solve... So far... :roll_eyes:

How to make Manjaro (KDE) work as a rdp server?

I - We really like the rdp protocol and have used it in the past with other Linux distros (Ubuntu) as a server, but we are having a hard time getting rdp to work on Manjaro (KDE) as a server;
II - We know that there are many other options for remote access, but our usage reality requires we to use RDP, so please we ask that all answers deal exclusively with an rdp solution.

Thanks! :blush:


Simple, KRDC.

sudo pacman -S krdc

Oh, wait, server.

sudo pacman -S krfb

Note: Make sure your firewall is open to that machine (aka port forward).


Yes! This is a good and quick solution, but krfb is not compatible with rdp.

Thank you so much!

RDP is a proprietary protocol by Microsoft.
What exactly are you trying to do, run applications remotely, or share the entire desktop?
Have you looked into freerdp?

1 Like

"share the entire desktop" -> Exactly! =D
"Have you looked into freerdp?" -> No. Only "xrdp".

Thanks! =D

There is also myrdp:

If your adventurous, xdg-desktop-portal with pipewire support provides rdp via wayland.

This is where wayland shines:

"Myrdp" and "freerdp" do not work as servers.

Thanks! =D

We have really been trying to get rdp (xrdp) to work with Manjaro KDE (KDE5), but we are having a lot of difficulties... =|

We use a lot of documentation and information on the internet especially in these links...

Apparently it is possible to make xrdp work with KDE 5, but we couldn't make it work with Manjaro KDE...


. LOG xrdp-sesman

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

[20191211-14:03:27] [DEBUG] Closed socket 8 (AF_INET
[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 - socket: 1

. LOG xrdp

less +F /var/log/xrdp.log

[20191211-14:05:19] [DEBUG] Closed socket 12 (AF_INET
[20191211-14:05:19] [DEBUG] xrdp_mm_module_cleanup
[20191211-14:05:19] [INFO ] Socket 12: AF_INET connection received from port 34186
[20191211-14:05:19] [DEBUG] Closed socket 12 (AF_INET
[20191211-14:05:19] [DEBUG] Closed socket 11 (AF_INET
[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 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 Behavior

It is oscillating between two screens as this image...

In fact, freerdp does come with a server implementation, it's called freerdp-shadow-cli.
man freerdp-shadow-cli

1 Like

Yes! You right! =D

It is sufficient to have the FreeRDP package ( ) installed.

pacman -S freerdp

Take a look here:

However, I am unable to connect. This is the log output...

[eduardolac@eduardolac-pc ~]$ freerdp-shadow-cli
[12:09:54:359] [1136:1136] [INFO][com.freerdp.server.shadow.x11] - X11 Extensions: XFixes: 1 Xinerama: 1 XDamage: 0 XShm: 0
[12:09:54:361] [1136:1136] [INFO][com.freerdp.core.listener] - Listening on
[12:10:19:104] [1136:1137] [ERROR][com.winpr.thread] - Thread running, setting to detached state!
[12:10:19:111] [1136:1141] [INFO][com.freerdp.core.connection] - Client Security: NLA:1 TLS:1 RDP:0
[12:10:19:112] [1136:1141] [INFO][com.freerdp.core.connection] - Server Security: NLA:0 TLS:1 RDP:1
[12:10:19:112] [1136:1141] [INFO][com.freerdp.core.connection] - Negotiated Security: NLA:0 TLS:1 RDP:0
[12:10:19:116] [1136:1141] [INFO][com.freerdp.core.connection] - Accepted client: eduardo-nb
[12:10:19:117] [1136:1141] [INFO][com.freerdp.core.connection] - Accepted channels:
[12:10:19:117] [1136:1141] [INFO][com.freerdp.core.connection] -  cliprdr
[12:10:19:117] [1136:1141] [INFO][com.freerdp.core.connection] -  drdynvc
[12:10:19:117] [1136:1141] [INFO][com.freerdp.core.gcc] - Active rdp encryption level: NONE
[12:10:19:118] [1136:1141] [INFO][com.freerdp.core.gcc] - Selected rdp encryption method: NONE
[12:10:19:120] [1136:1141] [INFO][com.freerdp.client.shadow] - Client from is activated (800x600@32)
[12:10:19:180] [1136:1141] [ERROR][com.freerdp.server.shadow.x11] - pam_authenticate failure: Authentication token manipulation error
[12:10:19:180] [1136:1141] [ERROR][com.freerdp.client.shadow] - client authentication failure: -1
[12:10:19:180] [1136:1141] [ERROR][com.freerdp.core.peer] - peer_recv_callback: CONNECTION_STATE_FINALIZATION - peer_recv_pdu() fail
[12:10:19:180] [1136:1141] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1
[12:10:19:180] [1136:1141] [ERROR][com.freerdp.client.shadow] - Failed to check FreeRDP file descriptor
[12:10:19:691] [1136:1137] [ERROR][com.winpr.thread] - Thread running, setting to detached state!

Yes, according to the manpage, pam + the X11 subsystem is used for authentication, maybe something in regards to pam is needed. It might be worth a look look. (examples: pam_encfs, pam_ldap, pam_mount, pam-krb5, pam-u2f,python-pam, python2-pam, kwallet-pam, etc.)

NOTE: If the server is started as root you should be prompted for authentication, if started as a user, then only the same user can authenticate.

You may need to add a ssl certificate and/or SAM authentication file as described in a post here:

Alternatively, you could use the -auth switch as described here:

And/or one or more of the following switches:

         Force a specific protocol security
         Disable RDP security (default:on)
         Disable TLS protocol security (default:on)
         Disable NLA protocol security (default:on)
         Use NLA extended protocol security (default:off)
         NTLM SAM file for NLA authentication

I hope any of this was at all helpful.

1 Like

This problem occurs when we do not enter the password and the user together (eg. we only inform the user or neither...). Just enter the username and password that the problem no longer occurs! =D



To access your Manjaro KDE (KDE 5, Plasma 5) remotely (thanks to @AJSlye ) via Remote Desktop Protocol (RDP) install FreeRDP ( )...

NOTE: FreeRDP is a free implementation of the Micro$$oft's RDP - Remote Desktop Protocol.

pacman -S --noconfirm freerdp

After installing FreeRDP open a terminal and run (on your server) the freerdp-shadow-cli command with the user you want to use to log in remotely...

For RDP client (Manjaro KDE) we recommend KRDC...

pacman -S --noconfirm krdc


We really like the FreeRDP as a server ("freerdp-shadow-cli"), it looks very light and is extremely simple. If it were integrated with the service manager (like "systemctl") then it would be perfect! The lack of documentation on "freerdp-shadow-cli" bothered us a bit.

We have other options like xrdp ( ), but it seems that xrdp has not been updated as FreeRDP and has limited support for Manjaro and/or KDE 5. We would like to see it working to compare...

Thanks! =D


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by