Prerequisite
Download Raspbian image from link (I used Raspbian Buster Lite zip version, BanelaEtcher can write from zip)
Download BanelaEtcher for writing image to micro SD from link
Micro SD (Samsung 32GB with adapter) link
Install tools in your PC (Windows):
Putty (access Raspberry Pi headless using SSH)
Steps
Install operating system
-
Plug SD card into computer (Win 10), use BanelaEtcher write Raspbian to micro SD
-
Open micro SD, edit/add below files:
- Open config.txt in Notepad++, at the end, type “dtoverlay=dwc2”
- Open cmdline.txt in Notepad++, after “rootwait” (near the end), insert " modules-load=dwc2,g_ether"
- Create new Text Document (right click -> New), rename as “ssh” and remove “.txt” file extension
-
Eject SD card, plug into Raspberry Pi Zero w, connect the micro USB to computer using USB cable (non-OTG)
Access Pi
Login
-
Open Putty, enter Host Name “[email protected]”, click button Open
-
It will ask password for the pi, type “raspberry” + Enter
-
Optional: for better practice, change password by type “passwd”+Enter, and follow the steps
Connect to wifi
Type “sudo raspi-config” -> select Network Options -> Wifi, and follow the steps
Update system and drive
Run following command: “sudo apt update” “sudo apt upgrade” “sudo rpi-update”