XRDP: Install and use X11

This commit is contained in:
Daniel Pätzold
2026-03-27 23:05:44 +01:00
parent 5e63d48876
commit 770745698c
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec dbus-launch startplasma-x11
-1
View File
@@ -1 +0,0 @@
+4 -1
View File
@@ -11,7 +11,7 @@ if [ "$EUID" -ne 0 ]; then
exit 1 exit 1
fi fi
#Currently xrdp needs X11 - wayland not ye possible #Currently xrdp needs X11 - wayland not yet possible
dnf install xrdp xorgxrdp plasma-workspace-x11 -y dnf install xrdp xorgxrdp plasma-workspace-x11 -y
XRDP_SERVICESTATUS=$( systemctl is-enabled xrdp ) XRDP_SERVICESTATUS=$( systemctl is-enabled xrdp )
if [ ${XRDP_SERVICESTATUS} != "enabled" ]; then if [ ${XRDP_SERVICESTATUS} != "enabled" ]; then
@@ -24,3 +24,6 @@ if [ ${XRDP_SERVICESTATUS} != "enabled" ]; then
chcon --type=bin_t /usr/sbin/xrdp chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman chcon --type=bin_t /usr/sbin/xrdp-sesman
fi fi
cp -f .Xclients ~/.Xclients
chown $SUDO_USER:$SUDO_USER $SUDO_HOME/.Xclients
chmod u+x $SUDO_HOME/.Xclients