1. Create your startup script
2. Copy your startup script to /etc/init.d
3. Execute the following command to install the startup script:
sudo update-rc.d start-script-name defaults
That's it! Your startup script gets run every time your machine boots up.