Remote Desktop (RDP) on Ubuntu from Windows10
Remote Desktop Access (RDP) to a Linux (Ubuntu or other debian distribution) from Microsoft Windows 10 PC or applications supporting RDP.
Remote Desktop Connection Window Picture

Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft which provides a user with a graphical interface to connect to another computer over a network connection. 

The user employs RDP client software for this purpose, while the other computer must run RDP server software.

To install RDP on Ubuntu follow the procedure described below

Install Remote Desktop Protocol (RDP) on Ubuntu

First step is to install Remote Desktop Protocol (RDP) server xrdp on the Ubuntu 20.04 desktop. To do so execute the following command

sudo apt install xrdp

Enable to start after reboot and run the remote desktop sharing server xrdp

sudo systemctl enable --now xrdp

Open Firewall Port for RDP on Ubuntu Server

On the Ubuntu 20.04 desktop, open a firewall port 3389 for an incoming traffic

sudo ufw allow from any to any port 3389 proto tcp

Remote Access (RDP) from Windows 10

Move to Windows 10 host and open the Remote Desktop Connection client. Use the search box to search for remote keyword, click on the Open button, and Enter the Ubuntu’s remote desktop share IP address or hostname. Optionally, allow the Windows 10 to save your credentials.

Click Yes when prompted by message: The identity of the remote computer cannot be verified, Enter the password of the remote Ubuntu user.

You should now be remotely connected to the RDP on Ubuntu Desktop share from your Windows 10 computer.

XRDP Black Screen Issue

From time to time I have received a black screen after initiating the remote connection to the Xrdp Remote Desktop Protocol (RDP) server.

Although I’m not sure how to completely resolve this issue but logging out from the Ubuntu desktop prior to making a remote connection have solved it at least temporarily.

If logging out from Ubuntu desktop do not work and you still see a black screen follow the steps mentioned below

Open the file

sudo vi /etc/xrdp/

and the following lines on the top of the file


Save and close the file, and then restart the RDP server

sudo service xrdp restart

Hopefully it will resolve the black screen issue.

Thanks for reading ! Refer my other articles by clicking on the button below.

Similar Posts

  • All
  • ubuntu
  • ftp
  • sftp
  • ssh
  • fail2ban
  • raspberrypi

Mobeen Syed on September 9, 2021

Network Wide Block Advertistment, Pornography and Adult Content with AdGuard Home Installed on Raspberry Pi or Ubuntu Server
Picture showing four layers of LAMP stack.

Mobeen Syed on October 3, 2022

Setup Four layers of LAMP Stack Apache2, PHP8.1, MariaDB SQL database on Linux Ubuntu 22.04 distribution for hosting your own website/cloud.

Mobeen Syed on October 3, 2022

Install Plex Media Server on Ubuntu 22.04 or Raspberry Pi with Apache2 reverse proxy to replace the plex URL with a SSL secure https domain access.

Leave a Reply

Your email address will not be published. Required fields are marked *