Skip to content

Instantly share code, notes, and snippets.

@roaldnefs
Last active July 25, 2017 18:46
Show Gist options
  • Save roaldnefs/4874ce0bea36854c8224ddff602b6a47 to your computer and use it in GitHub Desktop.
Save roaldnefs/4874ce0bea36854c8224ddff602b6a47 to your computer and use it in GitHub Desktop.
Raspberry PI Zero W headless Raspbian

Start by downloading the latest Raspbian from: raspberrypi.org.

Copy the image to the SD-card:

dd bs=4M if=2017-07-05-raspbian-jessie.img of=/dev/sdX conv=fsync

Mount the SD-card and add the wireless configuration file named wpa_supplicant.conf to the root of the boot partition:

# Network 1
network={
    ssid="SSID1"
    psk="password1"
    key_mgmt=WPA-PSK
}

# Network 2
network={
    ssid="SSID2"
    psk="password2"
    key_mgmt=WPA-PSK
}

Enable SSH on boot by touching the ssh file in the root of the boot partition:

touch ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment