How to Install and Configure XRDP on Azure Ubuntu Server VM

Introduction

XRDP is an open-source software that stands for "X Remote Desktop Protocol." It enables users to access a remote graphical desktop environment over a network connection. While its protocol is based on Microsoft's Remote Desktop Protocol (RDP), XRDP allows connections to both Windows and Linux systems with graphical user interfaces.

Prerequisites

  • Linux Server i.e. Ubuntu or Debian
  • You must have the sudo privilege for installation.

In this article, you will learn how to install XRDP on Ubuntu.

Step 1. I'm using an Ubuntu server VM from the Microsoft Azure cloud for this demo.

Microsoft Azure Cloud

Step 2. Create a private key and copy the key to Connect your Ubuntu Server with an SSH connection.

Ubuntu Server with an SSH connection

Step 3. Open your CMD and paste the command here.

CMD

Step 4. Successfully connected my server with SSH.

SSH

Step 5. Update your package list using the below command.

sudo apt-get update

Package list

Step 6. Install and configure a remote desktop server.

sudo apt-get -y install xrdp

Desktop server

Step 7. Enable the XRDP command.

sudo systemctl enable xrdp

Step 8. For Ubuntu 20, you need to provide certificate access to an XRDP user.

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

Step 9. Connect to remote through RDP instead of SSH connection.

SSH Connection

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

RDP File

Step 11. Make sure your Server login credential and provide here on the XRDP prompt.

Server login

Step 12. Successfully connected RDP to Ubuntu Server.

RDP to Ubuntu server

Conclusion

This article taught us how to install and configure XRDP on Ubuntu server 20. If you have any questions, don't hesitate to comment below.