drifterf
Posts: 136
Joined: Sat Dec 08, 2018 9:09 am
Location: Northants, England

Quckest Bootable OS For Python Scripts ?

Sat Aug 17, 2019 4:23 pm

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

ghp
Posts: 1418
Joined: Wed Jun 12, 2013 12:41 pm
Location: Stuttgart Germany
Contact: Website

Re: Quckest Bootable OS For Python Scripts ?

Sat Aug 17, 2019 5:47 pm

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.

drifterf
Posts: 136
Joined: Sat Dec 08, 2018 9:09 am
Location: Northants, England

Re: Quckest Bootable OS For Python Scripts ?

Sun Aug 18, 2019 11:21 am

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

epoch1970
Posts: 3786
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Quckest Bootable OS For Python Scripts ?

Sun Aug 18, 2019 11:33 am

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.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Python”