Headless Setup for Raspberry Pi 3 and Raspberry Pi Zero W


This is brief steps to setup a headless Raspberry Pi 3 or Raspberry Pi Zero W (Wireless). No keyboard, mouse, or display required. WiFi is necessary since we’ll access to Raspberry Pi via ssh over WiFi.

 

Contents
– Prerequisites
– Steps
1. Burn Raspbian OS on micro SD card
2. Enable SSH
3. Enable WiFi access
4. Boot up Raspberry Pi board
5. Check Raspberry Pi’s IP address
6. Access to Raspberry Pi via SSH

 

Prerequisites

  • Raspberry Pi board (Pi 3 or Pi Zero W)
  • Micro SD card
  • Micro SD card reader like this (in case your PC doesn’t have SD card slot)
  • Linux PC (for burning OS image, accessing to Raspberry Pi via ssh)
  • Micro USB cable for power supply

 

Steps
1. Burn Raspbian OS on micro SD card
Download Raspbian Image and burn it to micro SD card as usual. I used Raspbian Stretch (0907).

 

2. Enable SSH
Inside of the newly created “Boot” partition on the micro SD card, create an empty file named “ssh”.

 

3. Enable WiFi access
Also, create a file named “wpa_supplicant.conf” with lines below. Note that for <SSID> and <PASSWORD> portion, you need to set your own wifi network name and password.

 

4. Boot up Raspberry Pi board
Eject the micro SD card from PC, insert it into Raspberry Pi board, and boot it up.

 

5. Check Raspberry Pi’s IP address
Find out Raspberry Pi’s IP address in order to access via ssh. I used “nmap” command since I don’t have many devices connected with my wifi network.

Note: You need to specify netmask of your own wifi network.

Output:

 

6. Access to Raspberry Pi via SSH
ssh from PC to the IP address you found out.

 

Sponsor Link

Leave a Reply

Your email address will not be published. Required fields are marked *