Page 1 of 1

Quckest Bootable OS For Python Scripts ?

Posted: Sat Aug 17, 2019 4:23 pm
by drifterf
Hi, i have some stuff running perfectly on the terminal based version of Raspbian. all of the scripts i use are python.

what would be the fastest os to run my python script (its ascript which when a input is pressed it triggers a gpio to trigger a relay)

i require SSH and the GPIO pins to work etc

the quicker from boot it starts the better. any suggestions welcome. thanks

Re: Quckest Bootable OS For Python Scripts ?

Posted: Sat Aug 17, 2019 5:47 pm
by ghp
for starting a program at startup, see
https://www.dexterindustries.com/howto/ ... t-startup/

Your script "its ascript which when a input is pressed it triggers a gpio " needs console input, or gpio input ?
If only GPIO is needed, use systemd to start.

Re: Quckest Bootable OS For Python Scripts ?

Posted: Sun Aug 18, 2019 11:21 am
by drifterf
i currently have the terminal only verion of raspbian and its booting my script from startup no problem etc, just wondered if was a way of it running from power up after a few seconds, take about 15 seconds at moment

Re: Quckest Bootable OS For Python Scripts ?

Posted: Sun Aug 18, 2019 11:33 am
by epoch1970
PiCore is a binary distribution that should boot faster than Raspbian
Otherwise you can build your own, with something like Buildroot or Yocto
Some try to streamline systemd’s boot process on Raspbian. That could be an alternative to changing OS. No idea how fruitful the effort can be.