Wed Jan 27, 2021 3:12 pm
#1822642
Yep, you'll need to do something to make that start on power up.
Easiest way is simply to do:-
sudo /etc/rc.local
and paste your command in there adding a final & at the end - this is important. If you don't add the &, the pi won't continue booting after it gets to your script.
There are more complicated (and better) ways of doing it but this will do the trick for this simple task.
It's not ideal because it won't re-launch if it crashes etc. If you want to do it properly, method 4 here is the 'right' way on a modern Linux.
https://www.dexterindustries.com/howto/ ... t-startup/
Easiest way is simply to do:-
sudo /etc/rc.local
and paste your command in there adding a final & at the end - this is important. If you don't add the &, the pi won't continue booting after it gets to your script.
There are more complicated (and better) ways of doing it but this will do the trick for this simple task.
It's not ideal because it won't re-launch if it crashes etc. If you want to do it properly, method 4 here is the 'right' way on a modern Linux.
https://www.dexterindustries.com/howto/ ... t-startup/
Colonel Panic liked this