Warning: file_put_contents(/home/clients/81b51a55b78a35c5c4c50dd82cac1015/diyprojects/wp-content/uploads/wpo/images/wpo_logo_small.png.webp): failed to open stream: Disk quota exceeded in /home/clients/81b51a55b78a35c5c4c50dd82cac1015/diyprojects/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/Gd.php on line 428
How to install Raspbian on the Raspberry Pi Zero W without screen or keyboard in WiFi • DIY Projects
DIY Projects

How to install Raspbian on the Raspberry Pi Zero W without screen or keyboard in WiFi

raspberry pi zero w without keyboard screen

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.

The method also works for the Raspberry Pi 3

Necessary material

Raspberry Pi Zero W protection case

From €2,80

8GB SD board SDHC Classe 10
from €6,90
5V – 2000mA micro USB power supply

from €2,80

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


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


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.

Last advice, never disconnect the power cord without shutting down the system. This is the best way to break your SD board!

To stop the system, use the sudo halt  command.

For other optimizations, read the previous tutorial on the Raspberry Pi 3.

Click to rate this post!
[Total: 0 Average: 0]
Exit mobile version