Start Program on Boot

Overview

This tutorial is a quick one showing you how to load a python program into the boot up file. This means that it will run when the Raspberry Pi is switched on.

What to Do:

1. In the terminal, open up the file using the command below

$ - sudo nano /etc/rc.local

2. At the very bottom of the file, just above 'exit 0' enter a command along the lines of:

$ - sudo python2 /home/pi/my_program.py

3. Note that the file must have the full path name.