Headless Setup for Raspberry Pi 3 and Raspberry Pi Zero W


This is an initial setup steps to create a headless Raspberry Pi 3 or Raspberry Pi Zero W (Wireless). It enables access to Raspberry Pi’s console without having a dedicated keyboard, mouse, or display. A PC and Wi-Fi network is required since we’ll access to the console from PC using ssh over Wi-Fi.

 

Contents
– Prerequisites
– Steps
1. Burn Raspbian OS on micro SD card
2. Enable SSH
3. Enable Wi-Fi 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)
  • PC (for burning the OS image, accessing to Raspberry Pi via ssh)
  • Micro USB cable for power supply

 

Steps
1. Burn Raspbian OS on micro SD card
Follow the official instruction to prepare OS image in a SD card.

 

2. Enable SSH
2-1. After finishing writing OS image, open the created “boot” partition.

2-2. Create an empty file with name “ssh”.

 

3. Enable Wi-Fi access
In the same partition, create a file named “wpa_supplicant.conf” with lines below. Please replace <SSID> and <PASSWORD> with your own Wi-Fi network name and password.

 

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

4-2. Connect Micro USB Power Cable and boot Raspberry up.

 

5. Check Raspberry Pi’s IP address
Find out Raspberry Pi’s IP address to access via ssh. I used “nmap” command on Linux PC.

Note: You need to specify netmask of your own Wi-Fi 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 *