How to Install Remote Desktop on Ubuntu 18.04

Table of Contents

How to Install Remote Desktop on Ubuntu 18.04



This is a service that lets you remotely control and operate another computer. To control a host machine, it can be enabled on a graphical client machine in Ubuntu. Point-and-click users would benefit from this feature, as well as users who are unfamiliar with command-line operations. We will guide you through the steps of installing and configuring Xrdp on Ubuntu 18.04.



So let’s start,



Step 1: Log in to the server with Sudo access



Installing the Xrdp application requires that you have Sudo access to the server.


ssh [email protected]_server_ip



Step 2: Install XRDP Packages



First, Update Repositories and Packages,


sudo apt-get update


Run the following command to install Xrdp after you have updated the server


sudo apt-get install xrdp



Step 3: Install your preferred desktop environment


Here we are using Xfce,


sudo apt-get install xfce4
sudo apt-get install xfce4-terminal


Using the below command, configure XRDP to use XFCE environment,


sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n xfce-session \n' /etc/xrdp/



Step 4: Allow RDP port in Firewall


Use the below command if UFW is enabled,


sudo ufw allow 3389/tcp


The following commands should be used if Iptables is running on your server


sudo iptables -A INPUT -p tcp --dport 3389 -j ACCEPT
sudo netfilter-persistent save
sudo netfilter-persistent reload


Restart the Xrdp application once all the above changes have taken effect.


sudo /etc/init.d/xrdp restart



Now that the changes have been implemented, By now, you should be able to connect via RDP








Get the most out of learning with

Share on
VPSie Cloud service

Unlock Your

20% Discount

The First 3 orders get 20% discount! Try Sign up on VPSie to get a chance to get the discount.