Raspberry Pi Zero W: fast headless Wifi configuration with SSH

Yesterday I received a Raspberry Zero W, that for approximately $10 include Wifi and Bluetooth (byebye dongles) but no Ethernet port.

This post contains the instructions for configuring the Raspberry Pi Zero W so that he connects to the wifi network at the first startup of Linux, without wasting time (after that, you can log on via SSH).

  1. Download Jessie Lite image from the official repository (5 min)
  2. Download Etcher and burn the image on SD card (5 min)
  3. Insert the SD card in your notebook and open the boot folder of the SD Card
  4. Create an (empty) file called ssh (this enable SSH on startup)
  5. Create a wpa_supplicant.conf file with the following content

Insert the SD in your Raspberry Pi Zero W, attach the power USB, connect your computer to the wifi, scan the network to find the raspberry IP address (i use lanscan on OSX) and you can connect via SSH (the default password is raspberry)

ssh pi@raspberrypi

This entry was posted in Raspberry, Uncategorized and tagged , , , , , . Bookmark the permalink.

9 Responses to Raspberry Pi Zero W: fast headless Wifi configuration with SSH

  1. Roman says:

    wpa_supplicant.conf not wpa_supplicanf.conf

  2. Adrian says:

    worked great, thank you

  3. David says:

    for ssh the command line is:
    ssh pi@raspberrypi
    and password is raspberry

  4. Jeff says:

    Is this placed in the Boot folder?

  5. Chris L says:

    I had to do the following to get a super long psk code which worked for me when my plain text password was failing. Note, I had to enter this command on a Pi I had already set up in order to get the code.

    $ wpa_passphrase MYSSID passphrase

    Replace MYSSID with the name of the network you’re trying to connect to.

  6. Martin Kvapil says:

    works like a charm, i ordered the wrong hdmi adapter to my pi so this saved my bacon 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *