0

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:

  1. scheduling a cronjob

sudo crontab -e and then added the code

@reboot /file/path/myscript/

  1. 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

  1. Adding it to the .bashrc folder in the /pi directory

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?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.