How to Set up Raspberry Pi to run Python Program on boot up.
This simple and Intuitive tutorial demonstrates how can you setup to run python file on Raspberry Pi startup.(using putty).
You can also Read this description and step by step set up your PI.
1.Log In to your Pi. ( use screen or even through PUTTY)
2.Navigate to /home/pi
3.Create a python file ( consider ” hello.py “)
4.now open a hidden file .bashrc ( type “sudo nano .bashrc” on terminal and press enter)
6.At the end of the file type “python” followed by your file name (eg: python hello.py)
WE ARE DONE !
REBOOT!
Visit vastauine.com – Signup – Start Controlling your Pi from Web !
All as simple as this Video!
source