# Software installation on multiple raspberry pis

**URL:** <https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552>\
**Category:** Uncategorized\
**Created:** [November 14, 2024, 9:57am UTC](https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552 "2024-11-14T09:57:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vickylouise](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/v/a6a055/32.png) [@vickylouise](https://forum.pioreactor.com/u/vickylouise)\
**Post date:** [November 14, 2024, 9:57am UTC](https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552/1 "2024-11-14T09:57:54Z")

</div>

Hello,

We are looking into setting up another 72 pioreactor workers. We would like to make the process quicker than flashing the [microSD cards one by one](https://docs.pioreactor.com/user-guide/software-set-up) and are looking into buying a drive duplicator (something like [this](https://www.amazon.co.uk/dp/B0BVYGC47G?ref=cm_sw_r_cp_ud_dp_Q7F8M3R85TAXQK7JDYWP_2&ref_=cm_sw_r_cp_ud_dp_Q7F8M3R85TAXQK7JDYWP_2&social_share=cm_sw_r_cp_ud_dp_Q7F8M3R85TAXQK7JDYWP_2&skipTwisterOG=1) with some of [these](https://www.amazon.co.uk/dp/B07PN54VQ2?ref=cm_sw_r_cp_ud_dp_V8SJZX5Y3RHV1V3AFK9Z_1&ref_=cm_sw_r_cp_ud_dp_V8SJZX5Y3RHV1V3AFK9Z_1&social_share=cm_sw_r_cp_ud_dp_V8SJZX5Y3RHV1V3AFK9Z_1&_encoding=UTF8&psc=1&skipTwisterOG=1)). We have found scripts online that we could adapt (e.g. [pico-autoflash-mac.py · GitHub](https://gist.github.com/monkeymademe/82a575c63ee4a52c83a5aa0f6793307b)) so it looks possible but we understand we’d need to give each pioreactor worker a unique host name. Before investing in the duplicator and time writing scripts, we were wondering whether anyone had done anything similar before or point us towards useful resources?

Many thanks in advance,

Vicky

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [November 15, 2024, 2:16pm UTC](https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552/2 "2024-11-15T14:16:35Z")

</div>

Hi @vickylouise,

I can’t comment on what hardware tools might be useful, but one thing to note: you _can_ change hostnames _after_ you’ve written an image. SSHing into a Raspberry Pi (in general, but also the Pioreactor), you can run

```auto
sudo hostnamectl set-hostname <new-worker-name> && sudo reboot

```

---

<div class="post-metadata">

**Author:** ![vickylouise](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/v/a6a055/32.png) [@vickylouise](https://forum.pioreactor.com/u/vickylouise)\
**Post date:** [November 18, 2024, 10:58am UTC](https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552/3 "2024-11-18T10:58:35Z")

</div>

Thanks @CamDavidsonPilon - that’s a good point! I was worried about being able to ssh in if they are the same host name but I can use the IP addresses. So I think my steps to try are:

- Install using the [software installer](https://docs.pioreactor.com/user-guide/software-set-up), giving them all the same host name
- Identify all the devices on my network using that host name and get their IP addresses
- ssh in using the IP addresses and change the name and add them to the cluster

I have a plan, thank you!

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [November 18, 2024, 3:51pm UTC](https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552/4 "2024-11-18T15:51:05Z")

</div>

Another tool you can use is the following:

When you write the SD card using RPI imager, there exists the bash file `firstboot.sh` in the `boot` dir. You can append the hostname change code to the end of this file:

```auto
sudo hostnamectl set-hostname <new-worker-name>

```

Then, on first boot, this `firstboot.sh` will run (and it will only ever run once). This approach might be easier than finding them on your network and changing after the effect. Heads up: I’ve never tested this, so try it first!

---

<div class="post-metadata">

**Author:** ![vickylouise](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/v/a6a055/32.png) [@vickylouise](https://forum.pioreactor.com/u/vickylouise)\
**Post date:** [November 19, 2024, 9:31am UTC](https://forum.pioreactor.com/t/software-installation-on-multiple-raspberry-pis/552/5 "2024-11-19T09:31:17Z")

</div>

Good point, thank you! Good to have a plan B too 😄
