Headless Raspberry Pi Configuration Guide

Setting up a Raspberry Pi “headless”—without a monitor, keyboard, or mouse—allows you to get your device up and running using only a network connection and another computer. This guide covers the essential steps to configure a Raspberry Pi completely from scratch, including flashing the operating system, pre-configuring Wi-Fi and SSH access, and finding the device’s IP address on your local network to establish a remote connection.

Preparing the MicroSD Card

The easiest way to configure a headless Raspberry Pi is by using the official Raspberry Pi Imager software on your primary computer. This tool allows you to write the operating system to your MicroSD card while simultaneously injecting your network and access settings.

  1. Insert your MicroSD card into your computer and launch the Raspberry Pi Imager.
  2. Click Choose Device and select your specific Raspberry Pi model.
  3. Click Choose OS and select the recommended Raspberry Pi OS (64-bit) or a Lite version if you do not need a desktop environment.
  4. Click Choose Storage and select your MicroSD card.

Configuring OS Customization Settings

Before writing the OS to the card, you must open the Advanced Options menu to configure the headless settings. In newer versions of the Imager, a prompt will appear asking if you would like to apply OS customization settings after you click “Next”.

Enabling SSH

To control your Raspberry Pi remotely, you must enable the Secure Shell (SSH) protocol. In the customization menu, check the box for Enable SSH and select Use password authentication.

Setting the Username and Password

By default, recent versions of Raspberry Pi OS do not have a default username and password for security reasons. You must define them here. Create a custom username (e.g., pi) and a strong, memorable password.

Configuring Wi-Fi

If you are not connecting the Raspberry Pi directly to your router via an Ethernet cable, you must provide your wireless network credentials.

Once these settings are filled out, save the customization profile and click Write. Wait for the process to complete and verify the card.

Booting the Raspberry Pi

Once the flashing process is complete, eject the MicroSD card from your computer and insert it into the Raspberry Pi.

  1. Connect an Ethernet cable if you opted out of the Wi-Fi configuration.
  2. Plug in the power supply to turn on the Raspberry Pi.
  3. Wait approximately 1 to 2 minutes for the first boot sequence to complete, during which the Pi will automatically configure the file system and connect to your local network.

Finding the Raspberry Pi IP Address

To connect to the Raspberry Pi, you need to know its IP address on your local network. You can discover this using a few different methods:

Connecting via SSH

With the IP address in hand, you can now connect to your Raspberry Pi using a command-line interface from your main computer.

ssh username@IP_ADDRESS

Once logged in, you will have full command-line access to your Raspberry Pi system without ever having attached a physical monitor.