run at startup raspberry pi code example Example: run on startup pi sudo nano /etc/rc.local Then add commands and do CTRL+X and press y to save