Raspberry pie set up to run Python program automatically

method:

  1. switch to root account sudo
  2. modify rc.local file sudo nano /etc/rc.local

  3. before exit 0 add the execute command 0 sudo python /xx/xx/xx. Py
    1
  4. save the restart can see the effect after


Read More: