1 # The VNCSERVERS variable is a list of display:user pairs.
3 # Uncomment the lines below to start a VNC server on display :2
4 # as my 'myusername' (adjust this to your own). You will also
5 # need to set a VNC password; run 'man vncpasswd' to see how
8 # DO NOT RUN THIS SERVICE if your local area network is untrusted!
10 # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
12 # Use "-localhost" to prevent remote VNC clients connecting except when
13 # doing so through a secure tunnel. See the "-via" option in the
14 # 'man vncviewer' manual page.
16 # On systems running systemd after updating the list below you have to
17 # restart systemd to regenerate vncserver@DISPLAY.service services
18 # (systemctl --system daemon-reload), stop and start vncserver.target when
19 # removing elements from list or restart vncserver.target when only adding
20 # elements (systemctl stop vncserver.target / systemctl restart vncserver.target).
22 # VNCSERVERS="2:myusername"
23 # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"