Skip to content

4 Ways to Set Up a Headless Raspberry Pi

green and black circuit board

If you’ve ever worked with a Raspberry Pi and seen the term “headless”, you might have wondered what that actually means — and how to set it up.

A headless Raspberry Pi is simply a Pi running without a monitor, keyboard, or mouse attached. Instead, you access it remotely over Ethernet or Wi-Fi. It’s still fully functional, just controlled from another device.

Thanks for Gary Explains for his great vide on the subject. This guide is based on his video. Here are four different ways to set up and access a headless Raspberry Pi:

  1. Raspberry Pi Connect
  2. Secure Shell (SSH)
  3. VNC (Remote Desktop)
  4. KVM (Keyboard, Video, Mouse over USB)

Let’s start at the beginning.


Step 1: Prepare the SD Card with Raspberry Pi Imager

Everything begins with the Raspberry Pi Imager, the official tool for creating bootable Raspberry Pi SD cards.

1️⃣ Select Your Device and OS

  • Choose your Raspberry Pi model (e.g., Raspberry Pi 5).
  • Select an OS — typically:
    • Raspberry Pi OS (64-bit)

There are other options available, but Raspberry Pi OS is the standard choice.

2️⃣ Choose Your SD Card

Select your SD card (for example, 32GB).

3️⃣ Configure Advanced Options (Very Important!)

Before writing the image, open the advanced settings (gear icon). This is where you configure everything needed for a headless setup:

✅ Set Hostname

Example: pi5

✅ Create Username and Password

This is critical. You’ll need these credentials for remote login.

✅ Configure Wi-Fi (if not using Ethernet)

Enter:

  • SSID (Wi-Fi network name)
  • Wi-Fi password

If you’re using Ethernet, you can skip this step.

✅ Enable SSH

Enable SSH and choose password authentication.

✅ Enable Raspberry Pi Connect

Activate Raspberry Pi Connect and generate an authentication token.

Once everything is configured, write the SD card.


Boot the Raspberry Pi

  1. Insert the SD card into your Pi.
  2. Connect power.
  3. Wait 1–2 minutes for the first boot.

Your Raspberry Pi is now running headless.

Now let’s connect to it.


Method 1: Raspberry Pi Connect (Browser-Based Access)

The easiest method is Raspberry Pi Connect.

How to Connect:

  1. Open your browser.
  2. Go to: https://connect.raspberrypi.com
  3. Log in.
  4. Select your device.
  5. Choose Screen Sharing.

Within seconds, your Raspberry Pi desktop appears in your browser.

✔ No monitor needed
✔ No keyboard needed
✔ Works over Wi-Fi
✔ Full graphical desktop

This is by far the simplest method for beginners.


Method 2: SSH (Secure Shell – Command Line Only)

If you only need command-line access, SSH is lightweight and powerful.

From:

  • Windows (PowerShell)
  • macOS (Terminal)
  • Linux (Terminal)

Run:

ssh gary@pi5

You’ll be prompted to confirm the connection and enter your password.

✔ Fast
✔ Minimal resource usage
✔ Perfect for servers or automation

But it’s command-line only, no desktop.


Method 3: Enable and Use VNC (Remote Desktop)

Image

If you connected via SSH but want a full desktop, you can enable VNC.

Enable VNC on the Pi

Run:

sudo raspi-config

Navigate to:

Interface Options → VNC → Enable

Exit and finish.

Connect Using a VNC Viewer

Download and install a VNC viewer such as:

  • RealVNC Viewer
  • TigerVNC Viewer

Then:

  1. Enter your hostname (e.g., pi5)
  2. Enter username and password
  3. Connect

You now have full graphical access to your Pi.

✔ Full desktop
✔ Works over local network
✔ Great balance of control and usability


Method 4: Use a KVM (Hardware-Based Access)

The final option is a KVM (Keyboard, Video, Mouse) device.

A USB-based KVM:

  • Connects to your laptop
  • Connects to your Raspberry Pi via USB (keyboard/mouse emulation)
  • Connects via HDMI for video

This allows you to:

✔ Access the Pi without separate monitor/keyboard
✔ Control it directly through your main computer
✔ Use it even without network setup

This method is especially useful for:

  • Troubleshooting
  • Initial setup
  • Network issues

Which Method Should You Use?

MethodDesktop AccessRequires NetworkBest For
Raspberry Pi Connect✅ Yes✅ YesEasiest setup
SSH❌ No (CLI only)✅ YesServers, automation
VNC✅ Yes✅ YesLocal desktop access
KVM✅ Yes❌ NoHardware troubleshooting

Final Thoughts

A headless Raspberry Pi is incredibly flexible. Whether you want:

  • A lightweight server
  • A remote development machine
  • A home automation hub
  • Or just a clean setup without extra cables

There’s a method that fits your workflow.

For most people:

  • Raspberry Pi Connect is the easiest.
  • SSH is the most efficient.
  • VNC gives full graphical control.
  • KVM is the ultimate fallback.

Once you understand these four methods, you’ll never need to plug a monitor into your Raspberry Pi again!