Ubuntu 20.04 Remote Desktop Access from Windows 10 with xRDP
ฝัง
- เผยแพร่เมื่อ 24 ก.ย. 2024
- 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 :
##
/ @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 : cloudtechlinks...
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 TH-cam 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.
Thank you! This was very helpful and straight to the point.
For those wondering: This also works on Debian 12.
Thanks for explaining about the black screen. It was always a mystery for me.
This. Worked. Perfectly! Thank you so much!!!
It works perfectly after I enabled the CPU virtualiation in my BIOS!
Hi, thanks for the video. However, when i log in with the correct credentials, the remote desktop session crashes immediately i hit the enter button. Could there be a misconfiguration on my end??
Same problem, any updates?
Any solutions??? I got the same issue
same@@RonRull
Logout from the ubuntu desktop, the problem occurs because of existing session in the local. Due to existing connection it crashes and does not connect.
Brother you are a life saver. Love from Bangladesh 🇧🇩
Great and helpful video with clear instructions. Thank you!!
Fucking bullshit, he wastes almost all of the video on waffling then neglects to mention which build of Windows and which version of Ubuntu he was using and the commands he gives don't work.
Why? Is it that windows has changed or that ubuntu has changed? No idea because this fuckwit never mentioned.
Works perfect! thanks for sharing! 💻
Figured out: If you have that connection problem make sure your user name ALL LOWER CASE !!!!! After changing it works ok!
you will be screwed hard if you allow rdp connections from all around the world to your pc
Not Everyone knows the password 😊😊
This video really helped me alot. Thanks :)
my rdp closes immediately after logging in, is there any solution...?
Me too 😢😢
At 7:09 in the video you say you only need to enable the prompt " Remote Desktop". My issue is that when i reboot the prompt is not longer enabled. The Sharing and SSH Prompts stay enabled over a reboot but Remote Desktop does not. I am running PopOS 22.04 on Synology Virtual Machine Manager so not dedicated. VNC does work when it is enabled (even after reboot if I reenable). However, I have not got RDP to work. When trying to connect to 3389 it just says connection. I am using Jump Desktop client for both VNC (5900) and RDP (3389). I have used it for many years with many connections so I believe the client is solid.
Sorry my question was for another VIDEO. I did solve part of the RDP Issue but after it connects I just get a BLACK SCREEN. Similar to VNC but with VNC I move my mouse and it comes on. Strange.
You demonstrated how to use xrdp with a Windows client and a Linux server.
How do you tell a client Linux box to connect to a server Linux box via xrdp?
Worked perfectly, thank you.
finally, you show me the right way to do it! many thanks!
You are welcome!
Getting the same error message like you at 4:38 and no I did not mistype my password. There is an issue with that I see some threads, so this video is good but not complete.
thanks for sharing. just lower background music a bit ;)
Thanks for the tip!
Nice pic of HK and Victoria Harbor
YOU ARE A LEGEND !!!
Will this work on different networks?
I want to access my office desktop from home
If anybody can please help and explain
Good explained
Hi, Thank you for the video, will this method work for I am trying to access from a different network?
Hi, thanks for your nice explanation. This has helped me solve the remote desktop problem from windows to ubuntu. However, i see it creates a unique logic session on my ubuntu. Is it possible to clone my local ubuntu login session remotely using xRDP? I am mainly looking to see if I can continue run the local programs on my ubuntu desktop, remotely as well if needed.
i not sure you can do that with xRDP, See my other video about X2GO software, where i demonstrate screen sharing, wich souds like the sort of thing you are trying to do.
Great info but please do something about the music. It's a bit unnecessarily loud at times.
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 save my day man! Thanks!
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?
I got a blue screen. no contents.
Very helpful video.
Bro you Literally saved my ass 😭😭😭
Thank you it’s working ❤
You're welcome!
i've installed xrdp on my arch laptop but when i try to connect from my windows system after submit the credentials i get the error cant create the session for user 'my_username' x server not started
i got black screen :(
same
sweat vid my guy, thanks!
Does this work without a screen plugged in? So also called hesdless
hey, I followed your steps, I am getting GUI on non-root users, but a black screen on root user. Can you tell me what could be the reason?
black screen normally means the ubuntu desktop you are connecting to has someone already logged in at the keybord. (ie they are sitting at the pc using it-they need to be logged out for u to connect remotely. appart from that , i dont know, i have not come across what u are desciibing
I tried all the step above.. But when I tried connecting from my windows, it just kick me back to rdp application
all its ok but whene i try to connect rdp windows after login/password close automaticly
any suggestion please ?
that normally happens if someone is already logged in to the pc, preventing RDP from connecting
@@cloud-tech This is exactly my problem. Any way to allow both the actual computer and the remote desktop to be logged on at the same time??? I can do this on my raspberry pi, but in ubuntu I'm having trouble.
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
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
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
it worked thank you very much
OK this freaked me out because I'm stuart too haha
Great video and advice...when I was trying to login I got the error and yes I was using a caps letter for my username
my ubuntu 18 not have gui how add gui and xrp
can try see this video :th-cam.com/video/98YuVDj6g8Q/w-d-xo.html
Bruh, THANKS, ALL MY HOPES WERE DYING !
Pleasure
This was so very helpful !!! Now question to anyone here.
Does anyone know how to put the Ubuntu Server into "Suspend" or Sleep mode if all users are logged off and the server is sitting idle for a certain time.
I've tried it all and so far it just doesn't work. And if and when it does I'll need it to have WOL (Wake on Lan) to wake it up to remote back into again. Thanks
Hi do you know how to get it to work with an AD account, rather than a local account.
I tried to do this on kali linux and when I put my username and password on windows it gives me a black screen and then crashes
same here but i'm using ubuntu and windows 11, have u found a solution?
OK i am stupid, the solution is to logout correctly not by pressing ctrl+L, you need to logout from the top right menu.
@@m-k-al- we are stupid lmao. It work for me too
how do you copy and paste from one to the other?
thank you soo much sir !!!
If your are habing trouble. log out of ubuntu first then connect from pc
Doesnt work. Even if I enter correct login I cant connect
Thank you very much :b
You're welcome!
How to enable xrdp for public IP access? I try to access from my public IP but nothing happen
because you ubuntu pc is probably behind your home router (which for safety blocks ALL connections - and i wouldn't suggest you change that) you wont be able to access it when not at home
Oh no! something has gone wrong error after the remote desktop Xorg session login even if the credential are correct.
What can we do if Ubuntu is slow? I think it’s server connection can it be fixed ?
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 : cloudtechlinks.com/How-to-Speedup-Ubuntu
all I see is a terminal window. not a Ubuntu desktop
This doesn't work for me. I have tried several times, but xrdp won't connect to the Ubuntu machine
xrdp is hes username or pc name
I am profi in Ubuntu and Windows but in my case I can't connect to Ubuntu. I switched firewall off, tried IP:3389, with user name and without. No connection. Both computers in 192.168.2.x
I got message to reconnect, contact owner or network administrator.
Ping ok in both cases.
No solution found so far in Internet. I got furious. :/
Do you need a dummy plug for the Linux pc?
Not sure what you mean. Could you elaborate ?
@@cloud-tech To remote into your system I know a lot of people recommend adding a HDMl/DP dummy plug. Do you still need to do that for this to work.
is that even safe ?
Is xrdp not available in 22.xx ?
xrdp is hes username
After I put my correct password and admin remote desktop just closes. Any help?
i had the same problem...
You can't login from the local system with the same user account which is already log on the remote system.
So logout first and then login via RDP :)
@@rubi84 thanks you are an absolute legend. I was able to rdp into my linux pc after i logged out of my account on my linux pc
or you can use Linux subsystem from windows 10
Hello! I followed the passages and I had no problems until minute 4.03. Then it says "Impossible to connect due to the following causes: 1) remote access was not enabled 2) remote pc is turn off 3) remote pc is not connected to network". But the computer is in remote, turn on and connected to network, so I dont understand... Could you please suggest me something?
dont know. i can only think of you are using the right IP address for the ubuntu machine
1000 Likes
waste of time for versions above 20.04
в реммине за 4 года все еще буфер обмена - уета !!!!
только текст копирует, но не файлы!
Rodriguez William Jones Sarah Davis Linda
🥹🥹🥹🥹👍👍👍
Linux is so painfull for no fucking reason I hate it
hello
i have a problem how can i contact you pls
i am getting black screen