Server Recipes
One approach is to add an @reboot cron [1] task:
Running crontab -e will allow you to edit your cron.
crontab -e
Adding a line like this to it:
@reboot /path/to/script
will execute that script once your computer boots up.
[1] http://en.wikipedia.org/wiki/Cron