Setup noVNC on Ubuntu 20.04/Gnome 3.36

Setup noVNC on Ubuntu 20.04/Gnome 3.36

VNC (Virtual Network Computing) enables you to control your Linux installation from another computer on the same network, by viewing and interacting with the desktop from the other computer. To learn more about VNC, click here 

noVNC allows you to remotely access a machine by simply visiting a web page. This guide will detail how to configure noVNC on Ubuntu.

Setup VNC - vino/gnome-remote-desktop

Vino and gnome-remote-desktop is installed by default on the full installation Ubuntu 20.04, check if it is installed on your version if not install before proceeding.

Enable VNC

  1. Open the Activities overview and start typing Sharing.

  2. Click on Sharing to open the panel.

  3. If the Sharing switch in the top-right of the window is set to off, click to switch it on.

  4. Click Screen Sharing

  5. Set the Screen Sharing switch to on.

  6. Set the Allow connections to control the screen switch to on.

Enable the VNC server to start each time you log in

cd /usr/lib/systemd/user/graphical-session.target.wants
sudo ln -s ../vino-server.service ./.

Configure the VNC server

gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false

Set a password to access the VNC server

# Replace mbuzz123 with your desired password
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n 'mbuzz123'|base64)

Reboot the system so that the settings take effect

sudo reboot
You can now access the remote desktop through VNC clients, like VNC® Viewer, in the local network

Setup noVNC

Install from Snap Package

Running the command below will install the latest release of noVNC from Snap:

sudo snap install novnc

Check the port on which VNC is running

sudo apt install net-tools
sudo netstat -pl | grep vino
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 10580/vino-server
tcp6 0 0 [::]:5900 [::]:* LISTEN 10580/vino-server
You can see vino is running on port 5900, this will be used in the next step:

Run noVNC from Snap as a Service (Daemon)

Create a new service that listens on port 6080 and connects to the VNC server running on port 5900 on localhost:

sudo snap set novnc services.n6080.listen=6080 services.n6080.vnc=localhost:5900

List current services (out-of-box this will be blank):

sudo snap get novnc services
Key             Value
services.n6080  {...}

Using noVNC

Visit http://localhost:6080/vnc.html and input the password you created

You can access this page from other devices in the network as well.
Make sure to enable auto-login from settings to ensure access after a reboot.



    • Related Articles

    • Configuration to Enable ssh(Remote) Login in Ubuntu.

      How to Enable ssh (Remote) Login in Ubuntu. Have a Trouble to Access ssh Login in Ubuntu. Steps to Configure ssh configuration file. Go to your system/VM and Open Terminal (use ctl+atl+t) and Follow Commands. Open sshd_config file in any editor like ...
    • Fix: High-Resolution Display Issue on ASUS ESC N8-E11V OOB Management & Ubuntu Server 24.04

      When using the ASUS ESC N8-E11V server with Out-of-Band (OOB) Management via BMC (Baseboard Management Controller), users have reported that: The remote KVM session (accessed via HTTPS GUI) defaults to an unusually high resolution (1920x1200), ...
    • Backup, Snapshot, and Restore Linux installations using Timeshift

      If you mess up (or are going to mess up) some config files or drivers, it is always good to have a fallback point. The de-facto standard for doing this on Linux is Timeshift. Timeshift for Linux is an application that provides functionality similar ...
    • UBUNTU 23.04 Desktop Installation

      UBUNTU 23.04 Desktop Installation Before you begin, ensure that you have a storage plan and raid configuration (Servers) on your systems. It is recommended that you install Ubuntu on a separate disc to protect your data in the scenario where the OS ...
    • Enable Root Login in GUI Lock Screen in Ubuntu.

      How to Enable Root Login in Ubuntu in Login Screen. Do you have Trouble to Login as root user in Ubuntu like this? Steps to Enable Root Login Login as other user as you Define in Installation time. Open the Terminal, shortcut to open Terminal ...
    • Popular Articles

    • CP Plus Camera and NVR Configuration

      NVR Configuration The CP Plus Pro Series of NVRs have been meticulously designed for providing you with upgraded performance and higher recording quality in your IP video surveillance solution. The robust processor that has been inculcated in this ...
    • Kerberos Authentication – Overview

      What is Kerberos? Kerberos is a secure authentication method used in our Active Directory (AD) environment (mbuzztech.com). It allows users to: Access multiple systems without re-entering passwords (Single Sign-On – SSO) Log in once Where We Use It ...
    • How to Remove and Reinstall NVIDIA Drivers on Ubuntu

      This article provides step by step guide to completely remove existing NVIDIA drivers and reinstall specific version of the NVIDIA driver on the Ubuntu system Prerequisites Administrative (sudo) access to the Ubuntu system. Internet access to ...
    • Personal Computers and Servers - Classification and Point of Contact

      We can classify the computers that MBUZZ handles based on their form-factor as below: Tower Workstations, Desktops, Gaming PCs and SFF (Small form factor) PCs fall under this category. These are computers people would use on a desk and rarely move. ...
    • M.2 SSD Tier List

      The sequential read and write speeds, which are usually the most advertised number, are not a proper benchmark of real-world performance or the quality of an SSD. This article categorizes and tiers SSDs based on factors like the type of NAND flash, ...