KB 398131 - 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
Open the Activities
overview and start typing Sharing.
Click on Sharing to open the panel.
-
If the Sharing switch in the top-right of the window is set
to off, click to switch it on.
Click Screen Sharing
Set the Screen Sharing switch to on.
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 ./.
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
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.
Recent Articles
KB-630208 | How to use Find and Locate to search for files in Linux
Purpose To provide Linux administrators and Field Engineers with guidance on using the find and locate utilities to efficiently search for files and directories within a Linux filesystem based on criteria such as name, type, size, timestamps, ...
KB-630164 | How to use rsync to Synchronize Files
Purpose To provide a clear and practical procedure for using the rsync utility to synchronize files and directories between local systems and remote hosts, including push and pull operations, while preserving file attributes and optimizing data ...
KB-630107 | How to create a Linux swap file
Purpose To provide Field Engineers and Linux administrators with a standardized procedure for creating, configuring, and validating a Linux swap file. This procedure helps ensure sufficient virtual memory is available when physical RAM is exhausted ...
MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims
MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims MSI's standard warranty does not cover physical or accidental damage to an All-in-One (AIO) PC. If the damage is determined to be caused by external factors rather than a ...
KB 134833 - Troubleshooting NVSM Alert NV-CPU-XX – Unrecoverable CPU Internal Error
Purpose This document provides a general troubleshooting procedure for the NVIDIA System Management (NVSM) alert NV-CPU-XX, which indicates that a CPU has reported an internal error. The article outlines how to verify whether the alert represents an ...
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 ...
KB 775235 - 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 ...
KB 692001 - 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. ...
KB 298031 - 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, ...