simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Pre-staging a brand new SD Card

Sun Feb 23, 2014 3:42 pm

For a long time, I've wanted to be able to easilly pre-set things like WiFi connections on a SD card
e.g Plug your card into a PC/Laptop - alter a config file from WIndows/Linux/Mac/Another Pi and then slot the card into a PI and be up and running with a away from home WiFi setting etc.

Ideally, I've wanted this to be an automatic built in feature of Raspbian but I've been unable to get any traction on getting this done at source :)

However, its now been shown that its trivial to edit an SD Card image and alter any scripts/config files that are held in plain text.
https://www.dropbox.com/s/geerzbpfvvgow ... .15.15.jpg


http://www.raspberrypi.org/forum/viewto ... 29&t=69806

The original programmer adopted a slightly controversial approach and therefore I was looking for someone to hopefully "re-boot the franchise" and write a nice prog to replace it. :)

My thoughts are - one program that asks you for the defaults that you always want from raspi-config (eg. - I would expand filesystem,boot to desktop and overclock to 1GHz) everytime i write a new SD card.

I'd also want it to alter wifi settings and move wpa-supplicant to /boot and ask for 1st boot settings (mayne a bit trickier)

Then the image could be written to SD card - burnt - plugged into a Pi - and lo and behold - up and running with WiFi in desktop ready for young kids to use start Scratching :)

So looking for enthusiastic person with that magic ingredient "a bit of time" :)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

User avatar
procount
Posts: 2209
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Pre-staging a brand new SD Card

Sun Apr 27, 2014 9:40 am

This is my solution: http://www.raspberrypi.org/forums/viewt ... 63&t=75721
Look at zeroconf_wifi.md in https://github.com/procount/noobsconfig/ specifically for instructions to solve this problem of prestaging an SD card in Windows for wifi.

This could be combined with a GUI to write the interfaces and wpa_supplicant.conf files to make it even easier.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Pre-staging a brand new SD Card

Sun Apr 27, 2014 2:46 pm

A bit like buses...

User @BBUK has just posted about another possible solution -

http://www.raspberrypi.org/forums/viewt ... 29&t=75762
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

User avatar
procount
Posts: 2209
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Pre-staging a brand new SD Card

Sun Apr 27, 2014 10:09 pm

And why not....?!
@BBUK states his solution excludes noobs. But you could use my noobsconfig to deploy his files to make his work with noobs aswell.
Synergy!
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

Return to “Advanced users”