Linux serverlinux web serverNETWORK ADMINISTRATIONS

Ubuntu 20.04 Remote Desktop Access from Windows 10 with xRDP

This tutorial will show you step-by-step and demonstrate how to install and then use the xRDP Remote Desktop software on Ubuntu 20.04 (but any flavour of Linux will be similar) so I can connect to it and use it from my main Windows 10 PC.

=========================================================================
## Following the success of this channel, i have created a New Channel called “Virt Tech”
## that specialises in the related field of Virtualization Technology Videos,
## specifically Virtualbox initially. It can be found here :
##
## https://www.youtube.com/@virt-tech
##
## Please try it out if the topic interests you.
=========================================================================

Terminal Commands:
———————————–

# Update the list of packages in the reposity index
# ————————————————-
sudo apt update

# Install the main xrdp package.
# It will bring in all its dependencies
# ————————————-
sudo apt install xrdp

# Although xrdp is already started,
# make sure its restarted if the machine reboots
# ——————————————-
sudo systemctl enable xrdp

# Open up the RDP port 3389 in the firewall
# —————————————–
sudo ufw allow from any to any port 3389 proto tcp

# show the IP Address of the machine
# ———————————
ip address

PLEASE NOTE : Since making this video, there are a couple of settings that I have found that speed up the responsiveness of this Videos Ubuntu VPS noticeably. The Video explaining what they are is only abound 4 minutes long, and can be found here : https://cloudtechlinks.com/How-to-Speedup-Ubuntu

Video Transcript:
================

Video : 0 – Final – Combined – The Result
——————————————
Before I show you how to easily install XRDP and use it, I thought I’d first show you the result.
So, on screen you can see my main windows 10 PC, and the insert on the right-hand side is the screen from my ubuntu linux PC, which I have had to move into the garage.
[break time=’500ms’/]
However, I still want to use it, even though its difficult to get to. So, I installed XRDP on it.
[break time=’1s’/]
Now anytime I want to use it, I just start the remote desktop connection software that comes on all windows PCs, if your main PC is linux you can use tools like reminna to do the same thing.
[break time=’2s’/]
Type in its IP address, which I’ll show you how to get, and press connect.
[break time=’2s’/]
At the XRDP login screen, I simply use my linux username and password to login.
[break time=’2s’/]
The result is that I can work on either my windows PC, or my ubuntu PC.
[break time=’1s’/]
So, after the following introduction, I’ll show you how it was installed using only 4 short commands., all of which you will find in the YouTube comments section.

Video : 2 – Final – Installing xRDP on Ubuntu 20.04
—————————————————-
On screen you can see my ubuntu PC, on which I have displayed the 4 installation commands, and a show me its Ip address, information command. I copy each into a terminal window.
[break time=’2s’/]
The last command shows the IP addresses assigned to this machine, which are identified by the prefix INET. Just ignore the IP address 127.0.0.1 as that is just the machines loopback address, not its proper IP address.
[break time=’2s’/]
When finished just reboot the linux machine so we can guarantee a clean start.

Video : 3 – Final – Combined – RDP Usage
—————————————–
To demonstrate how XRDP is used, on screen you can now see both my windows PC and the linux PC.
[break time=’2s’/]
If I stay logged on to my linux pc, you will notice that when I connect to it and logon, from my main windows pc, I am faced with just a black screen, as the username is already in use on the linux PC.
[break time=’2s’/]
If I logoff, on the linux machine and try to connect again I should succeed.
[break time=’2s’/]
However, it shows me this error, please take a note of it as I expect at some point you will get it too. What it simply means is the username and password entered was not recognised. What has probably happened, like happened to me is a simple misspell or I’ve left caps lock on.
[break time=’2s’/]
Anyway, when I retype the username and password more carefully it works.
[break time=’2s’/]
Having, for example, started a web browser, I don’t logoff in ubuntu, but instead simply close the windows remote connection window.
[break time=’2s’/]
now, when I logon later, I can carry on from where I left off, just make sure that any setting to lock the pc or blank the screen is switched off.
When finished, I do logoff in linux.

source

by Cloud Tech

linux web server

20 thoughts on “Ubuntu 20.04 Remote Desktop Access from Windows 10 with xRDP

  • I tried all the step above.. But when I tried connecting from my windows, it just kick me back to rdp application

  • thanks so much, does anyone using the RDP connection doesn't see your toolbar? mine is a clear screen, which is not bad but i wish i could see my menu bar

  • its not working i have my video out through my GPU card is that a problem I'm not able to see my screen connection are made

  • Will this work on different networks?
    I want to access my office desktop from home
    If anybody can please help and explain

  • it works but doesn't fully…it shows me the wrong login credentials error even though they are exactly the same (I even tried the ones for remote control that I've setup before) and still doesn't work

  • Hi thanks for the steps, it was really very useful. However, i got a black screen when I RDC into my Ubuntu server 20.04, can you be of help?

  • Thanks for explaining about the black screen. It was always a mystery for me.

  • This does not work, i always get black screen. You were able to log out because you had physical acess to the ubuntu machine, which I do not have.

  • you will be screwed hard if you allow rdp connections from all around the world to your pc

  • Is xrdp not available in 22.xx ?

  • all I see is a terminal window. not a Ubuntu desktop

  • Great info but please do something about the music. It's a bit unnecessarily loud at times.

Comments are closed.