How to install Xrdp on Ubuntu 20.04 LTS

2021-03-15 By Mark 8202 Views linux xrdp remote desktop
27 reviews

The Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows to graphically control a remote system. Users can remotely access the Linux desktop using an RDP client if Xrdp is installed.


This guide will describe the steps to install Xrdp on Ubuntu 20.04 LTS.


  1. Take SSH access to the Ubuntu server as root or a sudo user.

  2. Run the repository update with the below command before proceeding the installation.

    # apt-get update
    

    xrdp1

  3. Install Gnome desktop package in Ubuntu using the below command.

    # apt install ubuntu-desktop
    

    xrdp10

  4. Now you need to install Xrdp using the following command. The installation process normally will take few minutes to complete.

    xrdp2


    The installation will run, and it will take few minutes to complete.

  5. Once the installation is completed, it is recommended to change the default Xrdp port 3389 to any alternative port for security purposes. For example, here we are changing the default Xrdp port with 13389 using the following command.

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

    xrdp3

  6. Then allow that particular port through UFW with the below command.

    # ufw allow 13389
    

    xrdp4

  7. Now restart the Xrdp process by using the below command.

    # systemctl restart xrdp
    

    xrdp5

  8. Access the Ubuntu desktop system from Windows 10 using the Remote Desktop Client.

    IP address:13389
    

    xrdp6

  9. Click connect and ignore the certificate errors and click on the ‘Next’ button to proceed with the connection.

    xrdp7

  10. You will get the Xrdp login page, now provide your login credentials and click OK button.

    xrdp8

  11. Once the correct logins are entered, you will get the desktop screen of the remote Ubuntu desktop system as shown in the below image.

    xrdp9

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.