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….
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..
Next, type in your Ubuntu machine account username and password and connect using Xorg session…
When your accout username and password are confirmed, you should be logon to your Ubuntu machine from Windows… as shown in the image below
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….
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….
You may also like the post below: