![]() Log into the router and find the allocation table, sometimes called “connected devices”. In our case, our (Netgear) router has the facility to look at the DHCP allocation table. In order to communicate with the Pi, we need to ascertain what this address is. The pi should have acquired an IP address on the network using DHCP. IMPORTANT: make sure tha there are no other hosts on your network with the hostname “raspberrypi” as this will confuse the DHCP system. Once you have fitted your newly prepared SDHC card to your Pi, plug in a suitable USB power supply (5 Volts at minimum 1 Amp) and switch on! After about 30 – 45 seconds, your Raspberry Pi Zero W should be connected to the network and visible. Unmount the SDHC card and remove it to the target Raspberry Pi Zero W. Again, save the file to the “/boot” folder on the SDHC card being prepared. The best way is to copy a known working copy from /etc/wpa/wpa_supplicant/wpa_nf on a known working Pi SDHC card. You can attempt to generate this file yourself using a plain text editor if you wish but no guarantees that it will work. Replace the ssid, psk and country fields with the data appropriate to your Wifi network. Typically its contents will look like: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev The “nf” file needs to be copied from a working Raspberry Pi unit using WiFi. Simply change the name of the file to “ssh” (with no suffix) and leave it at that. right click on the folder list and select “new”, then “Text Document”. Remount the SDHC card using file explorer, navigate to the root of the SDHC, you should see just one partition/folder (on a Windows PC) labelled “/boot” containing several files and folders. These files should be written to the “/boot” partition on the SDHC in the following manner. The ssh file is a switch that tells the pi to setup to use ss at first boot, once set up the file is deleted and ssh is permanently enabled. The file “ssh” need be nothing more than a name, the conf file needs some additional information, though. In order to make the Pi start up and use ssh and WiFi, 2 additional files are necessary on the SDHC, “ssh” and “wpa_nf”. Etcher should have unmounted (ejected) the SDHC, if it has not, make sure that you remove it safely. Etcher will flash and verify the file, reporting any errors encountered. This process can take several minutes so go get a cup of tea. Select the SDHC card which Etcher should have identified for you – CAUTION: make sure that you select the correct card as it willbe completely over-written. Start Etcher and select the image file, in our case it was “-raspbian-jessie.img”. for this we recommend Etcher which makes the job very easy and clear. The expanded image file should now be flashed into the micro-SDHC. We suggest that for headless applications the latest Raspian JESSIE LITE zip image is sufficient, download it from HERE.Įxpand the zip file into a separate folder, we suggest using 7zip but your favourite application should suffice. This is not necessary as it assumes that you will use the graphical interface to perform setup. The instructions found in the MagPi magazine suggested downloading the full Raspian PIXEL image. You will need a micro SDHC card with at least 8GByte capacity, we suggest a fast 16Gbyte card rated at Class 10 minimum. Connect to the Zero W using ssh over the local WiFi network.Modify the boot code (don’t worry – its not complicated!).Flash the modified Raspian image to SDHC.This brief tutorial describes a completely headless setup that does not require the extra hardware and can be performed over the local Wi-Fi network. This is because in order to activate the Wi-Fi connection, the simplest way is to use a keyboard, mouse and screen which potentially defeats the object of the Zero W! However, order to get a Zero W up and running is not quite as simple as it could be. The new Rapberry Pi Zero W released last month is a major step forward for so-called “headless” or standalone controllers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |