raspberry pi
Run a Script at Boot on a Raspberry Pi
Edit your crontab list: sudo crontab -e Select your preferred editor (if you are prompted). Then add the following file at the bottom: @reboot python /home/usera/myscript.py Make sure the script is executable: sudo chmod a+x /home/usera/myscript.py