Cant get code to run on startup.
Forums:
I built the Diddy borg a while back and it runs great however i have failed to get the code to run on startup so i usually just get it running over VNC and carry on but it would be great not to have to do that.
cheers
Tim
- Log in to post comments


piborg
Thu, 08/10/2017 - 10:48
Permalink
Adding scripts to rc.local
You should be able to get the scripts to run from
/etc/rc.local.Start by opening /etc/rc.local to make an addition using:
sudo nano /etc/rc.lcoalThen add a line just above the
exit 0line that looks like this to run the script you want:Replace
diddyJoy.pywith the name of the script you want to run.Finally press CTRL+O, ENTER to save the file followed by CTRL+X to exit nano.
Next time you power up the Raspberry Pi it should start the script for you :)