This repository contains all it needs to prepare a Raspberry Pi Zero W so that it can be accessed via SSH over Wifi without a screen.
The following instructions are for Raspberry Pi OS Buster versions only. Config files from older and newer versions are different.
Important UPDATE: Doesn't work anymore from Raspberry Pi OS Bullsye on, because the user "pi" is no longer installed by default and therefore no access via SSH works. Temporary solution: For this, the "Raspberry Pi Imager" must be installed - This allows the configuration of a user when writing the image to an SD card.
- Get the latest Raspberry Pi OS (previously called Raspbian) image: raspberrypi.org
- Get Etcher.io to format the SD card and flash the Raspberry Pi OS image onto it
- Install Etcher and flash the image to the SD card.
- Remove and reinsert the SD card. You should now see the partition labeled with 'boot'
- On the root of the partition 'boot', create a file named shh (e.g. Terminal: 'touch ssh')
- Create another file 'wpa_supplicant.conf' (e.g. Terminal: 'touch wpa_supplicant.conf')
- With the use of your preferred texteditor (e.g. nano), edit the file 'wpa_supplicant.conf' as described below:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
country=DE
update_config=1
network={
ssid="Name of the WiFi Network"
psk="Password of the WiFi Network"
key_mgmt=WPA-PSK
}
Edit:
- country=YOUR_ISO_COUNTRY_CODE -- can be found on Wikipedia
- ssid=
- psk
Save the file.
- Eject the SD card, put it in the Pi and boot the device. Your Raspberry Pi Zero W should now connect to your WiFi with SSH enabled to connect to.