RPi or RPi-0W Headless Setup


Download RPi-0W_Headless_Setup.pdf or
Download RPi-0W_Headless_Setup.txt

1. Download the latest images from:
href="https://www.raspberrypi.org/downloads/raspbian>

2. Recommend you do the sha256 check, ie;
# sha256sum <downloaded-zip file>

3. Unzip the files;
# unzip <downloaded-zip file>

4. Transfer the image to the microSD card;
# sudo dd if=2017-09-07-raspbian-stretch.img bs=4M of=/dev/X status=progress

5. umount the micro ssd card and then remount it.

6. # sudo touch /path/to/ssd_card_boot_partition/boot/ssh

7. # nano /path/to/ssd_card/ssd_card/_other_partition/etc/wpa_supplicant/wpa_supplicant.conf
There will be a file there which you need to over write with;

===========================copy below================================

ctrl_interface=DIR=/var/run/wpa_supplicant.conf
update_config=1
country=AU
network={
ssid="Your SSID"
# scan_ssid=1 #Only need this with hidden networks
psk="your_password_for_the_router"
key_mgmt=WPA-PSK
}

network={
ssid="pocketwifi-5746"
psk="your_password_for_the_router"
key_mgmt=WPA-PSK
}

+++++++++++++++++++++++++++++copy above+++++++++++++++++++++++++++

8. Save that file

9. Connect to power

10. Determine the RPi's IP address

11. Connect with # ssh pi@<IP_Address>

12. Change your password, # sudo passwd pi