Connect from Windows 10 to Ubuntu 18.10 / 18.04 | 16.04 via XRDP Remote Desktop Protocol (RDP)

I recently installed Ubuntu 18.10 [BETA] desktop on one of my test servers… To test my apps, I wanted to connect to the Ubuntu machine via Microsoft Remote Desktop Connection (RDP)….

If you want to learn how to make that work, the steps below should be a great place to start… Students and new users should fine the steps below helpful…..

In most Linux environments, VNC server and other opensource remote connection tools are the only options available to users… You don’t see tools supporting Microsoft Remote Desktop Connction (RDP) protocols to connect to Linux desktop… The only tool that gets this done is XRDP….

XRDP is an open source remote desktop protocol server which uses RDP to present a GUI to desktop clients… It provides a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft’s own terminal server / remote desktop clients.

This brief tutorial is going to show students and new users how to using Windows own remote desktop connection protocol to connect to Ubuntu 18.10 / 18.04 and 16.04 desktops

When you’re ready, follow the steps below to get it working…

Step 1: Install XRDP Server

To get Ubuntu desktops to accept RDP connections, you must first install and enable XRDP remote desktop tool… to do that, run the commands below

sudo apt install xrdp
sudo systemctl enable xrdp

After running the commands below reboot the desktop…..

Step 2: Connect from Windows 10

Now that Xrdp server is installed,  go and open Windows Remote Desktop Connection app and connect to the server IP or hostname… Make sure you’re not already logged into the desktop…

XRPD will not connect if you’re already logon to the desktop with the account you wish to connect…. The solutions I have tested is to restart the Ubuntu desktop and not to logon….

Xrdp ubuntu desktop

Then click Connect to initiate the connection to XRDP server…. you should be warned about Windows not trusting the computer you’re conneting to… Accept and continue to connect anyway..

xrdp ubuntu install

Next, type in your Ubuntu machine account username and password and connect using Xorg session

xrdp ubuntu setup

When your accout username and password are confirmed, you should be logon to your Ubuntu machine from Windows… as shown in the image below

xrdp ubuntu install

That’s it!

You are now connected to your Ubuntu desktop from Windows using Microsoft own remote desktop connection protocol (RDP)… The graphic isn’t great, but good enough to get your work done….

Troubleshooting:

If you attempt to logon to the Ubuntu machine and the connection is ending abruptly without connecgting, follow the steps below to resolve…

  • Make sure you’re not already logged on to the Ubuntu desktop… best thing is to restart and don’t logon…
  • If you try Xorg session and it quickly disconnect… the next time, select X11rdp from the drop-down list.. it will hang and not fully connect..… that’s OK…
  • Close the X11rdp session by canceling the RDP windows… then reboot the Ubuntu desktop again… After rebooting, try the Xorg session again… this time is should connect….
  • You’ll be prompted to authenticate three times after loggon on….

That’s it!

You may also like the post below:

Installing VirtualBox Guest Additions on Ubuntu 18.10 / 18.04 / 16.04 LTS

9 Replies to “Connect from Windows 10 to Ubuntu 18.10 / 18.04 | 16.04 via XRDP Remote Desktop Protocol (RDP)

  1. Hello, I have tried this and get a window within my windows 10 computer stating connect is ok, then i get kicked out w/out accessing the linux computer. I am not logged into the linux so not sure why i am not able to open a remote connect within my network? Thanks in advance

  2. I have done this over and over. I installed a new instance of Ubuntu 18.04 Desktop on my laptop. I have a new Windows 10 machine with all of the updates. What happens, is that after getting an RDP session started, I get booted out, and the session ends. The session still runs on the Ubuntu machine and when I reconnect, it will resume. I have looked at my Administrative settings in Windows, looked at my settings in Ubuntu and the problem persists. My intent is to use the Ubuntu with a log on for each of my browsing types, and then setup a VPN for the Ubuntu laptop. By different browsing types, News, banking, social media, etc. for now both computers are sitting next to each other and connected via CAT 6 Rj45 network cables. Can you please provide assistance?

  3. Thanks, this worked straight away.
    What are the other session types? Is there any one of those that might enhance the session speed – as it seems a bit slow?

    Cheers.

  4. Thanks, but the session just hangs…no matter what. org…rdp one after the other…whuteves…just hangs. Something ain’t right.

    1. I have been having the same problem as this.
      Now re-installed ubuntu for the third time, still no success with RDP.

  5. I tried the above method. I kind of got logged into the ubuntu machine. But setting up the remote desktop, a log window opens up and ends with the following error message:
    sending login info to session manager, please wait …
    xrdp_mm_process_login_response: login failed

  6. Thanks to you and its working.
    However, as normal desktop, I get the left icon on the home page, here nothing is shown until I press activities. If you can help, it would be so great.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.