3

I am working on a project which requires many raspberry pi's to be set up pretty much the same way. In order to set up the pi's we put NOOBS on the micro SD card and then install raspbian onto the pi. We then go through a series of steps where we make a specific directory, clone a git repo, make a startup script, and set the pi to not sleep. I have managed to write a script that does all of this when run. I was wondering if it is possible to include this file somewhere in the NOOBS files so that when Raspbian is fully installed and launched, this script is just sitting on the home screen waiting to be clicked. We do not want to just copy the sd cards of the pi's because not all of them should be the same, also we did a time trial and it took longer to make a copy than to set it up manually. So is there a way to include this file like I specified above?

Lucas
  • 31
  • 1
  • Hello. Perhaps the [CattlePi](https://github.com/cattlepi/cattlepi/blob/master/README.md) project is of interest to you, not used myself so can't really comment further or post this as an answer. – Roger Jones Jul 17 '19 at 14:03
  • You can mount and modify (eg., add a file to) any image, so presuming Raspbian is in the NOOBs image you are using, you could do that; this way your final image will not have to be something copied from a system that's been run. https://raspberrypi.stackexchange.com/q/13137/5538 – goldilocks Jul 17 '19 at 15:50
  • Why use [NOOBS](https://raspberrypi.stackexchange.com/a/92069/8697) - it takes longer to install and wastes 1.3GB? Without knowing what you want to do this is unanswerable. – Milliways Jul 18 '19 at 05:17

1 Answers1

4

Welcome, Lucas.

I'm puzzled about your time trial. I don't see how you can

put NOOBS on the micro SD card

without copying...

My advice would be to get a Pi built with the exact config you want (including your script on the desktop), make an image on a fast Linux (or Mac) computer with a fast card reader, burn that image onto the target cards using DD, boot up on the target Pis and edit the config as required.

Hint: If you're using a Mac, use rdisk in the output file path to speed things up a bit.

Jonathan
  • 354
  • 1
  • 5