Professional Documents
Culture Documents
How To Install XRDP On Ubuntu 20.04
How To Install XRDP On Ubuntu 20.04
04
Home About eBooks Shop Donate Linux Online Courses Subscribe to Newsletter Linux Hosting A-Z
A-Z Linux
Linux Commands
Commands
Get Involved
AD
Linux Distro’s FAQ’s Programming Linux Commands Linux Tricks Best Linux Tools Certifications Guides
Monitoring Tools
AD
https://www.tecmint.com/install-xrdp-on-ubuntu/ 1/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
Xrdp is an open-source equivalent of Microsoft’s Remote Desktop Protocol (RDP). With xrdp installed
AD
on a Linux system, users can remotely access the Linux desktop using an RDP client as we shall
demonstrate later in this article. It’s completely free to download and use.
Without much further ado, let’s see how you can install Xrdp on Ubuntu Desktop 20.04 and 18.04.
Prerequisites
This guide assumes that you already have a copy of the Ubuntu 20.04 or Ubuntu 18.04 desktop
already installed. If you have a minimal installation – without a GUI – then installing a desktop
environment (such as GNOME) is recommended.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 2/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
AD
AD
When prompted, just hit 'Y' and press enter to continue with the installation.
Xrdp service starts automatically upon installation. You can verify this by running the command:
https://www.tecmint.com/install-xrdp-on-ubuntu/ 3/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
AD
The output confirms, without a doubt, that the xrdp daemon is active and running.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 4/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
Xrdp listens on port 3389 and if you are behind a UFW firewall, you need to open the port to allow
inbound traffic from an RDP client. In this example, I will allow traffic from my entire subnet to the Learn Linux Commands
Ubuntu system. and Tools
Thereafter, reload the firewall and confirm if the port has been opened. How to Create a Disk Partitions in
Linux
https://www.tecmint.com/install-xrdp-on-ubuntu/ 5/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
In this step, we are going to access the Ubuntu desktop system from Windows 10 using the Remote
Desktop Client. But before we do so, ensure that you first log out of Ubuntu 20.04. This because Xrdp
only supports one Xsession.
Next, launch your client and key in your remote system’s IP address, and click the ‘Connect’ button.
On the pop-up that requires you to verify the identity of your remote system, ignore the certificate errors
and click on the ‘Next’ button to proceed with the connection.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 6/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
RedHat RHCSA and RHCE Certification Preparation Guide - Get This Book
On the Xrdp login page, provide your login credentials and click ‘Ok’.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 7/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
NOTE: At this point, you might encounter a blank black screen, instead of an Ubuntu desktop
background. In fact, I personally encountered it and after some digging, I discovered a nifty workaround.
Add these lines just before the lines that test & execute Xsession as shown in the screenshot below.
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
Save the file and exit. Then restart the Xrdp service.
Next, reinitiate the connection. After the initial authentication, you will be required to authenticate again
as shown.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 9/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
Ubuntu Login
Provide your credentials and click ‘Authenticate’ and finally, this ushers you to the desktop screen of
the remote Ubuntu desktop system as shown.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 10/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
We’d love to hear your feedback and, more specifically, the challenges that you encountered. We hope
that this guide was useful.
5 Best Udemy Cisco Networking Courses in 2021 How to Install Wine 6.0 in Ubuntu
If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions
or doubts? do ask for help in the comments section.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 11/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
TecMint is the fastest growing and most trusted community site for any kind of
Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to
search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a
token of appreciation.
Related Posts
https://www.tecmint.com/install-xrdp-on-ubuntu/ 12/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
7 Ways to Speed Up Firefox Best Audio and Video How to Burn CD/DVD in
Browser in Linux Desktop Players for Gnome Desktop Linux Using Brasero
https://www.tecmint.com/install-xrdp-on-ubuntu/ 13/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
lemon
November 13, 2021 at 6:01 am
When running the command to install it keeps asking for credentials again and again.
Reply
DY
June 25, 2021 at 1:18 am
James, thanks for this post and the hours of my life you saved.
Reply
← Older Comments
https://www.tecmint.com/install-xrdp-on-ubuntu/ 14/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
Name *
Email *
Save my name, email, and website in this browser for the next time I comment.
Notify me of followup comments via e-mail. You can also subscribe without commenting.
Post Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 15/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
AD
5 Tools to Scan a Linux Server for Malware and Rootkits How to View Configuration Files Without Comments in Linux
How to Check Integrity of File and Directory Using “AIDE” in Linux Show a Custom Message to Users Before Linux Server Shutdown
Will ‘Htop’ Replace Default ‘Top’ Monitoring Tool in Linux? How to Use ‘cat’ and ‘tac’ Commands with Examples in Linux
How to Install Zabbix Monitoring Tool on Debian 11/10 fd – A Simple and Fast Alternative to Find Command
How to Install Zabbix on RHEL/CentOS and Debian/Ubuntu – Part 10 Practical Examples Using Wildcards to Match Filenames in Linux
1
10 Commands to Collect System and Hardware Info in Linux
Cockpit – A Powerful Tool to Monitor and Administer Multiple Linux
Servers via Browser
https://www.tecmint.com/install-xrdp-on-ubuntu/ 16/17
27/03/2022 12:25 How to Install Xrdp on Ubuntu 20.04
5 Linux Command Line Based Tools for Downloading Files and Browsing Websites
Donate to TecMint Contact Us Advertise on TecMint Linux Services Copyright Policy Privacy Policy Career Sponsored Post
Tecmint: Linux Howtos, Tutorials & Guides © 2022. All Rights Reserved.
The material in this site cannot be republished either online or offline, without our permission.
https://www.tecmint.com/install-xrdp-on-ubuntu/ 17/17