Sunday, February 4, 2018

Wifi setup with raspberry pi zero w headless

Trying to start raspberry pi zero but I do not have the micro USB keyboard and mouse but wanted to setup the wifi.

These instructions are while using the memory card on mac.

Solution is when we setup the image we need to put the memory card in the mac and then run the following


HarvarindersMBP:boot hdh$ pwd
/Volumes/boot

touch /Volumes/boot/ssh
touch /Volumes/boot/wpa_supplicant.conf

vi /Volumes/boot/wpa_supplicant.conf

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="SSID"
    psk="password"
    key_mgmt=WPA-PSK
}




Once done then insert the card in the raspberry pi and start it and it will get an ip using wifi.

Done!!!



No comments: