edit /etc/rc.local add a line with python </path/programtorun.py> save file