Remote Desktop Protocol (RDP) provides users with the ability to remotely connect and control another computer. While it's natively associated with Windows operating systems, it's possible to set up an RDP server on Ubuntu too. This allows Windows, macOS, and other Linux users to connect seamlessly to an Ubuntu desktop.

Ubuntu, by default, comes with a built-in tool called “Desktop Sharing” which acts as an RDP server. This means you don't need to install additional software. The tool works with VNC-compatible clients but is also accessible by RDP clients with the right configurations.

Steps to enable RDP server on Ubuntu:

  1. Open the Activities menu and search for “Desktop Sharing”.
  2. Launch the “Desktop Sharing” application.
  3. Check the box for “Allow other users to view your desktop”. If you also want to grant them control rights, check the box for “Allow other users to control your desktop”.
  4. Set a strong password by clicking on “Require the user to enter this password”. This will ensure that unauthorized users can't access your desktop.
  5. For ease of access, note down the IP address shown at the bottom of the application window. Remote users will use this IP address to connect to your Ubuntu machine.
  6. (Optional) For additional security, you can restrict access to specific IP addresses by clicking on “Only allow connections from these IPs” and then adding the desired IPs.
  7. Once configured, click “Close”. The RDP server is now active and ready to accept incoming connections.
  8. On the remote machine, open an RDP client and enter the IP address of the Ubuntu machine to establish the connection.

    Depending on your client software, you might need to specify the port number (typically 5900 for VNC-based connections).

Ensure that your firewall settings on the Ubuntu machine allow incoming connections on the relevant port to ensure seamless remote desktop access.

This guide is tested on Ubuntu:

Version Code Name
22.04 LTS Jammy Jellyfish
23.10 Mantic Minotaur
24.04 LTS Noble Numbat
Discuss the article:

Comment anonymously. Login not required.