Let's assume that you have a normal user called damiano and you have installed vnc server support using

# apt-get install tightvncserver

Let's assume that you have configured vncserver as you prefer and you can start and stop a session using

$ vncserver
$ vncserver -kill :1

You can then start the session every time the system starts by adding the following line to /etc/rc.local

su -l damiano -c vncserver &

Clearly, before the exit 0

You can then tell to init to use rc.local by making it executable

# chmod +x /etc/rc.local

easy


Have a look at user crontabs and starting stuff using @reboot. That way a user can manage such automagical starts after boot without needing superpowers. — yeti 2018/07/24 18:28