I'm not a Linux or RPi expert but knew basically what I was looking for and in the end it was more straightforward than I thought it might be. I though I'd share here.
I used the following steps on my Debian Wheezy desktop...
1. Downloaded and unzipped Raspian Jesse image then wrote the image to the SD card.
2. Found the main partition of the SD card as follows...
Start Root Terminal and execute the following...
This will give information about all filesystems. In my case the two partitions show as...df
It's the one with what looks like the GUID name that I wanted as this contains the core Linux files. The key file I wanted is /etc/wpa_supplicant/wpa_supplicant.conf but file permissions need to be changed in order to edit it....
/dev/sdb2 3717172 3427252 101096 98% /media/ad6203a1-ec50-4f44-a1c0-e6c3dd4c9202
/dev/sdb1 61384 20296 41088 34% /media/boot
...
3. At Root Terminal type...
4. I chose to edit the file with gEdit but obviously any text editor will do. The default wpa_supplicant.conf looks like this...cd /media/ad6203a1-ec50-4f44-a1c0-e6c3dd4c9202/etc
chmod 777 ./wpa_supplicant
chmod 777 ./wpa_supplicant/wpa_supplicant.conf
5. Now I added a network section...ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
In the above the 'ssid=' and 'psk=' entries need to be set accordingly (obviously). Also, if you need a different security setup, wpa_supplicant.conf is well documented if you search Google and also has its own Linux man page.ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="MyRouterSSID"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="abcdefgh"
}
That's it. Save the file and don't forget to reset the original file and directory permissions...
After that I just powered up the Pi Zero with my USB wifi dongle fitted, checked my router for the IP address and then connected in using ssh and could then install Tight VNC Server.chmod 600 ./wpa_supplicant/wpa_supplicant.conf
chmod 755 ./wpa_supplicant
Cheers,
Brian
