How To Setup Raspberry Pi Zero W Headless WiFi - From Windows

in #raspberry9 years ago (edited)

This is also the same procedure for the normal Raspberry Pi.

First off for those who don't know "Headless" means no monitor, keyboard or mouse. So the only access you have to your setup
would be SSH using Putty or something similar ( I prefer MobaXterm ) over a network and in this case WIFI.

Setting up a headless Raspberry Pi for a first time Pi user can be frustrating especially if you are new to Linux.
To setup basically we need to have an image written to a SD Card and plugged into a PC, navigate to the USB card reader it should be called "Boot"

Step 1. Now right click "create new -> text document"
create-new-txt-doc.JPG

Step 2. Rename it to wpa_supplicant.conf
rename-file.JPG

Step 3. Add Network Details - while changing to YOUR actual SSID (wifi network name) and WIFI password.

network={
ssid="YOUR-SSID"
psk="YOUR-WIFI-PASSWORD"
key_mgmt=WPA-PSK
}


If your Pi does not connect to the network add this to the top of wpa_supplicant file, but change to your country code.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AU
network={
ssid="YOUR-SSID"
psk="YOUR-WIFI-PASSWORD"
key_mgmt=WPA-PSK
}


edit-file-contents.JPG

Congratulations your done!

On the first boot the contents of this file will be copied into /etc/wpa_supplicant/wpa_supplicant.conf and then deleted

SSH?

While we are here we may as well setup SSH right? Simple in the same directory create a text document and call it "ssh" and remove the .txt from the filename.

save-as-ssh.JPG

If you cannot see filename extension click "View -> then check the box Filename extensions" in the top right.
filename-extensions.JPG

Done Again!
Peace

Sort:  

Following you! +UP

Congratulations @wizzle! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.088
BTC 61297.41
ETH 1704.74
USDT 1.00
SBD 0.38