xrdp_channel_process failed
error with chansrvport=DISPLAY(0)
#3237
Replies: 4 comments 14 replies
-
This has been raised in a comment before by a user @usa- who now appears to have disappeared from Github. Most likely this is a regression. I'll try to get round to looking at it later today. |
Beta Was this translation helpful? Give feedback.
-
@es-fabricemarie - one thing springs to mind. Can you check your display number? If you've configured gdm on your machine for X operation only, display :0 will be used for gdm, and another display (probably :1) will be used for your session. Check your display number with You may need to set |
Beta Was this translation helpful? Give feedback.
-
xrdp-chansrv needs to run as the same user as the X session. If you run it as root, |
Beta Was this translation helpful? Give feedback.
-
I managed to make it work in the end. I've added a export XRDP_SOCKET_PATH=/run/xrdp/0
export XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_0
export XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_0
export PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
export XRDP_SESSION="blah" and I've changed my #!/bin/bash
XAUTHORITY=$(find /run/sddm/ -type f -name 'xauth_*')
export XAUTHORITY
export DISPLAY=:0
export USER=root
export HOME=/root
export XDG_CONFIG_DIRS=/root/.config/kdedefaults:/etc/xdg:/usr/share/kde-settings/kde-profile/default/xdg
export XDG_DATA_HOME=/root/.local/share
export LOGNAME=root
export KDE_SESSION_UID=0
export XDG_RUNTIME_DIR=/run/user/0
export XRDP_SESSION=1
sleep 2
# start the VNC server
/usr/bin/x0vncserver \
--display=:0 \
--rfbauth=/etc/entsecure/vncpasswd \
--rfbport=5900 \
--localhost \
--AlwaysShared &
# ensure all your users are part of the "users" group, or choose the correct one.
# create the directory in advance and add set-gid to the directory
# so regular users can connect
mkdir -p /run/xrdp/0
chown root:users /run/xrdp/0
chmod g+s /run/xrdp/0
/usr/sbin/xrdp-chansrv Finally, I deleted the I haven't tried copy/paste and USB redirections yet, but sounds work. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get xrdp to connect statically to a x0vncserver session running on the main Xorg process. The goal is for a single user to connect via xrdp to the console running sddm, without having to enter a password in xrdp dialog.
The console and xrdp should show the same screen in the same state.
I'm using xrdp version 0.10.1 on Fedora 40.
My machine has the standard systemd sddm-x11 service running on the machine, where it starts an Xorg instance and awaits user login. I've made a systemd service to start x0vncserver for that display (after sddm service has started), as well as run xrdp-chansrv right after that. I've configured xrdp.ini to statically use that session.
The user can indeed connect and get the sddm screen after launching an RDP client and pressing enter on the xrdp login dialog.
The user can then proceed to login with sddm and and get a normal KDE session that just works.
My problem is with chansrv, xrdp doesn't seem to manage to connect to it. So all the channel operations like sound redirection, usb redirection etc do not work. When I run
lsof
to inspect the xrdp-chansrv process, I don't see any Unix sockets (that I can usually see in a more standard configuration of xrdp)Am I missing some configuration or parameter when I start xrdp-chansrv?
The service I use to start x0vncserver is
The file
/usr/libexec/start_vnc0
contains:My
/etc/xrdp/xrdp.ini
contains:My
/etc/xrdp/sesman.ini
file is:sesman log file is almost empty and doesn't look relevant here.
xrdp log file is:
After I disconnect the session, xrdp.log adds these lines:
I was following the hints from #1891 (comment)
given by @matt335672 regarding
chansrvport=DISPLAY(0)
but I seem to be missing something.Beta Was this translation helpful? Give feedback.
All reactions