
It is definitely the most complicated of the three, but it allows you to run before LXDE starts, wait until you have access to other processes (e.g. systemd - The new and popular way to automatically start programs in Linux.It's slightly more complicated than rc.local, but it lets you run programs that require graphical elements.

autostart - Used to automatically run your programs once LXDE (graphical desktop environment used by Raspbian) starts.

The downside is that tasks started with rc.local happen before the X windows system starts, which means you will not have access to graphical user interface (GUI) elements.

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.
