From: https://ask.fedoraproject.org/en/question/115753/how-to-configure-xrdp-on-fedora-27/
dnf install xrdp
systemctl start xrdp
cp -f /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bkup
cp -f /etc/xrdp/sesman.ini /etc/xrdp/sesman.ini.bkup
sed -i "s/autorun=/autorun=Xorg/g" /etc/xrdp/xrdp.ini
sed -i "0,/allow_channels=true/{s/allow_channels=true/allow_channels=false/}" /etc/xrdp/xrdp.ini
echo "PREFERRED=gnome-session" > /etc/sysconfig/desktop
echo "unset DBUS_SESSION_BUS_ADDRESS; gnome-session" >> /etc/sysconfig/desktop
echo "allowed_users=anybody" > /etc/X11/Xwrapper.config
sed -i "/param=96/ a param=-AcceptCutText=0\nparam=-SendCutText=0\nparam=-SendPrimary=0\nparam=-SetPrimary=0" /etc/xrdp/sesman.ini
systemctl restart xrdp