In Ubuntu, if you want to run a script at the end of the boot sequence, add commands to /etc/rc.local