Config Server Firewall

How to Set Up Remote Desktop on Linux Mint 22 Using XRDP

If you want to access your Linux Mint 22 computer remotely, one of the easiest ways to do that is by setting up Remote Desktop using XRDP. In this guide, I’ll show you step-by-step how to install and configure XRDP on Linux Mint 22, connect remotely, understand its limitations, and explore the best alternative if XRDP doesn’t work for you.

What Is XRDP in Linux Mint 22?

XRDP is an open-source implementation of Microsoft’s Remote Desktop Protocol (RDP). It allows you to connect to your Linux Mint desktop from another computer using the built-in Remote Desktop Connection app on Windows or similar RDP clients.

Step 1: Install XRDP on Linux Mint 22

install XRDP using:

sudo apt update
sudo apt install xrdp

Once installed, check if the XRDP service is active and running:

systemctl status xrdp

If it says active (running), XRDP is now successfully installed. The enabled status means it will automatically start when your system boots.

Step 2: Network Configuration (Important)

The XRDP configuration files are located in the /etc/xrdp/ directory. The main file is called xrdp.ini.

Inside that file, you’ll find the port number (default: 3389) used for Remote Desktop connections.

Step 3: Connect to Linux Mint Remotely

After XRDP is installed and configured, you can connect from another computer using the IP address of your Linux Mint 22 system.

remote desktop linux mint from windows
Remote Desktop Linux Mint from Windows

When you use a remote desktop connection tool (like the built-in Windows Remote Desktop Connection) and attempt to connect, you will be prompted for a login.

remote desktop mint linux

If the login screen appears, that means your Remote Desktop connection is working.

However, if your connection drops right after login, it’s because XRDP doesn’t allow logging in to both local and remote sessions using the same user account.

To fix this, simply log out from your local session first and then connect remotely.

Important Notes and Tips

log out properly instead of closing the window
Log out properly instead of closing the window

Overcoming the Single-User Limitation

The most practical way to overcome the limitation of connecting both locally and remotely at the same time is to use two separate user accounts: one for local login and one for remote login.

After creating the user, make sure to log into that new account at least once locally. This is necessary because the desktop settings and configurations need to be set up properly, which happens only after an initial local login.

Limitations of XRDP on Linux Mint 22

While XRDP is a simple way to enable Remote Desktop, it has a few limitations:

Alternative Remote Desktop Software

If XRDP doesn’t work well for your setup, you can use Anydesk, a popular cross-platform remote desktop software for Linux, Windows, and macOS.

Conclusion

Setting up Remote Desktop on Linux Mint 22 using XRDP is a straightforward process. It allows you to access your desktop remotely, whether from another computer on your local network or over the internet with proper configuration.

If you need a simpler solution that works without port forwarding and supports simultaneous sessions, Anydesk is an excellent alternative.