- Ubuntu 20.04 Desktop Install
- Ubuntu 20 Enable Remote Desktop
- Remote Access To Ubuntu 20.04
- Ubuntu 20.04 Multiple Desktops
- How To Use Remote Desktop In 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.
- Use Windows Remote Desktop Client. Find the IP Address of your Ubuntu Desktop on your Local Area Network (LAN), and recall the username and password you used when creating your Ubuntu Desktop. For my home server, I recently setup a home server using UnRaid. I have a Ubuntu 20.04 virtual machine that I can access using this method.
- This post if for you, if you are looking forward to having a desktop connection in Ubuntu 20.04 LTS. Best Linux Remote Desktop Tools For Ubuntu 20.04 LTS To Share Your Desktop In 2020 1. Teamviewer is one of the popular remote desktop application. It is a cross-platform software that is freely available for personal use.
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.
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:
Xrdp is a free and open-source software implemented to connect remotely. It is implemented in Microsoft Remote Desktop Protocol system.
You can connect remotely with RDP; you can log in to the remote machine and create a real desktop session, a replica of the local machine you log into a local machine.
Installing Desktop Environment
How to Install Xrdp Server (Remote Desktop) on Ubuntu 20.04
Xrdp is a free and open-source software implemented to connect remotely. It is implemented in Microsoft Remote Desktop Protocol system.
Ubuntu 20.04 Desktop Install
You can connect remotely with RDP; you can log in to the remote machine and create a real desktop session, a replica of the local machine you log into a local machine.
Installing Desktop Environment
Ubuntu servers do not have a desktop environment installed by default.
There are two common desktop environment for Ubuntu;
Gnome,Xubuntu and Xfce. They are both a lightweight desktop environment, yet fast and reliable.
Type one of the commands below to install the desktop environment of your choice:
Ubuntu 20 Enable Remote Desktop
- Install Gnome
- sudo apt updates
- sudo apt install ubuntu-desktop
- Install Xfce:
- sudo apt update
- sudo apt install Xubuntu-desktop
Depending on your machine, downloading and installing GUI take some time.
Type the following command to install it, run:
sudo apt install xrdp
Xrdp service will automatically start once the installation is complete
Verify it by typing:
sudo systemctl status xrdp
Remote Access To Ubuntu 20.04
The output:
…
Type the following command to “add the xrdp user to the group”:
sudo adduser xrdp SSL-cert
Restart the Xrdp service for changes to take effect:
sudo systemctl restart xrdp
Congratulations!!! Xrdp has been installed on your Ubuntu server.
Configuring Firewall
The Xrdp daemon listens on port 3389. If firewall on your Ubuntu server is active, you’ll need to open the Xrdp port.
To grant access to the Xrdp server from a specific IP address, for example, 192.168.0.6/24, type the following command:
sudo ufw allow from 192.168.33.0/24 to any port 3389
If you want to grant access from anywhere (not encouraged due to security reasons), run:
sudo ufw allow 3389
For security, you can set up Xrdp to listen only to the localhost and create an SSH tunnel that secures the traffic from your local machine on port 3389 to the server on the same port.
Ubuntu 20.04 Multiple Desktops
Connecting to the Xrdp Server
Connecting to your Xrdp server, open your Xrdp client and connect to the server.
If you have a Windows machine, use the default RDP client. Type “rdp” in the search bar and click on “Remote Desktop Connection”. This opens up the RDP client, enter the remote server IP address and click “Connect”.
On the login screen,input your username and password and click “OK”.
Once logged in, the default Gnome or Xfce desktop output:
Now start interacting with the remote desktop from your local machine
If you are running macOS, you can install the Microsoft Remote Desktop application from the Mac App Store. Linux users can use an RDP client such as Vinagre or Remmina.
Conclusion
How To Use Remote Desktop In Ubuntu
Configuring a remote desktop allows you to manage your Ubuntu 20.04 server from your local machine with a graphical interface.