How to Install Xrdp Server (Remote Desktop) on Ubuntu 20.04

How to Install Xrdp Server (Remote Desktop) on Ubuntu 20.04

Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to control a remote system graphically .

In this tutorial, we will learn how to install and configure Xrdp server on Ubuntu 20.04.

Installing Desktop Environment

Ubuntu servers are operated via the command line and do not have pre-installed desktop environment.

There are multiple desktop environments available in Ubuntu repositories that you can select. Here we are going to install Gnome, which is the default desktop environment in Ubuntu 20.04.

Install Gnome

To install the Ubuntu desktop environment, run the command:

$ sudo apt update 
$ sudo apt install ubuntu-desktop 

Installing Xrdp

Xrdp is incuded in the default Ubuntu repositories. To install it, run:

$ sudo apt install xrdp 

Once the installation is complete, the Xrdp service will automatically start. You can verify it by typing:

$ sudo systemctl status xrdp 

Output will look like this –

The output shows that, the xrdp daemon is active and running.

The Xrdp daemon listens on port 3389 on all interfaces. If you are using firewall on ubuntu server then you need to open Xrdp port.

$ sudo ufw allow 3389 

Thereafter, reload the firewall and confirm if the port has been opened.

$ sudo ufw reload

Connecting to the Xrdp Server

Now that you have set up your Xrdp server, its time to open your Xrdp client and connect to the server.

If you have a Windows PC, you can use the default RDP client. This will open up the RDP client. In the “Computer” field, enter the remote server IP address and click “Connect”

On the login screen, enter your username and password and click “OK”.

You can see the default Gnome desktop after logging in. This is what it should look like:

If you are running macOS, you can install the Microsoft Remote Desktop application from the Mac App Store. Linux users can use an RDP client such as Remmina 

Configuring a remote desktop allows you to manage your Ubuntu 20.04 server from your local machine through an easy to use graphic interface.


    • Related Articles

    • Speed Test in Ubuntu server

      Speedtest.net is an online service that allows you to test your broadband connection by downloading a file from a speedtest.net server located near you. This utility allows you to use the command line to access the service. Step 1: Login into the ...
    • Deploy Django Applications Using Nginx and uWSGI on Ubuntu 14.04

      Django is a Python Web Platform of high standards that promotes fast development and clean, pragmatic design. A description on using uWSGI and nginx on Ubuntu 14.04 is given in this document. Before You Begin 1. Get acquainted with the starting guide ...
    • Installation of Mysql server on CentOS 7

      MySQL is an open-source relational database management system . Its name consists a combination of ‘My’ and ‘SQL’ as the name for the Structured Query Language of the co-founder Michael Widenius’s daughter. Step 1: Login into the server using root ...
    • Install CWP in Centos 7

      CWP is an free and paid license based hosting panel for managing website database,emails,file,etc using a single Panel. In this article we will discuss how to install CWP in Centos 7 Software Requirements You must have a clean/fresh installation of ...
    • Access Linux server using SSH in Windows, Linux and Mac OS.

      Part 1: Access Linux server using SSH in Windows 1. Download PuTTY or another PuTTY download source from URL https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe . The file called “putty.exe” is perfect for simple SSH. 2. Save and download ...