This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb13:xrdp [2026/07/11 00:47] – [XRDP] Bernard Condrau | deb13:xrdp [2026/07/11 22:49] (current) – [Windows 11 Client] Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== XRDP ====== | ====== XRDP ====== | ||
| + | ===== Debian Host ===== | ||
| * Step 1: Install Xfce4 and xRDPFirst, open your terminal and install the desktop environment and xRDP packages (these examples use Debian/ | * Step 1: Install Xfce4 and xRDPFirst, open your terminal and install the desktop environment and xRDP packages (these examples use Debian/ | ||
| sudo apt install xfce4 xfce4-goodies xrdp -y</ | sudo apt install xfce4 xfce4-goodies xrdp -y</ | ||
| - | * Step 2: Configure the Desktop Session. You need to tell the xRDP server to load the Xfce desktop environment instead of the default Linux desktop. Set Xfce4 as the default for your active user by running:< | + | * Step 2: Configure the Desktop Session. You need to tell the xRDP server to load the Xfce desktop environment instead of the default Linux desktop. Set Xfce4 as the default for your active user, then make the file executable:< |
| - | * Make the file executable:< | + | chmod +x ~/ |
| - | * Step 3: Edit the xRDP Startup ScriptTo prevent session dropouts, update the global xRDP configuration file:Open the file with your preferred text editor | + | * Step 3: Edit the xRDP Startup ScriptTo prevent session dropouts, update the global xRDP configuration file:Open the file with your preferred text editor, |
| - | * Comment out the last two lines by adding a # at the beginning, so they look like this:< | + | # test -x / |
| - | # exec /bin/sh / | + | # exec /bin/sh / |
| - | * Add startxfce4 right before the last line of the file (usually exit 0), ensuring your file ends similarly to this:< | + | startxfce4 |
| exit 0</ | exit 0</ | ||
| - | | + | * Step 4: Add the xRDP User to the SSL Cert Group. |
| - | | + | * Step 5: Enable the Service:< |
| - | * Step 5: Restart the Service and Open the Firewall. Restart the xRDP service to apply all configuration changes:< | + | sudo ufw allow 3389</ |
| - | * If you are using a firewall (such as ufw), make sure to open the RDP port so your remote device can connect:< | + | * Step 6: Restart the Service and open the Firewall. Restart the xRDP service to apply all configuration changes:< |
| - | * Step 6: You can now open the Remote Desktop Connection app on Windows or the Microsoft Remote Desktop app on Linux. Enter your Linux computer' | + | sudo ufw allow 3389</ |
| + | * Step 7: You can now open the Remote Desktop Connection app on Windows or the Microsoft Remote Desktop app on Linux. Enter your Linux computer' | ||
| + | ===== Windows 11 Client ===== | ||
| + | * Open the built-in //Remote Desktop Connection// | ||
| + | * Disable Persistent Bitmap Caching? | ||
| + | * Click //Show Options// at the bottom | ||
| + | * Switch to the // | ||
| + | * Uncheck the box for // | ||
| + | * Log Out of the Local Machine. If you are logged into the physical Debian machine (or a local VM console) with the same user account, the remote RDP session will fail instantly. Go to the physical monitor/ | ||
| + | * Create a SSH tunnel with a different port than 3389 on the client and port 3389 on the host | ||
| + | ===== Self-signed certificates ===== | ||
| - | * xrdp certificate mismatch | + | * If you get a //xrdp certificate mismatch// |
| - | ===== Self-signed certificates ===== | ||
| ==== Trust the Existing Self-Signed Certificate ==== | ==== Trust the Existing Self-Signed Certificate ==== | ||
| * Launch your //Remote Desktop Connection// | * Launch your //Remote Desktop Connection// | ||
| Line 27: | Line 37: | ||
| ==== Hostname changed ==== | ==== Hostname changed ==== | ||
| - | If the hostname has changed you need to re-issue the self-signed certificate:< | + | * If the hostname has changed you need to re-issue the self-signed certificate:< |