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.
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
# 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)
sudo reboot
Running the command below will install the latest release of noVNC from Snap:
sudo snap install novnc
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
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 {...}