I'm simply trying to make a program run when the Raspberry boots up. The idea being it runs, so there is no need for a mouse/keyboard to manually start the program.
I've read forum after forum on how to run a script on boot on a Raspberry Pi. I feel like I've exhausted every method.
I have tried:
- scheduling a cronjob
sudo crontab -e and then added the code
@reboot /file/path/myscript/
- Putting my progam in the /etc/init.d/ folder and updating it in the boot sequence.
file moved to /etc/init.d/myscript/
make executable sudo chmod 755 /etc/init.d/myscript/
register script sudo update-rc.d defaults
- Adding it to the .bashrc folder in the
/pidirectory
navigated to /home/pi/.bashrc/
added ./myscript/ to the file.
None of these have worked for me, whereas for everyone else on those forums, it seems to have solve their problem. Is there something I'm missing from any of these methods?