Remote Desktop Protocol flaws could be exploited to attack RDP clients Black Areas on Remote Desktop Connect to a Windows PC from Ubuntu using Remote Desktop Connection Windows VDI and RDP clients Managing Users in Microsoft Remote Desktop Establishing a Baseline for Remote Desktop Protocol Most Important Remote Desktop Features Cloudflare Access; Protecting remote desktops for teams RDP. This will add your account to the tsusers group which by default is the group with rights to RDP to this machine. Repeat this for all accounts you wish to RDP to the box with. Launch the RDP client on your Windows machine, Mac or whatever you use and Connect to the IP address from your Ubuntu VM. Establish Remote Desktop Connection With Remina Desktop Client. Use the Remmina package to connect from a different Ubuntu system (that is on the same network). The package should be installed by default. If you cannot find it on the system, install it from the terminal. 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. Enter the Ubuntu's remote desktop share IP address or hostname. Optionally, allow the Windows 10 to save your credentials. Click Yes when prompted by message: The identity of the remote computer cannot be verified. Enter the password of the remote Ubuntu user.
-->This article shows you how to do the following tasks:
- Enable graphical remote desktop sessions for a Linux VM
- How to connect to a Linux VM using RDP (Remote Desktop Protocol) or X2Go remote desktop clients
Set up graphical remote desktop solution
When a lab is created from a Linux image, SSH (Secure Shell) access is automatically configured so that the instructor can connect to the template VM from the command line using SSH. Likewise, when the template VM is published, students can also connect to their VMs using SSH.
To connect to a Linux VM using a GUI (graphical user interface), we recommend using either RDP or X2Go. Both of these options require the instructor to do some additional setup on the template VM:
RDP Setup
To use RDP, the instructor must:
- Enable remote desktop connection; this is specifically needed to open the VM's port for RDP.
- Install the RDP remote desktop server.
- Install a Linux graphical desktop environment (such as MATE, XFCE, and so on).
X2Go Setup
To use X2Go, the instructor must:
- Install the X2Go remote desktop server.
- Install a Linux graphical desktop environment (such as MATE, XFCE, and so on).
X2Go uses the same port that is already enabled for SSH. As a result, no extra configuration required to open a port on the VM for X2Go.
Note
In some cases, such as with Ubuntu LTS 18.04, X2Go provides better performance. If you use RDP and notice latency when interacting with the graphical desktop environment, consider trying X2Go since it may improve performance.
Important
Some marketplace images already have a graphical desktop environment and remote desktop server installed. For example, the Data Science Virtual Machine for Linux (Ubuntu) already has XFCE and X2Go Server installed and configured to accept client connections.
Enable remote desktop connection for RDP
This step is only needed to connect using RDP. If instead you plan to use X2Go, you can skip to the next section since X2Go uses the SSH port.
- During lab creation, the instructor has the option to Enable Remote Desktop Connection. The instructor must enable this option to open the port on the Linux VM that is needed for an RDP remote desktop session. Otherwise, if this option is left disabled, only the port for SSH is opened.
- On the Enabling Remote Desktop Connection message box, select Continue with Remote Desktop.
Install RDP or X2Go
Enable Rdp Ubuntu
After the lab is created, the instructor needs to ensure that a graphical desktop environment and remote desktop server are installed on the template VM. Instructors must first connect to the template VM using SSH to install the packages for:
- Either the RDP or X2Go remote desktop server.
- A graphical desktop environment, such as MATE, XFCE, etc.
After this is set up, the instructor can connect to the template VM using either the Microsoft Remote Desktop (RDP) client or X2Go client.
Follow the below steps to set up the template VM:
- If you see Customize template on the toolbar, select it. Then, select Continue on the Customize template dialog box. This action starts the template VM.
- After the template VM is started, you can select Connect template and then Connect via SSH on the toolbar.
- You see the following Connect to your virtual machine dialog box. Select the Copy button next to the text box to copy it to the clipboard. Save the SSH connection information. Use this connection information from an SSH terminal (like Putty) to connect to the virtual machine.
- Install either RDP or X2Go along with the graphical desktop environment of your choice. Refer to the following instructions:
Connect to the template VM via the GUI
After the template VM is set up, the instructor can connect via the GUI using either the Microsoft Remote Desktop (RDP) client or X2Go client. The client that you use depends on if RDP or X2Go is configured as the remote desktop server on the template VM.
Microsoft Remote Desktop (RDP) client
The Microsoft Remote Desktop (RDP) client is used to connect to a template VM that has RDP configured. The Remote Desktop client can be used on Windows, Chromebooks, Macs and more. Refer to the article on Remote Desktop clients for further details.
Follow the below steps based on the type of computer used to connect to the template VM:
- Windows
- Click Connect to template on your lab's toolbar and select Connect via RDP to connect to the template VM.
- Save the RDP file and use it to connect to the template VM using the Remote Desktop client.
- Typically, the Remote Desktop client is already installed and configured on Windows. As a result, all you need to do is click on the RDP file to open it and start the remote session.
- Mac
- Click Connect to template on your lab's toolbar and then select Connect via RDP to save the RDP file.
- Then, refer to the how-to article Connect to a VM using RDP on a Mac.
- Chromebook
- Click Connect to template on your lab's toolbar and then select Connect via RDP to save the RDP file.
- Then, refer to the how-to article Connect to a VM using RDP on a Chromebook.
X2Go client
The X2Go client is used to connect to a template VM that has X2Go configured. Using the template VM's SSH connection information, follow the steps in the how-to article Connect to a VM using X2Go.
Next steps
After an instructor sets up either RDP or X2Go on their template VM and publishes, students can connect to their VMs via the GUI remote desktop or SSH.
For more information, see:
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.
Microsoft Rdp For Ubuntu Download
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.
Ms Rdp For Ubuntu
Thanks,
Microsoft Remote Desktop For Ubuntu
You may also like the post below: