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=forkingsosystemdcorrectly identifies the real VNC process, not the perl script that runs and then exits-localhost noso connections from other computers are accepted. This is only needed if you are not usingsshtunneling.User=stevesotigervncdoesn't complain aboutHOMEnot defined in the environment and uses my settings for auth and X session. Note that this is a strictly single-user setup.