Here’s how to install and configure an RDP server on Linux Mint so you can connect from Windows using the Remote Desktop Connection Client:
1. Install XRDP#
Open a terminal and run:
bashsudo apt update
sudo apt install xrdp -y2. Enable and Start the XRDP Service#
bashsudo systemctl enable xrdp
sudo systemctl start xrdp3. Add XRDP User to SSL Cert Group#
bashsudo adduser xrdp ssl-cert4. Configure the Firewall (if UFW is active)#
bashsudo ufw allow 3389/tcp
sudo ufw reload5. Fix for Cinnamon Desktop (Linux Mint’s default)#
XRDP often has issues with Cinnamon. Create a session config file:
bashecho "cinnamon-session" > ~/.xsession
chmod +x ~/.xsessionThen restart XRDP:
bashsudo systemctl restart xrdp6. Second fix for Cinnamon Desktop#
Try using the startx workaround. For this edit the xrdp startup script:
bashsudo nano /etc/xrdp/startwm.shFind the lines near the bottom that say:
bashtest -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/XsessionAdd these lines above them:
bashunset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIRSo it looks like:
bashunset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/XsessionSave with Ctrl+O, exit with Ctrl+X, then restart:
bashsudo systemctl restart xrdp7. Find Your Linux Mint IP Address#
ip aLook for your local IP (e.g., 192.168.x.x) under your network interface (usually eth0 or wlan0).
8. Connect from Windows 11#
- Press Win + R, type mstsc, hit Enter
- Enter your Linux Mint IP address
- Click Connect
- Log in with your Linux Mint username and password

