Jan-Lukas Else

Software Developer & Blogger

VNC

Share online Translate

Install and configure TigerVNC on Ubuntu 20.04 (with Gnome)

Install packages:

sudo apt install tigervnc-standalone-server xserver-xorg-core tigervnc-xorg-extension

Set VNC password:

vncpasswd

Write to ~/.vnc/xstartup:

#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -nowin &
dbus-launch --exit-with-session gnome-session &

Make startup script executable:

chmod +x ~/.vnc/xstartup

Start VNC server:

vncserver -localhost no -geometry 3840x2160 -depth 24

List running VNC servers:

vncserver -list

Stop VNC server:

vncserver -kill :1
Jan-Lukas Else