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?

  • Hello. Perhaps the CattlePi project is of interest to you, not used myself so can't really comment further or post this as an answer. Commented Jul 17, 2019 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. raspberrypi.stackexchange.com/q/13137/5538
    – goldilocks
    Commented Jul 17, 2019 at 15:50
  • Why use NOOBS - it takes longer to install and wastes 1.3GB? Without knowing what you want to do this is unanswerable.
    – Milliways
    Commented Jul 18, 2019 at 5:17

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.