Script that runs on startup
Hello!
I want to know where can i find a script that executes on startup on ubuntu 6.06. Something like /etc/rc.d/rc.local on Red Hat, where I can do a masquerade and run some apps. :) Thank you! |
Ubuntu is debian based so afaik it uses the same startup scripts as debian. That means that /etc/init.d/ contains all scripts that should be executed at boot/shutdown.
But after putting your script there you need to symlink it to /etc/rcX.d/ where X is the runlevel (or S for startup). The name of the symlink should be something like SXXblah, where S is for start (or K for shutdown/reboot (lies in runlevel 0 and 6)) and where XX is the number used to determine when it should be run. For more info do a search for "debian startup scripts". Regards. |
Check out System-> Preferences-> Sessions-> (tab)Startup Programs. This is about starting the level 6 for a particular user. It has advantages since all the kernel related things are started -- e.g. network access to the web. There are things that need to start at lower levels but level 6 usually works well for most user needs.
|
You can find rc.local and rc files in /etc/init.d
|
All times are GMT -5. The time now is 09:52 AM. |