ObjectiveThe following tutorial will explain how to setup client/server remote desktop sharing on Ubuntu 18.04 Bionic Beaver.
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand is required.
- # - requires given command to be executed with root privileges either directly as a root user or by use of
- $ - given command to be executed as a regular non-privileged user
Enable Remote Desktop SharingTo begin, we first need to enable remote desktop sharing on the target Ubuntu system:
Open up terminal and enter:
In case you have the UFW firewall enabled, open the port
$ ss -lnt State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 5 127.0.0.1:631 0.0.0.0:* LISTEN 0 128 127.0.0.1:6010 0.0.0.0:* LISTEN 0 128 0.0.0.0:38299 0.0.0.0:* LISTEN 0 5 0.0.0.0:5900 0.0.0.0:* LISTEN 0 128 [::]:22 [::]:* LISTEN 0 5 [::1]:631 [::]:* LISTEN 0 128 [::1]:6010 [::]:* LISTEN 0 128 [::]:39717 [::]:* LISTEN 0 5 [::]:5900 [::]:*
5900for incoming connections:
$ sudo ufw allow from any to any port 5900 proto tcp Rule added Rule added (v6)If you wish to make your firewall rules more strict visit our How to Open/Allow incoming firewall port guide for more information.
Establish Remote Desktop ConnectionAt this stage we are ready to turn our attention to a client system from which we will be establishing connection to a remote Ubuntu desktop. The remote desktop client we are going to use to create a remote desktop connection is Remmina.
Remmina remote desktop client should already be installed on your Ubuntu 18.04 system. In case you need to install it execute:
$ sudo apt install remminaUse the
activitiesmenu to search and start the Remmina remote desktop client or run the command: