Debian 9 - Running a python script at boot
Note: Debian 9 is end-of-life, but the crontab @reboot technique shown here works on all modern Debian, Ubuntu, and Raspberry Pi OS releases. There are a number of ways that you can run a python or bash script at system start but I am about to show you possibly the easiest way, using crontab. First you need to make that your script is executable and can run unattended. Then you need to login as the user your wish to execute the script as and edit the crontab file: ...