Dominic replied to the topic 'Fresh Ubuntu Install?' in the forum. 3 years ago

install Tiger Vnc

create a systemd service file example "

/etc/systemd/system/vncserver@.service
"
also set permissions correctly
chmod u+x /etc/systemd/system/vncserver@.service

example contents ( change both username / home dir / and monitor geometry )
[Unit] Description=Start Tiger VNC server at startup After=syslog.target network.target [Service] Type=forking User=dom Group=dom WorkingDirectory=/home/dom PIDFile=/home/dom/.vnc/%H:%i.pid ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 ExecStart=/usr/bin/vncserver -geometry 3440x1440 -localhost no :%i ExecStop=/usr/bin/vncserver -kill :%i [Install] WantedBy=multi-user.target


then enable service
systemctl enable vncserver@.service
systemctl start vncserver@.service


Read More...