vncpasswd
vncserver :1
Note: If multiple users try to use the same vnc port (:1 in that case) this could lead to a conflict between users. So we need to employ unique vnc port for every user. You could just let vncserver pick a number for you (say N). However, you need to make sure you use the same exact number when configuring the port (5900+N) in the SSH client and VNC viewer.
vncserver
Please make sure you use the same exact number when configuring the port (5900+N) in the SSH client and VNC viewer.
You can also set
VNC Server Resolution using the command below. You will need to change the target screen resolution as needed, say 1920×1080 or so.
vncserver -geometry 1920x1080 :1
vncserver -kill :<instance number>