Ubuntu 20.04/20.10: How to enable RDP access from Windows PC.

There have been a number of times that I have wanted to access my Ubuntu 20.04/20.10 PC from a Windows PC using Remote Desktop Access (RDP). This is how I have configured it to work.

Enable RDP on the Ubuntu 20.04/ 20.10 PC:

Open the terminal and type the following command:

sudo apt install xrdp
Ubuntu 20.04/20.10 - How to enable RDP access from Windows PC.

Type your password and enter.

RDP - Password

Enter Y and enter.

RDP - Type Y

Xrdp will be installed:

RDP - Installing

Once installed the installer will return to the command line:

RDP - Done

Enable xrdp to start after reboot and to run now type:

sudo systemctl enable --now xrdp
RDP - enable

The command will run and then return to the command line:

RDP - Done

Run the following command to open the rdp port on the local firewall for incoming traffic.

sudo ufw allow from any to any port 3389 proto tcp
RDP - Open Firewall

The rules will be added:

RDP - Done

Run the following command to find the ip address of the machine. This will be needed to rdp from the windows machine.

sudo ip a

The ip address of the machine is highlighted in red:

RDP - Get IP

This is all you have to do on the Ubuntu PC. Now go onto the windows PC and connect to the Ubuntu PC as follows:

Connecting to the Ubuntu PC from Windows using RDP.

Click on the start button and type mstsc. Click on Open.

RDP - Open RDP

Type in the ip address of the Ubuntu PC and click Connect.

RDP add IP

Click Yes.

RDP - Click Yes

Type the username and password and click OK.

RDP - Add user and password

You will now have access to the linux desktop. Yay.

RDP - Connected.

To log off again just click on the x of the RDP window or log out:

RDP - Logout
RDP - Logout

Troubleshooting:

Black Screen at logon:

If there is a user logged in on the Ubuntu PC you may get a black screen when you rdp to the PC. This can be resolved by logging off of the Ubuntu PC.

For more things to do with your new Ubuntu 20.10 Desktop go to my other articles HERE.

Authentication Required login

In some cases you will get the following window appear and even though you log in it will not disappear:

A permanent fix for this is to edit the following file:

sudo vim /usr/share/polkit-1/actions/org.freedesktop.color.policy

Go to the defaults section and modify no to yes

<defaults>
    <allow_any>auth_admin</allow_any>
    <allow_inactive>yes</allow_inactive>
    <allow_active>yes</allow_active>
</defaults>

To:

Save the changes and log off and back on again and you should not see the popup again.

Ubuntu 20.10: Installing VMWare Tools using apt.

If Ubuntu 20.10 is installed in a VMware ESI Virtual Machine it is a good idea to install the VMWare tools to improve performance of the VM.

This can easily be done on Desktop and Server versions by opening the Terminal and running the following command:

Open Terminal in Ubuntu Desktop.

Click on Show Applications.

Ubuntu 20.10 - Installing Vmware Tools using apt.

Type ter in the search bar

Ubuntu 20.10 - open term

Click on the Terminal Icon that appears which will open the terminal:

Ubuntu 20.10 - Installing Vmware Tools using apt.

Install VMWare Tools:

In the terminal type the following command and press enter:

sudo apt install open-vm-tools-desktop open-vm-tools
Ubuntu 20.10 - Install VM tools

Type your user’s password and press enter.

Ubuntu 20.10 - Type password

The tools will be installed:

Ubuntu 20.10 - Installed

For more things to do with your new Ubuntu 20.10 Desktop go to my other articles HERE.

For a guide on how to install Ubuntu 20.10 desktop go HERE.

Ubuntu 20.10 Desktop: How to install.

Ubuntu 20.10 Desktop (Groovy Gorilla) was released on October 22, 2020. Here is what Canonical says about Groovy Gorilla:

“Ubuntu 20.10 establishes another milestone in Canonical’s long-term commitment to delivering a carrier-grade private cloud. The 33rd release of the most popular Linux distribution in the data centre space, Groovy Gorilla, brings various improvements that enable easier consumption of the fast networking stack across both VMs and containers, straightforward compliance with common security benchmarks and a reference telco cloud implementation.

Join the team of Canonical data centre experts to learn about new features in Ubuntu Server, MAAS, Charmed OpenStack and Charmed Kubernetes. In this webinar, we will present the key highlights of our core data centre products as well as our long-term vision towards data centre implementation.”

Click HERE to check out the Ubuntu 20.10 release video.

To install Ubuntu 20.10 Desktop, download the ISO from HERE and create boot media and boot from it.

Installing Ubuntu 20.10 Desktop:

On the first screen choose the language of the installer and the type of install that you want to perform by clicking on the Try or Install Ubuntu buttons:

Ubuntu 20.10 Desktop. How to install. - boot screen

Choose the desired keyboard layout and click Continue:

Ubuntu 20.10 - Keyboard layout

Select the Installation type and update options and click Continue.

Ubuntu 20.10 -  Installation Type

Select the disk options and click Install now.

Ubuntu 20.10 - Disk Options

Click on Continue if you want to start the installation and Go Back if you want to go back and change some of the settings.

Ubuntu 20.10 - Continue

Select where you are and click Continue.

Ubuntu 20.10 - Where are you?

Add the PC and user details and click continue.

Ubuntu 20.10 - PC and user details

the installation will now run:

Ubuntu 20.10 - Installing

Click Restart now to reboot the Installation and boot from the PC hard drive:

Ubuntu 20.10 - Reboot Now

Remove the Installation Media and press ENTER to reboot:

Ubuntu 20.10 - Press enter

The PC will now boot to the Ubuntu 20.10 Desktop login page:

Ubuntu 20.10 - Login

Login with the user created during Installation:

Ubuntu 20.10 - Type password

If you want to setup online accounts now do so in the Setup wizard other wise click Skip to move to the next wizard.

Ubuntu 20.10 - Skip

Choose your preferred option for helping to improve Ubuntu and click Next.

Ubuntu 20.10 - Next

Select Next to move to the next wizard.

Ubuntu 20.10 - Next Again

Click Done to close the Wizard.

Ubuntu 20.10 - Done

Click Install Now to installed the latest updates.

Ubuntu 20.10 - Install updates

You will now see the updater icon in the taskbar:

Ubuntu 20.10 - Click Software Updater

Click the icon to open the software updater.

Ubuntu 20.10 - Click more details

Click on Details to see all the details:

Ubuntu 20.10 - Wait

Wait for the updates to complete. Then click on Restart Now.

Ubuntu 20.10 - Reboot

The PC will now reboot and install the updates that needed a reboot. Once it it back at the login screen log in again.

Ubuntu 20.10 - Login

The PC is now ready to use.

Desktop

For more things to do with your new Ubuntu 20.10 Desktop go to my other articles HERE.