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.

ความคิดเห็น • 107

  • @RayLuvsCats64
    @RayLuvsCats64 2 หลายเดือนก่อน +1

    Thank you! This was very helpful and straight to the point.
    For those wondering: This also works on Debian 12.

  • @resoluteforce
    @resoluteforce ปีที่แล้ว +4

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

  • @grenadiadrian
    @grenadiadrian ปีที่แล้ว +1

    This. Worked. Perfectly! Thank you so much!!!

  • @nick-ii1md
    @nick-ii1md 7 หลายเดือนก่อน

    It works perfectly after I enabled the CPU virtualiation in my BIOS!

  • @alenjiru
    @alenjiru ปีที่แล้ว +5

    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??

    • @sultanalsharif4673
      @sultanalsharif4673 ปีที่แล้ว +1

      Same problem, any updates?

    • @RonRull
      @RonRull ปีที่แล้ว +1

      Any solutions??? I got the same issue

    • @---qt8bc
      @---qt8bc ปีที่แล้ว

      same@@RonRull

    • @programmerBoi
      @programmerBoi 28 วันที่ผ่านมา

      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.

  • @jsbadhon
    @jsbadhon 2 ปีที่แล้ว

    Brother you are a life saver. Love from Bangladesh 🇧🇩

  • @sitotaw9570
    @sitotaw9570 2 ปีที่แล้ว +2

    Great and helpful video with clear instructions. Thank you!!

    • @theParticleGod
      @theParticleGod 3 หลายเดือนก่อน

      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.

  • @salo6761
    @salo6761 ปีที่แล้ว +1

    Works perfect! thanks for sharing! 💻

  • @belaerdos1311
    @belaerdos1311 2 ปีที่แล้ว +3

    Figured out: If you have that connection problem make sure your user name ALL LOWER CASE !!!!! After changing it works ok!

  • @thetransferaccount4586
    @thetransferaccount4586 ปีที่แล้ว +13

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

    • @JamalAhmad-rf6jh
      @JamalAhmad-rf6jh 9 หลายเดือนก่อน +3

      Not Everyone knows the password 😊😊

  • @rushi.modhave
    @rushi.modhave ปีที่แล้ว +1

    This video really helped me alot. Thanks :)

  • @mmus98
    @mmus98 ปีที่แล้ว +4

    my rdp closes immediately after logging in, is there any solution...?

    • @giri-w5l
      @giri-w5l 28 วันที่ผ่านมา

      Me too 😢😢

  • @d21mike
    @d21mike 2 ปีที่แล้ว +1

    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.

    • @d21mike
      @d21mike 2 ปีที่แล้ว

      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.

  • @NoEgg4u
    @NoEgg4u 2 ปีที่แล้ว +1

    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?

  • @creativeanimals9841
    @creativeanimals9841 ปีที่แล้ว +1

    Worked perfectly, thank you.

  • @richmondleo8267
    @richmondleo8267 3 ปีที่แล้ว

    finally, you show me the right way to do it! many thanks!

    • @cloud-tech
      @cloud-tech  3 ปีที่แล้ว

      You are welcome!

  • @belaerdos1311
    @belaerdos1311 2 ปีที่แล้ว +2

    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.

  • @junrepasa
    @junrepasa ปีที่แล้ว +1

    thanks for sharing. just lower background music a bit ;)

    • @cloud-tech
      @cloud-tech  ปีที่แล้ว

      Thanks for the tip!

  • @BIZKIT551
    @BIZKIT551 10 หลายเดือนก่อน

    Nice pic of HK and Victoria Harbor

  • @AbdoZaInsert
    @AbdoZaInsert 9 หลายเดือนก่อน

    YOU ARE A LEGEND !!!

  • @piedpiper3314
    @piedpiper3314 ปีที่แล้ว +1

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

  • @anilmalushte2600
    @anilmalushte2600 9 หลายเดือนก่อน

    Good explained

  • @AI_4214
    @AI_4214 3 หลายเดือนก่อน

    Hi, Thank you for the video, will this method work for I am trying to access from a different network?

  • @SusarlaPraneethkumar
    @SusarlaPraneethkumar 2 ปีที่แล้ว +3

    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.

    • @cloud-tech
      @cloud-tech  2 ปีที่แล้ว +1

      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.

  • @robertdennis9235
    @robertdennis9235 ปีที่แล้ว

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

  • @zoranperic7535
    @zoranperic7535 ปีที่แล้ว +1

    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.

  • @marcofurio3628
    @marcofurio3628 ปีที่แล้ว

    you save my day man! Thanks!

  • @joshuaolusogopopoola6326
    @joshuaolusogopopoola6326 ปีที่แล้ว +1

    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?

    • @lxw5231
      @lxw5231 ปีที่แล้ว

      I got a blue screen. no contents.

  • @iptvsam
    @iptvsam ปีที่แล้ว

    Very helpful video.

  • @sonuswaroopraj1762
    @sonuswaroopraj1762 ปีที่แล้ว +1

    Bro you Literally saved my ass 😭😭😭

  • @sarujanview
    @sarujanview ปีที่แล้ว

    Thank you it’s working ❤

  • @shahrooz7213
    @shahrooz7213 5 หลายเดือนก่อน

    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

  • @jsh4.04
    @jsh4.04 ปีที่แล้ว +2

    i got black screen :(

  • @kon5791
    @kon5791 ปีที่แล้ว

    sweat vid my guy, thanks!

  • @Cinnamon_Shaey
    @Cinnamon_Shaey 5 หลายเดือนก่อน

    Does this work without a screen plugged in? So also called hesdless

  • @apreceptorswanhindi
    @apreceptorswanhindi 2 ปีที่แล้ว +1

    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?

    • @cloud-tech
      @cloud-tech  2 ปีที่แล้ว +1

      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

  • @PaeZone
    @PaeZone 11 หลายเดือนก่อน

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

  • @anareda1630
    @anareda1630 ปีที่แล้ว +1

    all its ok but whene i try to connect rdp windows after login/password close automaticly
    any suggestion please ?

    • @cloud-tech
      @cloud-tech  ปีที่แล้ว

      that normally happens if someone is already logged in to the pc, preventing RDP from connecting

    • @notation254
      @notation254 ปีที่แล้ว

      @@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.

  • @siddharthaudayakumar9444
    @siddharthaudayakumar9444 11 หลายเดือนก่อน

    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

  • @YoungmyseIf
    @YoungmyseIf 11 หลายเดือนก่อน

    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

  • @PetrDušek-y5c
    @PetrDušek-y5c ปีที่แล้ว

    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

  • @mssafy2592
    @mssafy2592 ปีที่แล้ว

    it worked thank you very much

  • @StuartAtkinson4467
    @StuartAtkinson4467 8 หลายเดือนก่อน

    OK this freaked me out because I'm stuart too haha

  • @damiexxi3163
    @damiexxi3163 ปีที่แล้ว

    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

  • @captaincomando8107
    @captaincomando8107 2 ปีที่แล้ว +1

    my ubuntu 18 not have gui how add gui and xrp

    • @aminfirdaus3279
      @aminfirdaus3279 2 ปีที่แล้ว

      can try see this video :th-cam.com/video/98YuVDj6g8Q/w-d-xo.html

  • @leonardothememegamer4994
    @leonardothememegamer4994 3 ปีที่แล้ว

    Bruh, THANKS, ALL MY HOPES WERE DYING !

  • @PCman50
    @PCman50 2 ปีที่แล้ว +1

    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

  • @alexwells2231
    @alexwells2231 2 ปีที่แล้ว

    Hi do you know how to get it to work with an AD account, rather than a local account.

  • @carolinabras2541
    @carolinabras2541 2 ปีที่แล้ว +1

    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

    • @m-k-al-
      @m-k-al- 2 ปีที่แล้ว

      same here but i'm using ubuntu and windows 11, have u found a solution?

    • @m-k-al-
      @m-k-al- 2 ปีที่แล้ว +1

      OK i am stupid, the solution is to logout correctly not by pressing ctrl+L, you need to logout from the top right menu.

    • @carolinabras2541
      @carolinabras2541 2 ปีที่แล้ว

      @@m-k-al- we are stupid lmao. It work for me too

  • @fantafrags6973
    @fantafrags6973 ปีที่แล้ว

    how do you copy and paste from one to the other?

  • @mysticshrek2193
    @mysticshrek2193 2 ปีที่แล้ว

    thank you soo much sir !!!

  • @die-a-tone
    @die-a-tone 2 หลายเดือนก่อน

    If your are habing trouble. log out of ubuntu first then connect from pc

  • @daskampffredchen
    @daskampffredchen หลายเดือนก่อน

    Doesnt work. Even if I enter correct login I cant connect

  • @derugerioowen711
    @derugerioowen711 3 ปีที่แล้ว

    Thank you very much :b

  • @trimariyanto92
    @trimariyanto92 2 ปีที่แล้ว

    How to enable xrdp for public IP access? I try to access from my public IP but nothing happen

    • @cloud-tech
      @cloud-tech  2 ปีที่แล้ว

      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

  • @vimalpatel31
    @vimalpatel31 10 หลายเดือนก่อน

    Oh no! something has gone wrong error after the remote desktop Xorg session login even if the credential are correct.

  • @Shredder656
    @Shredder656 ปีที่แล้ว

    What can we do if Ubuntu is slow? I think it’s server connection can it be fixed ?

    • @cloud-tech
      @cloud-tech  ปีที่แล้ว

      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

  • @fbilgrami
    @fbilgrami ปีที่แล้ว +1

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

  • @macster1457
    @macster1457 2 ปีที่แล้ว

    This doesn't work for me. I have tried several times, but xrdp won't connect to the Ubuntu machine

  • @DonPedro6901
    @DonPedro6901 2 ปีที่แล้ว

    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. :/

  • @simpson156
    @simpson156 3 ปีที่แล้ว

    Do you need a dummy plug for the Linux pc?

    • @cloud-tech
      @cloud-tech  3 ปีที่แล้ว

      Not sure what you mean. Could you elaborate ?

    • @simpson156
      @simpson156 3 ปีที่แล้ว

      @@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.

  • @Abdellah000
    @Abdellah000 8 หลายเดือนก่อน

    is that even safe ?

  • @bradrose90
    @bradrose90 ปีที่แล้ว

    Is xrdp not available in 22.xx ?

  • @mad7505
    @mad7505 2 ปีที่แล้ว

    After I put my correct password and admin remote desktop just closes. Any help?

    • @rubi84
      @rubi84 2 ปีที่แล้ว

      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 :)

    • @jac1793
      @jac1793 ปีที่แล้ว

      @@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

  • @lnk77
    @lnk77 ปีที่แล้ว

    or you can use Linux subsystem from windows 10

  • @mariamastropietro6235
    @mariamastropietro6235 3 ปีที่แล้ว

    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?

    • @cloud-tech
      @cloud-tech  3 ปีที่แล้ว

      dont know. i can only think of you are using the right IP address for the ubuntu machine

  • @ItzJoplay
    @ItzJoplay หลายเดือนก่อน

    1000 Likes

  • @sadoki
    @sadoki ปีที่แล้ว

    waste of time for versions above 20.04

  • @gornostai4ik_lol
    @gornostai4ik_lol 4 หลายเดือนก่อน

    в реммине за 4 года все еще буфер обмена - уета !!!!
    только текст копирует, но не файлы!

  • @HarrimanLennon-o1c
    @HarrimanLennon-o1c 19 วันที่ผ่านมา

    Rodriguez William Jones Sarah Davis Linda

  • @RINEGANALQUIMISTA
    @RINEGANALQUIMISTA ปีที่แล้ว

    🥹🥹🥹🥹👍👍👍

  • @WDKS1997
    @WDKS1997 2 หลายเดือนก่อน

    Linux is so painfull for no fucking reason I hate it

  • @wh8yte-mo6gc
    @wh8yte-mo6gc 6 หลายเดือนก่อน

    hello
    i have a problem how can i contact you pls

  • @prasantakumarbiswas3185
    @prasantakumarbiswas3185 3 หลายเดือนก่อน

    i am getting black screen