If you ordered a Pi Zero W without the mini-HDMI adapter, HDMI cable and USB OTG cable for an USB keyboard, or you simply don’t have a display to connect the Pi to, you can use your Pi Zero W’s built in Wifi to connect to your home WiFi router, and reach the Zero W via SSH, using the IP address the router has assigned to it.

Ho do I enable SSH?

In November 2016 the Raspberry Pi foundation decided to ship the official Raspbian OS images with SSH disabled by default. There’s an easy workaround though, put a file named “ssh” to the /boot/ partition of the fresh Raspbian installation. The boot partition is visible under Windows too. The “ssh” file needs to be without any extension, so “ssh.txt” will not work, it has to be purely “ssh”.

How do I connect to my home WiFi?

most people have passworded WiFi networks at home, but even if you don’t, how would the Pi Zero W know to which WiFi network should it connect?

Again we will use the /boot/ partition which is visible in Windows, too.

You’ll need to create a file called “wpa_supplicant.conf”, and put your home WiFi’s credentials into the file. When the Pi Zero W boots, it will check for this file, and if it finds it, it will automatically copy it to it’s proper place in a WPA Supplicant’s config directory /etc/wpa_supplicant/wpa_supplicant.conf

network={
       ssid="YourNetworkSSID"
       psk="Your Network's Passphrase"
       key_mgmt=WPA-PSK
    }

After the reboot, the Pi Zero W should automatically connect to your home WiFi router, get an IP address assigned, and since we have enable SSH on the Zero W, you can SSH to this IP address, and proceed to configure the Pi Zero W as you wish.