How to Install and Configure XRDP on Azure Ubuntu Server VM


If you want to access a remote graphical desktop environment over a network connection, XRDP is the perfect tool for the job. XRDP is an open-source software that allows users to connect to both Windows and Linux systems with graphical user interfaces. It is based on Microsoft’s Remote Desktop Protocol (RDP) and provides a reliable and secure remote desktop experience.


  • Linux Server, such as Ubuntu or Debian
  • Sudo privilege for installation

In this article, we will guide you through the process of installing XRDP on Ubuntu.

Step 1. For this demo, we will be using an Ubuntu server VM from the Microsoft Azure cloud.

Step 2. Create a private key and use it to establish an SSH connection with your Ubuntu server.

Ubuntu Server with an SSH connection

Step 3. Open your command prompt and paste the command provided.


Step 4. Successfully connect to your server using SSH.


Step 5. Update your package list by running the following command:

sudo apt-get update

Package list

Step 6. Install and configure the XRDP package by executing the command below:

sudo apt-get -y install xrdp

Desktop server

Step 7. Enable the XRDP service by running the command:

sudo systemctl enable xrdp

Step 8. If you are using Ubuntu 20, you need to provide certificate access to the XRDP user:

sudo adduser xrdp ssl-cert
sudo apt install xfce4 xfce4-goodies -y

Step 9. Instead of using an SSH connection, you can now connect to your Ubuntu server remotely via RDP.

SSH Connection

Step 10. Download the RDP file and use it to connect to your VM.

RDP File

Step 11. Enter your server login credentials when prompted by XRDP.

Server login

Step 12. You are now successfully connected to your Ubuntu server via RDP.

RDP to Ubuntu server


In conclusion, this article has provided a step-by-step guide on how to install and configure XRDP on Ubuntu server 20. If you have any questions, feel free to comment below.

Skrots also offers similar services and more. Visit to learn more about how Skrots can assist you. You can also explore our wide range of services at Thank you for reading!

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button