This is an old revision of the document!
sudo apt update sudo apt install xfce4 xfce4-goodies xrdp -y
echo "xfce4-session" > ~/.xsession
chmod +x ~/.xsession
sudo nano /etc/xrdp/startwm.sh
# test -x /etc/X11/Xsession && exec /etc/X11/Xsession # exec /bin/sh /etc/X11/Xsession
startxfce4 exit 0
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
sudo ufw allow 3389
.cer file to your local computer.
* Double-click the saved .cer file, click Install Certificate, choose Local Machine, and select Place all certificates in the following store. Browse and pick the Trusted Root Certification Authorities** store, then finish the import.If the hostname has changed you need to re-issue the self-signed certificate:
sudo make-ssl-cert generate-default-snakeoil --force-overwrite