Setup Raspberry Pi (headless)

Posted by Sha Cheng on Friday, November 1, 2019

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)

Bonjour

Notepad++

Steps

Install operating system

  1. Plug SD card into computer (Win 10), use BanelaEtcher write Raspbian to micro SD

  2. 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
  3. Eject SD card, plug into Raspberry Pi Zero w, connect the micro USB to computer using USB cable (non-OTG)

Access Pi

Login

  1. Open Putty, enter Host Name “[email protected]”, click button Open

  2. It will ask password for the pi, type “raspberry” + Enter

  3. 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”