Xrdp Fedora 43

Anybody got xrdp to work with Fedora 43?

Should xrdp work with Wayland?

After the login dialog the RDP connection just closes.

PRETTY_NAME=“Fedora Linux 43 (Xfce)”

System is at multi-user.target

xrdp.log
[INFO ] xrdp_wm_log_msg: sesman connect ok
[INFO ] xrdp_wm_log_msg: Performing login request for weberjn
[INFO ] xrdp_wm_log_msg: login was successful - creating session
[INFO ] xrdp_wm_log_msg: session is available on display 10 for user weberjn
[INFO ] xrdp_wm_log_msg: Connecting to session
[INFO ] loaded module ‘libvnc.so’ ok, interface size 4832, version 4
[INFO ] VNC: Clipboard (if available) is provided by chansrv facility
[INFO ] xrdp_wm_log_msg: Connecting to chansrv
[INFO ] Layout from ClientLayout (geom=1920x1080 #screens=1) : 0:(1920x1080+0+0)
[INFO ] Layout from OldServerLayout (geom=1920x1080 #screens=1) : 1804289383:(1920x1080+0+0)
[ERROR] VNC server closed connection

I note that “PRETTY_NAME” includes ‘(Xfce)’

Is Xfce the desktop environment you installed and wish to use?

If so, note that xfce 4.20 (on f43) is not Wayland enabled and uses Xorg instead.

I use xrdp all the time on F42 and just tested with F43 and it works just fine.

In /etc/xrdp/xrdp.ini, I enable Xorg and disable VNC:

; Some session types such as Xorg, X11rdp and Xvnc start a display server.
; Startup command-line parameters for the display server are configured
; in sesman.ini. See and configure also sesman.ini.
[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20

#[Xvnc]
#name=Xvnc
#lib=libvnc.so
#username=ask
#password=ask
#ip=127.0.0.1
#port=-1
#xserverbpp=24
#delay_ms=2000
; Disable requested encodings to support buggy VNC servers
; (1 = ExtendedDesktopSize)
#disabled_encodings_mask=0
; Use this to connect to a chansrv instance created outside of sesman
; (e.g. as part of an x11vnc console session). Replace ‘0’ with the
; display number of the session
#chansrvport=DISPLAY(0)

I also add the file ~/startwm.sh to the home directory of the user logging in via xrdp:

#!/bin/sh

dbus-launch --exit-with-session /usr/bin/startxfce4

and set its permissions to 0755 (O:rwx,G:rx,W:rx)

After restarting xrdp:

systemctl restart xrdp

I am able to log in via xrdp and use Xfce.

If you’re not using Xfce YMMV. If so, perhaps someone else can assist.

HTHAL

1 Like