Ubuntu Remote Desktop Screen Sharing

How to setup a Ubuntu Remote Desktop connection. The following tutorial covers the process of remotely accessing and controlling an Ubuntu desktop screen from another Linux or Windows computer. This remote screen sharing process should also work for other Debian based operating systems with minimal changes. Ubuntu Remote Access is possible as long as the system is connected to a network or has an internet connection established. The client can remotely connect using vncviewer.

One major advantage of using Remote Desktop Screen sharing is that once the system is up and running, you do not need a monitor, keyboard or mouse connected to the host machine. The box running Ubuntu or a Debian based OS can be controlled directly from another machine that already has those hardware components in place. Another great advantage is that you can remotely access and control or administer your system from another location. Possibly outside of your local network, ie: work, school, friends house etc.

Prerequisites:

  • Ubuntu based OS (running with a network connection)
  • Windows or Linux host to be used for remote connection
  • VNC Viewer

How to Setup Remote Desktop Screen Sharing in Ubuntu

First, make sure Vino is installed to allow screen sharing and remote access.

  1. Open a terminal by pressing Ctrl + Alt + T
  2. Type the following into the terminal and press Enter.

    sudo apt install -y vino

  3. When prompted, type your password and press Enter.
  4. In order for VNC Viewer to connect from a Windows client, we will need to disable encryption. To do this, type the following command and press Enter.

    gsettings set org.gnome.Vino require-encryption false

After installing Vino and disabling encryption. Back at the desktop,

  1. Click Show Applications
  2. Then select Settings

Ubuntu Applications Settings

Once the Settings window appears,

    1. Scroll down and click Sharing
    2. Toggle the Sharing Slider to turn it On
    3. Click the Screen Sharing box to open its options

Ubuntu Sharing Screen

Finally, from the Ubuntu Screen Sharing Options window,

  1. Toggle Screen Sharing slider to On
  2. Enter a Password to restrict Remote Access
  3. Then, Toggle Network connection to On

Ubuntu Screen Sharing Options

Make note of your hostname I.E. vnc://Ubuntu.local

Click X to close the Window.

Finding your Ubuntu Local IP Address

Back at the Settings Window,

    1. Scroll to and click Network
    2. Click the little Gear Icon

Ubuntu Settings Network

You can find your Ubuntu local IP address listed next to the IPv4 Address

Find IP Address Ubuntu

Next, move to the machine you will be remotely accessing Ubuntu from. If you will be connecting from a Linux client, go to section B.

A. Setting up a Windows Client to connect with VNC Viewer

Download VNC Viewer and install the program (Free version works fine)

  1. Launch VNC Viewer 4 from Windows (search VNC Viewer).
  2. Type the IP address of your Linux system and press Enter (append :5900 for the port)

VNC Viewer

Next, in the VNC Viewer Authentication window, enter your remote access Password and click OK
VNC Viewer Authentication

If all goes well, you should be remotely connected to your Linux box. Note that you can also connect using the internet broadcasted IP address. To do this, (if your using a router) you need to ensure that port 5900 is open for the local IP of the Linux box.

B. Setting up an Ubuntu Client to connect with VNC Viewer

  1. Open a terminal Ctrl + Alt + T,
  2. Type the following, then press enter,

    sudo apt-get install remmina

  3. Once prompted, type your password, and press enter
  4. Finally, type the following, and press enter

    remmina

Now simply type the IP address of the Linux box you wish to connect to and click OK
Remmina VNC Viewer

If all goes well, you should be remotely connected to your Ubuntu Linux.

RemminaUbuntu Remote Desktop

Note that you can also connect using the internet broadcasted IP address. To do this, (if your using a router) you need to ensure that port 5900 is open for the local IP of the Linux box.

Ubuntu Remote Desktop Screen Sharing published under Using and Configuring Linux 

Disclaimer