rc.local - Likely the easiest and simplest way to get your program to run on boot.The three methods covered in this tutorial are: It's much harder to track down bugs in your code when it runs as part of the boot process.
Other versions may affect how some of the steps in this guide are performed.īefore adding your program to any startup script, it's extremely important that you test it first on its own! Run it with just the python command to make sure there are no problems with your program. Notice: This tutorial was written with Raspbian version 'June 2018' and Python version 3.5.3.