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
Use code with caution.Step 6: ConnectYou can now open the Remote Desktop Connection app on Windows or the Microsoft Remote Desktop app on macOS/Linux. Enter your Linux computer's IP address and log in using your standard Linux username and password.If you're having trouble connecting or seeing a black screen, let me know:What Linux distribution and version are you using (e.g., Ubuntu 24.04, Debian 12)?Are you connecting from a Windows, Mac, or Linux client?15 sitesHow to switch from gnome to xfce for xrdp?To switch from Gnome to xfce for xrdp on Debian, you can try these steps: 1. Modify `/etc/xrdp/startwm.sh` 2. Comment out the last…RedditCannot connect to Xfce with remote desktopIf you're having trouble connecting to Xfce with remote desktop on Xubuntu, you can try these steps: * Edit /etc/xrdp/startwm.sh…Ask UbuntuInstall and configure xrdp to use Remote Desktop with UbuntuInstall a desktop environment on your Linux VM * ssh azureuser@myvm.chinanorth2.cloudapp.chinacloudapi.cn. If you're using Windows…Azure.cn
* xrdp certificate mismatch
===== Self-signed certificates =====
==== Trust the Existing Self-Signed Certificate ====
* Launch your Remote Desktop Connection and enter the server's hostname.
* Click View Certificate on the security warning prompt.
* Go to the Details tab and click Copy to File.
* Save the .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