In my previous post I mentioned that I had modified Google's Raspbian image to before I wrote it to the SD card.

I did this because I generally work from laptops, I don't keep keyboard and mice hanging around and I needed to get the two Google API generated JSON files onto the card.
As there is only one data usb on the Pi Zero, which would be used for the WiFi dongle, I couldn't use a USB stick without a USB hub.
I could have used SSH and wget'd a zip file but I didn't want to put those two files online in order to do that.
As part of the setup process I needed to enable SSH and setup the WiFi by modifying the cmdline and config files on the boot partition anyway, so I added the JSON files to the image and just wrote it and not have further messing about.

A big limiting factor is that I am relatively new to Raspberry Pi's and Linux in general, so it is very much a trial and error process for what can and can't be edited at various states.

My original goal was to put the API JSON files in their correct folder, /pi in the image. As you can't access the Raspbian OS partition in OSX I booted up a Virtual Machine.
In a VM running Ubuntu I opened the image from the host machine via a shared folder.
This allowed me to access the Raspbian OS where I quickly found out that I cannot modify the contents as I don't have permissions... I should have thought of this before hand.
Instead I put the files in the boot partition and while there I also edited the cmdline to enable ethernet over USB, and config file to setup the WiFi connection.
I also dropped in a .SSH file to enable SSH on the Pi.

Once the image was written to the SD card I popped it into the Zero, inserted the usb WiFi dongle and plugged in the power.
It booted up connected to the wifi and using SSH I installed x11vnc, then moved the JSON files from the boot to /pi folder and I was off to the races.


Post has attachment
Over the weekend my daughter and I set about making the Raspberry PI Voice kit from the latest MagPi (issue 57).

My daughter is three and a half and got a big kick on the arts and crafts side of it.
Paper and felt cut and glued to the cardboard case, some trimmed felt, googly eyes feathers and glue.... and done!

I used an original zero with a usb WiFi dongle.
It was a pain in the ass to setup as I work from laptops and don't keep a keyboard and mouse at home. It was a bit of convoluted process to modify Google's Rasbian image but I mounted it in Ubuntu modified the cmdline and config files, enabled SSH and dropped the JSON credentials into the boot partition.
When it had booted SSH'd into it, setup the VNC and then proceeded as normal.
Then moved the JSON files into the PI folder.
Restarted and all done!

My little one gets such a kick out of punching the little button and asking questions.
'how do you spell dolly' was the first one.
She even asked 'what's the weather tomorrow' before bed!



Photo
Wait while more posts are being loaded