In this tutorial we will be sharing an Ubuntu 20.04 desktop with a Windows 10 client.

In this tutorial you will learn:
  • How to share desktop on Ubuntu
  • How to open Windows 10 client
  • How to remotely connect to Ubuntu Desktop share
Ubuntu 20.04 Remote Desktop Access from Windows 10
Ubuntu 20.04 Remote Desktop Access from Windows 10

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

Ubuntu 20.04 Remote Desktop Access from Windows 10 step by step instructions

  1. 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
    
  2. Enable to start after reboot and run the remote desktop sharing server xrdp:
    $ sudo systemctl enable --now xrdp
    
  3. Still 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
    


  4. Move to Windows 10 host and open the Remote Desktop Connection client.
    Move to Windows 10 host and open the Remote Desktop Connection client. Use the search box to search for remote keyword and click on the Open button.

  5. SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.




  6. Enter the Ubuntu's remote desktop share IP address or hostname
    Enter the Ubuntu's remote desktop share IP address or hostname. Optionally, allow the Windows 10 to save your credentials.


  7. The identity of the remote computer cannot be verified
    Click Yes when prompted by message: The identity of the remote computer cannot be verified.


  8. Enter the password of the remote Ubuntu user.
    Enter the password of the remote Ubuntu user.




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

Troubleshooting

Xrdp BlackScreen

xrdp black screen bug
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 you have a better fix for this what seems to be a bug please let us know using the comments below.
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions