Microsoft Remote Desktop Ubuntu 18.04



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. Remote Desktop Accesss Ubuntu 18.04 from windows 10.

  1. Ubuntu Remote Desktop Not Working
  2. Microsoft Remote Desktop Client Ubuntu 18.04
  3. Microsoft Remote Desktop Ubuntu 18.044

I think I am asking a old question for a newer version of Ubuntu 18.04 LTS. I have done my research for past 2 weeks and I didn't find a single blog or guide in SoF or any other source with a working solution to use Windows RDP to access an Ubuntu session. I have minutely followed this answer: Can I access Ubuntu from Windows remotely? While RDP is a great option for remote connecting to your Ubuntu PC, it's unreliable on Ubuntu 18.04 LTS. There appears to be an issue establishing a remote connection while already logged into the same account on Ubuntu.

This brief tutorial shows students and new users how to connect to Ubuntu 20.04 | 18.04 via Remote Desktop Protocol (RDP).

In some cases, you may want to connect to Ubuntu desktop via remote desktop using existing protocols. At this moment, it’s pretty easy. Simply install few packages and you’re ready to go.

Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote computers.

It provides a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft’s own terminal server / remote desktop clients.

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

Step 1: Install Xrdp

Since you already have a desktop environment with Ubuntu Desktop edition, simply run the commands below to Xrdp.

To validate that Xrdp is installed, run the commands below:

That should display similar text as below:

Step 2: Connect from Windows 10

Now that Xrdp server is installed, go and open Windows Remote Desktop Connection app and connect to the desktop hostname or IP address.

Please make to logout of your current Ubuntu desktop sessions. You can’t be logged in to Ubuntu while connecting via Xrdp.

When you have logged out of Ubuntu desktop sessions, click Connect to initiate RDP connection. You’ll be prompted for your Ubuntu login details.

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

When your account username and password are confirmed, you should be logon to your Ubuntu machine from Windows.

That’s it!

Connecting to Ubuntu desktop is easy, since it already has a desktop environment.

Connecting to Ubuntu Servers

Since servers generally don’t have graphical interface, you will need to install a minimal graphical interface for this to work in a server environment.

Run the commands below to install some necessary packages.

Next, xrdp user to the sss-cert group by running the commands below:

That should get Xrdp installed and ready for connection on Ubuntu servers.

Since most Ubuntu servers don’t have firewall enabled out of the box, no need to worry about firewall blocking connections.

However, if you have Ubuntu firewall enabled, simply run the commands below to allow RDP traffic.

For example, if you’re connecting 192.168.1.0/24 network, then run the commands below:

That’s it!

Conclusion:

This post showed you how to connect via Remote Desktop Protocol (RDP) to Ubuntu 20.04 | 18.04 Desktop and Servers.

If you find any error above, please use the comment form below to report it.

Thanks,

You may also like the post below:

Hello World,

In the previous post, we have performed a simple/standard installation of xRDP using the Ubuntu repository package through our Std-install-xrdp script (version 0.2). The script streamline the installation and configuration of xrdp on top of Ubuntu 18.04 (at least for the user running the script !!!). If you perform a manual installation of xRDP (out-of-the-box), the first time you connect remotely, Dock, top bar will not be enabled and the theme is not set to the default Ambiance theme as it should when login locally on the Ubuntu machine. So, without the script, you will then need to perform some manual actions to have a similar look’ n feel in your remote session.

The Std-install-xrdp script (version 0.2) can perform some of the additional configuration actions needed to mimic the local desktop into the Remote session. However, there is a small limitation (which will be adjusted in the Std-Install-xrdp-v0.3.sh script). These additional configuration settings only affect the user that run the script. So, if you have a system where multiple users connect via remote desktop, they will see a gnome desktop with no Dock and no Top bar menu. Moreover, the theme will not be set to the default one used by Ubuntu.

So, in this post, it’s time to fix this situation. This post will explain what’s the issue we want to tackle and we will explain how to manually solve them. This information will be integrate in the Std-Install-xrdp-v0.3.sh script that will be released shorter after this post…..

So, let’s go…..

Assumptions

For this post, we have make some assumptions.

  • The Ubuntu 18.04final release will be used
  • At time of writing, all available updates were installed on the Ubuntu machine
  • No alternative Desktop will be used. Default Gnome desktop will be the default desktop accessible via the xrdp session
  • The default Ubuntu Theme is used (i.e. Ambiance and Humanity Icons) for everybody connecting to the machine
  • We are using the standard xrdp package available within the Ubuntu repository for Ubuntu 18.04
  • Ubuntu machine has been installed as virtual machine using Virtualbox software and Hyper-V
Ubuntu

Look’n Feel Issues in Remote sessions

Dock and Top bar missing in Remote Session

Performing a standard installation of xRDP (not using our script), the remote software will be installed and users will be able to connect remotely to the system. However, the first time the connection is performed, the desktop interface will look like the following on the screenshot below

Click on picture for better resolution

The dock bar and the app Indicator menu extensions are not enabled within the remote session. To manually fix this issue (for each user), you will need to install the gnome tweaks tool and enable the different extensions and settings you want to use.

Click on picture for better resolution

Using the Std-Install-xRDP script (version 0.2), these settings can be configured automatically but only for the user that has run the script. If another user perform a remote connection, the standard Ubuntu Gnome Desktop (no Ubuntu Dock, no App Indicator, no Ambiance theme) will be presented in the remote session….So, Install script needs improvements….

No Default Ubuntu Theme or nor icons in Remote Session

The other recurrent issue/annoyance when performing a remote connection is the fact that the look’n feel is not the one that’s configured by default on the local session. The Dock will be there and the wallpaper is still there. However, looking a little bit closer, you can see some small differences…

Click on picture for better resolution

The Std-Install-xRDP script has tackled the Dock and App Indicator bar but does not contain the logic to set the proper Ubuntu theme by default. So, the first time any users connect, they will notice a different look’n feel compared to the one available by default on Ubuntu 18.04 LTS. The first time you connect through remote desktop, you will notice that the icons in the Dash are not similar (I would say ugly) to the one you would see when locally connected to Ubuntu

Click on picture for better resolution

When opening Nautilus in a remote session, you can see immediately the difference. The icon set are all the same (white icons) and the decoration of windows is gray not brown like in the standard Ubuntu theme.

Click on picture for better resolution

Ubuntu Remote Desktop Not Working

Finally, if you open Terminal, you will see also a non standard white background. The standard color should be purple

Click on picture for better resolution

To fix this theming issues, it’s really easy. You will be using the Gnome Tweak utility and set the proper theme and icon Set to be used…. In the screenshot below, you can see that the theme is set to adwaita.

Click on picture for better resolution

From the dropdown box list, select the theme that you want to use. We want to have the same look n feel in remote connection and local connection so we have selected the Ambiance Theme

Click on picture for better resolution

As soon as the option is selected, you should see the new theme applying. However, the icons in the Dock has not changed yet.

Click on picture for better resolution

To change the icons, you have to select also the correct icons set. In the gnome Tweak tool, we have selected the option Humanity or Humanity-dark.

Microsoft Remote Desktop Client Ubuntu 18.04

Click on picture for better resolution

Again, as soon as we changed the settings, the icons set in the Dock changes…

Click on picture for better resolution

You (or the users) will need to perform these changes for each users in their remote session to get the same look’n feel between local sessions and remote sessions.

Fixing Look’n Feel issues for all the users…..

Microsoft Remote Desktop Ubuntu 18.044

To fix these issues once for all and ensuring that your default settings would apply to all your users, the solution is actually quite simple. The trick to have a similar Look n’ Feel between local sessions and remote session is to add the necessary commands into the /etc/xrdp/startwm.sh file. However, note that there is some limitations with this approach. If you modify the startwm.sh file, this means that the same theme will be applied to all users performing a remote connection. If the user change the theme inside its remote session, these changes will be reverted back to the default you will have set inside the startwm.sh file

So, the startwm.sh file should contains the following commands (at the top of the file). These commands will be executed every time a user remotely connect to the machine….

Updating the Std-Install-Xrdp Script (Work in Progress…)

In a near future, our famous Std-Install-xRDP script will be updated in order to take into account this minor look and feel issues. These issues might be minor but fixing them will provide a better experience to the user which will make them adopt and use the solution more easily. The script might (maybe or maybe not) might provide a more flexible solution for fixing the theme issue and might be able to take into account users preferences…. We will see if we have enough time to work on this…..

That’s it for this post !

As you can see, we have recently taken actions to tackle the most common issues and annoyances that can occur when using xRDP. In a previous post, we have see how to fix (correctly) the issue related to the annoying popup asking permissions to create managed devices. In another one, we have tried to fix the crash popup when login into the machine…With this post, we have tackled the look’n feel issues as well.

There is still a small look n feel issue that we would like to tackle..

Click on picture for better resolution

The different lock screens in remote sessions and local sessions.. If we have enough time, we will try to tackle this issue as well but might be a little bit more complicated than changing themes and enabling extensions….

Stay tuned…

Till next time

See ya