The Raspberry Pi Zero W (the new version incorporating WiFi) is equipped with two USB ports in micro-USB format as well as a mini HDMI video output. The use of these connectors makes the Pi Zero W very compact – it measures 4.7mm thick – but this makes the installation of the Raspbian distribution a little more complicated. There are micro-USB and mini HDMI adapters but this increases the cost price of the set. Fortunately, the foundation has provided a mechanism for installing the Raspbian Pixel distribution without keyboard or screen thanks to the Raspberry Pi Zero W WiFi connection.
Necessary material
Raspberry Pi Zero W protection case | |
8GB SD board SDHC Classe 10 from €6,90 |
|
5V – 2000mA micro USB power supply |
What is the power of Raspberry Pi 3?
The Pi Zero W is built around the Broadcom BCM2835 mono core core clocked at 1GHz and 512 MB Ram. The f4bi site published a very complete benchmark realized with SysBench. To summarize, Pi Zero W is equivalent to Raspberry Pi 2 in most tasks.
With only 512MB Ram, the Pi Zero W is clearly not intended to operate (smoothly) the Pixel graphics desktop.
Download Raspbian Jessie Lite distribution
Go to the official website of the foundation and download the image of the distribution Raspbian Jessie Lite.
Preparing the SD board
Use Etcher to install Raspbian on the SD board. Follow this guide that explains all the steps.
Configure WiFi and SSH connection
At the end of the copy operation, Etcher proposes to eject the SD board. If it does not, do so and then insert it again into the drive. Open the file manager (or the Finder on macOS). Select the device named boot.
The foundation has provided a mechanism to enable SSH connection and configure WiFi at first system startup. Simply create two configuration files specific to the root of the SD board.
Enable SSH connection
Since the Pixel version of Raspbian in December 2016, the SSH connection is disabled by default. This vulnerability was exploited by the Trojan Linux.MulDrop.14. To enable SSH, just create a file named ssh at the root.
Enable WiFi connection
Create a new file called wpa_supplicant.conf. Paste and change the identifier of your WiFi network (SSID) and the password (PWD). Don’t forget to change the country code.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US network={ ssid="SSID" psk="PASSWORD" key_mgmt=WPA-PSK scan_ssid=1 }
Make sure that there are two files in the root of the SD board. Check the WiFi network connection settings. Eject the SD board from your computer.
First startup
Insert the SD board into the drive and turn on the Raspberry Pi Zero W. The power connector is the micro-USB connector located next to the camera connector.
The startup lasts about one minute. You can track the system load using the green led next to the power connector. It blinks during charging and then lights continuously after Raspbian is loaded.
How to find the RPi Zero W on the network?
The RPi Zero W is now started. Now you have to find it on the network. There are a number of ways.
Using the router
The first solution is to connect using the IP address assigned by the router. To do this, log on to the administrative interface of your router.
Using a network scanner
There are many network scanners. For example, you can use Angry IP Scanner, an open source project that runs on 32-bit and 64-bit Windows, 32-bit and 64-bit Linux and macOS. The MacOS version requires the installation of Java 7 to run.
Using the hostname
Normally, Raspbian broadcasts a machine name in the form raspberrypi.local. If several Raspberry Pi are present on the same network, a number is added to the hostname like this
raspberrypi-NUM.local
Angry IP Scanner retrieves the hostname in the 3rd column but this one is not correct! It is best to use the router. In SSH, we connect to Pi Zero like this
ssh pi@raspberrypi-2.local
Update and change the default password
At first boot, it is better to update the system. Linux is constantly updated. Begin by updating the dependencies of the current version of the system
sudo apt update
Then update the system
sudo apt upgrade
When the foundation releases a new distribution, run the sudo apt dist-upgrade command to install it.
Finally, change the default password. This is the second vulnerability used by the Trojan Linux.MulDrop.14 to spread to all Raspberry Pi connected to the local network! To do this, run the passwd command and follow the instructions.
To stop the system, use the sudo halt command.
For other optimizations, read the previous tutorial on the Raspberry Pi 3.
- Waveshare launches two Raspberry Pi 400 + 7″ or 13.3″ touchscreen bundles
- Motorized microscope with HQ camera for Raspberry Pi and HTML interface (Python)
- Open an HTML page when starting Raspberry Pi OS with Chromium Browser in full screen (kiosk mode)
- Pi Imager and the configuration wizard simplify the installation of Raspberry Pi OS (old Raspbian)
- New Raspberry Pi 3 Model B+ 2018 @1.4GHz, Gigabit Ethernet, Ethernet POE Daughter Card, Flash Sale at $49.99 on Gearbest
- #Test LCD 3.5” HDMI touch screen (via GPIO) with acrylic case for Raspberry Pi 3 under Raspbian (480×320 to 1920×1080 pixels)