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.
- 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.
- Open a terminal by pressing Ctrl + Alt + T
- Type the following into the terminal and press Enter.
sudo apt install -y vino
- When prompted, type your password and press Enter.
- 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,
- Click Show Applications
- Then select Settings
Once the Settings window appears,
- Scroll down and click Sharing
- Toggle the Sharing Slider to turn it On
- Click the Screen Sharing box to open its options
Finally, from the Ubuntu Screen Sharing Options window,
- Toggle Screen Sharing slider to On
- Enter a Password to restrict Remote Access
- Then, Toggle Network connection to On
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,
- Scroll to and click Network
- Click the little Gear Icon
You can find your Ubuntu local IP address listed next to the IPv4 Address
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)
- Launch VNC Viewer 4 from Windows (search VNC Viewer).
- Type the IP address of your Linux system and press Enter (append :5900 for the port)
Next, in the VNC Viewer Authentication window, enter your remote access Password and click OK
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
- Open a terminal Ctrl + Alt + T,
- Type the following, then press enter,
sudo apt-get install remmina
- Once prompted, type your password, and press enter
- Finally, type the following, and press enter
Now simply type the IP address of the Linux box you wish to connect to and click OK
If all goes well, you should be remotely connected to your Ubuntu Linux.
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