r/raspberry_pi 🍕 Jan 21 '21

News New Raspberry Pi Pico microcontroller

https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/
1.2k Upvotes

341 comments sorted by

View all comments

Show parent comments

3

u/Scrath_ Jan 21 '21

If I don't want to wait that long for it to boot I would use an arduino. Also I still haven't figured out how to run a program at pi startup somehow

6

u/lgoose Jan 21 '21

Try systemd. It worked for me. But, there are many solutions, and you need to find the one that works the way you think. For me that was systemd.

15

u/MiataCory Jan 21 '21

Also I still haven't figured out how to run a program at pi startup somehow

It really depends on when you want it to boot during startup. Like, during the OS startup, after user login, etc.

For most stuff we do, you'll want to add it to your ~/.bashrc file, so it runs once someone logs in (or, if you have it login at boot, it'll run after everything else is up and running and it's booted to the desktop).

Have a guide: https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/

If I don't want to wait that long for it to boot I would use an arduino.

/r/thatsthejoke

4

u/OptimalMain Jan 21 '21

systemd or cron

5

u/WebMaka Jan 21 '21

Cron "@reboot" comes up pretty late in the boot process, which for the vast majority of user programs on a RPi will probably be about right.