VNC over SSH
install x11vnc
change user with actual user
Enter password[Desktop Entry]
Name=X11VNC Server
Comment=Share this desktop by VNC
Icon=computer
Type=Application
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0
Exec=x11vnc -ncache 10 -nap -forever -loop -repeat -rfbauth /home/user/.vnc/passwd -rfbport 5900 -noncache display :0 -noxdamage
Write your scrip and save
sudo x11vnc -ncache 10 -nap -forever -loop -repeat -rfbauth /home/user/.vnc/passwd -rfbport 5900 -noncache display :0 -noxdamage
Now everytime the OS boots it will run all scripts in the init.d
To test you can do the following
You can access it now through your browser at http://10.10.10.102:8081/vnc.html?host=hostname&port=8081