How to install Xrdp on Ubuntu 20.04 LTS

2021-03-15 By Mark 118 Views linux xrdp remote desktop
0 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 proceed 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 completed, it is recommended to change the default Xrdp port 3389 to any alternative port for security purpose. 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 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 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