Replies: 1 comment 2 replies
-
There are two known problems you're hitting here:-
There's a workaround for 2, but it's fiddly. If you log in and are unable to connect to the clipboard and/or audio:-
Here's a minimally engineered script which you can try which should do all the above for you. Copy-paste this to #!/bin/sh
# Script to kill all xrdp processes except the listener
# Username xrdp runs as
XRDP_USER=xrdp
if ! getent passwd "$XRDP_USER" >/dev/null; then
echo "** xrdp user '$XRDP_USER' does not exist on this system" >&2
exit 1
fi
pidlist=
for pid in `pgrep -u $XRDP_USER xrdp\$`; do
ppid=`ps -o ppid= -p $pid` ; # Get parent pid
if [ -z "$ppid" ]; then
echo "** Can't get Parent PID of $pid" >&2
elif [ $ppid -ne 1 ]; then
pidlist="$pidlist $pid"
fi
done
if [ -z "$pidlist" ]; then
echo "** No xrdp sessions were found" >&2
false
else
echo "Killing PIDs :$pidlist"
sudo -u $XRDP_USER kill $pidlist
fi
exit $? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I use xrdp 0.9.17 on a ubuntu 22.04 host. From time to time my xrdp session has some issues. For example audio or clipboard will stop working. A restart of the xrdp service solves the issue. However, whenever I restart xrdp, it creates a new Xorg display when my rdp client reconnects. My understanding is that for a while now xrdp has been able to allow rdp clients to reconnect to an existing session. Is the new Xorg display my xrdp server creates a bug or is it expected behaviour after a "systemctl restart xrdp"?
If is not a bug, is there any advice on how to make sure my rdp client always connects to Xorg :10 and stop xrdp from creating Xorg :11 :12 etc?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions