On Friday, 21 July 2017 00:51:45 UTC+5:30, I R A Darth Aggie wrote:
> On Thu, 20 Jul 2017 03:17:22 -0700 (PDT),
> T Obulesu , in
> wrote:
> > Hello all,
> > I have a raspberry pi3 and installed with Raspbian image.
> > I'm running few python applications in it.
>
> > I want to make a new Image with the existing image that should
> > include my python applications and install this image in 100 new
> > BBBs...
>
> > And few things like ifconfig settings (set a static IP), internet
> > settings and installation of python libraries should be
> > automatically done while the image installation is in progress..
>
> > How can I do this?
> > Is it possible?
>
> Some of it is, some isn't. I'm not sure how you'd go about modifying
> the image on the fly. Maybe you could write the image, then mount the
> image and modify the network settings, or perhaps create a run once
> program to assign a static IP according to the MAC address the first
> time it boots up.
>
> The python libraries should already be installed before taking the
> image.
>
> Please note: dd will cheerfully write over any /dev/sdX device,
> including devices you care about without warning. Double check that
> sdX is the device you want, and not the device that contains your home
> directory. You've been warned.
>
> Taking an image:
> sudo dd bs=4M if=/dev/sdX of=my-custom.img
>
> Writing it out:
> sudo dd bs=4M if=my-custom.img of=/dev/sdX
>
> Checking your work. Use sha256sum to check that that the SD card
> accurately created. The sum for the image can be stored in a file,
>
> sha256sum my-custom.img > my-custom.sha
>
> and then check that against the output of
>
> sudo sha256sum /dev/sdX
>
> BBB? BeagleBone Black? I don't think they can run a pi image. I might
> be wrong, and it won't hurt to stick a pi SD card and see if it will
> boot. I expect it will fail spectacularly.
>
> As far as making large quantities of SD cards, that's going to be
> painful, either in time or in money. My first thought would be to get
> on a linux machine with plenty of USB ports, then get some of these
>
> https://www.amazon.com/dp/B0028R3NCU or these
> https://www.amazon.com/Doinshop-Useful-T-Flash-Memory-Adapter/dp/B00N8PAHC0
>
> load up $x number of usb ports, open up $x number of terminal windows,
> and then issue $x number of "dd .. of=/dev/sd$y" were $y corresponds
> to each of the usb adapters.
>
> Then go make a caffeniated beverage, go get food, take a nap, etc, and
> come back in a while and see if they've finished. I'd probably go with
> a script to also automatically check the sha256sums and give you an
> okee-dokee when it is finished.
>
> I looked at amazon to see if they had SD duplicators, and they do. But
> they're in the US$550 range for 7 at a time.
>
> --
> Consulting Minister for Consultants, DNRC
> I can please only one person per day. Today is not your day. Tomorrow
> isn't looking good, either.
> I am BOFH. Resistance is futile. Your network will be assimilated.
Thanks for the reply,,
Very informative
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|