---
title: How to Install Xrdp on Ubuntu 20.04
url: https://docs.vultr.com/how-to-install-xrdp-on-ubuntu-20-04
description: Learn how to install and configure Xrdp on Ubuntu 20.04 to enable remote desktop connections. Step-by-step guide with troubleshooting tips included.
publish_date: 2021-01-12T00:00:00Z
last_updated: 2026-04-15T00:00:00.077250Z
header_image: https://assets.vultrdevrel.com/docs-main-doc-assets-1/829/469ebcb8ea45e88f.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

## Introduction

Remote Desktop Protocol (RDP) is a Microsoft protocol providing a remote graphical connection to another computer via the network. It supports strong encryption, audio, and disk redirection. `xrdp` is an open-source project to implement the RDP on the Linux X desktop. This tutorial explains how to install `xrdp` on a Ubuntu 20.04 instance with GNOME desktop environment.

## Prerequisites

* Deploy a [Vultr Ubuntu 20.04](https://console.vultr.com/deploy) instance.
* Create a sudo user.
* [Update the Ubuntu server](https://docs.vultr.com/how-to-update-a-vultr-cloud-server#how-to-update-debian--ubuntu).

## Installation Steps

1. Connect to your instance via SSH or the Web Console as your sudo user.
1. Install GNOME desktop.

        $ sudo tasksel install ubuntu-desktop

1. Reboot your instance.

        $ sudo reboot

1. After the reboot, connect to your instance again via SSH or the Web Console as your sudo user.
1. Install **xrdp**.

        $ sudo apt install xrdp

1. It's recommended to change the RDP port. For example, change the default port of **3389** to **13389**. If you choose a different port, adjust the `sed` command below.

        $ sudo sed -i 's/3389/13389/g' /etc/xrdp/xrdp.ini

1. Open the port in the Ubuntu firewall, `ufw`. 

        $ sudo ufw allow 13389

1. If you use the [Vultr Firewall](https://docs.vultr.com/vultr-firewall), open the port there as well.
1. Restart the `xrdp` service:

        $ sudo systemctl restart xrdp

1. Connect your instance [with an RDP Client](https://docs.vultr.com/how-to-connect-to-windows-server-with-rdp).

## More Resources

* [xrdp Official Site](http://xrdp.org/)
