Question : Ubuntu 10.04 startup script

Hi,

I'm trying to figure out how I will for example add this to a startup script so the VNC4server starts automatically when booting:

vnc4server :1 -geometry 1280x1024 -depth 16

Any ideas how to achieve this?

-Toby

Answer : Ubuntu 10.04 startup script

1- Create a new file named "vnc-startup.sh", and write your command inside it ( vnc4server :1 ..... )
2- Put it in /etc/init.d/ directory
3- Make it executable: sudo chmod +x vnc-startup.sh
4- Let it come with startup: update-rc.d vnc-startup.sh defaults

That should make it start with boot up.
Random Solutions  
 
programming4us programming4us