How to Install TightVNC Server on Ubuntu 20.04 - Serverspace
serverspace.us › support › helpJan 26, 2021 · By default, TightVNC does not have a daemon and does not turn on after a system reboot. To fix this, let's create a new unit in systemd. nano /etc/systemd/system/vncserver.service. Insert the following config there: [Unit] Description=TightVNC server After=syslog.target network.target [Service] Type=forking User=root PAMName=login PIDFile=/root/.vnc/%H:1.pid ExecStartPre=-/usr/bin/vncserver -kill :1 > /dev/null 2>&1 ExecStart=/usr/bin/vncserver ExecStop=/usr/bin/vncserver -kill :1 [Install] ...