DEBIAN - CONFIGURE VNC SERVER
Install and Configure VNC Server to connect to Debian Desktop from remote clients.
[1] Install VNC server.
$ apt -y install tigervnc-standalone-server
[2] Login as a user you'd like to set VNC.
For Desktop session, this example shows to use Cinnamon Desktop on VNC connection.
# set VNC password
debian@dlp:~$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
# start VNC server with MATE desktop, display number [1], screen resolution [800x600]
$ tigervncserver -xstartup /usr/bin/mate-session -geometry 800x600 -localhost no :1
New Xtigervnc server 'dlp.srv.world:1 (debian)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/debian/.vnc/passwd
dlp.srv.world:1 to connect to the VNC server.
# to stop VNC session, run like follows
debian@dlp:~$ tigervncserver -kill :1
Killing Xtigervnc process ID 4303... success!