Skip to content

Instantly share code, notes, and snippets.

@swghosh
Forked from jpwhite3/xrdp_fedora29.md
Created December 10, 2021 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swghosh/c985f87b7cbb0f77e709e77577daf61e to your computer and use it in GitHub Desktop.
Save swghosh/c985f87b7cbb0f77e709e77577daf61e to your computer and use it in GitHub Desktop.
How to configure XRDP on Fedora 29

How to configure XRDP on Fedora 29

From: https://ask.fedoraproject.org/en/question/115753/how-to-configure-xrdp-on-fedora-27/

Install

dnf install xrdp
systemctl start xrdp

Make backups of original files

cp -f /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bkup
cp -f /etc/xrdp/sesman.ini /etc/xrdp/sesman.ini.bkup

Use Xorg

sed -i "s/autorun=/autorun=Xorg/g" /etc/xrdp/xrdp.ini

Prevent the error: Listening socket is in wrong state, terminating listener

sed -i "0,/allow_channels=true/{s/allow_channels=true/allow_channels=false/}" /etc/xrdp/xrdp.ini

Start the correct session; ~/.Xinitrc is not needed

echo "PREFERRED=gnome-session" > /etc/sysconfig/desktop

Prevent the error: Could not acquire name on session bus

echo "unset DBUS_SESSION_BUS_ADDRESS; gnome-session" >> /etc/sysconfig/desktop
echo "allowed_users=anybody" > /etc/X11/Xwrapper.config

Xrdp disconnected when using the clipboard

sed -i "/param=96/ a param=-AcceptCutText=0\nparam=-SendCutText=0\nparam=-SendPrimary=0\nparam=-SetPrimary=0" /etc/xrdp/sesman.ini

Restart XRDP

systemctl restart xrdp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment