Ubuntu 20.04 LTS : Configure VNC Server : Server World
apt install tigervnc-standalone-server -y
# set VNC password
ubuntu@dlp:~$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
# start VNC server
ubuntu@dlp:~$ vncserver :1
/usr/bin/xauth: file /home/ubuntu/.Xauthority does not exist
New 'dlp.srv.world:1 (ubuntu)' desktop at :1 on machine dlp.srv.world
Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/ubuntu/.vnc/dlp.srv.world:1.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/ubuntu/.vnc/passwd :1 to connect to the VNC server.
# stop once
ubuntu@dlp:~$ vncserver -kill :1
Killing Xtigervnc process ID 4123... success!
ubuntu@dlp:~$ vi ~/.vnc/xstartup
# create new (or add to the end)
exec /usr/bin/mate-session &
# start with diplay number [1], screen resolution [800x600]
ubuntu@dlp:~$ vncserver :1 -geometry 800x600 -localhost no
New 'dlp.srv.world:1 (ubuntu)' desktop at :1 on machine dlp.srv.world
Starting applications specified in /home/ubuntu/.vnc/xstartup
Log file is /home/ubuntu/.vnc/dlp.srv.world:1.log
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/ubuntu/.vnc/passwd dlp.srv.world:1 to connect to the VNC server.