A quick systemd
service definition file for tigervnc
on Ubuntu 20.04
[Unit]
Description=tigervnc
[Service]
Type=forking
ExecStart=/usr/bin/vncserver -localhost no -depth 24 -geometry 1920x1080 -noreset
User=steve
[Install]
WantedBy=multi-user.target
Key components:
Type=forking
sosystemd
correctly identifies the real VNC process, not the perl script that runs and then exits-localhost no
so connections from other computers are accepted. This is only needed if you are not usingssh
tunneling.User=steve
sotigervnc
doesn't complain aboutHOME
not defined in the environment and uses my settings for auth and X session. Note that this is a strictly single-user setup.