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.
- 1 Necessary material
- 2 What is the power of Raspberry Pi 3?
- 3 Download Raspbian Jessie Lite distribution
- 4 Preparing the SD card
- 5 Configure WiFi and SSH connection
- 6 First startup
- 7 How to find the Pi Zero on the network?
- 8 Update and change the default password
|Raspberry Pi Zero W protection case|
|8GB SD card SDHC Classe 10
|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 card
Use Etcher to install Raspbian on the SD card. 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 card. 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 card.
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).
Make sure that there are two files in the root of the SD card. Check the WiFi network connection settings. Eject the SD card from your computer.
Insert the SD card 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 Pi Zero on the network?
The Pi Zero 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
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
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.
- Activate the i2c bus of Raspberry Pi 3 or Pi Zero W
- How to solder the Raspberry Pi Zero W GPIO connector
- Share file from an Orange Pi (Armbian) or a Raspberry Pi (Raspbian) with Samba
- Raspberry Pi Zero W and Node-RED MQTT Surveillance Camera for Home Assistant
- Install Node-RED on Raspbian Jessie Lite on a Raspberry Pi Zero W
- Scratch 2 and Thonny Python for Raspberry Pi (Raspbian 2017-06-21)