Headless Raspberry Pi Projects Without Monitor or Keyboard
In this article
Yes, you can run a Raspberry Pi with no monitor, mouse, or keyboard by setting it up as a “headless” system and controlling it over your network via SSH, VNC, or web-based tools. This guide explains the essential projects, setup methods, and troubleshooting for headless Pi use.
What “Headless” Means and Why It’s Useful
A headless Raspberry Pi is one that runs without a directly attached display, keyboard, or mouse. Instead, you connect to it from another computer (Windows, Mac, Linux, or even a phone) over your local network or the internet. This saves desk space, reduces power draw, and lets you tuck the Pi into a closet, behind a TV, or inside a custom enclosure.
Common headless uses include:
- Network-wide ad blocking with Pi-hole
- Home automation hub (Home Assistant, openHAB)
- Network-attached storage (NAS) or file server
- Print server for older non-network printers
- VPN gateway or firewall
- Retro gaming console accessed via browser or VNC
- Weather station that logs data and serves a web page
- Security camera with motion detection and web streaming
Most Raspberry Pi models support headless operation, including the Pi Zero, Pi 3, Pi 4, and Pi 5. The Pi Zero 2 W and Pi 4/5 are popular choices because they include built-in Wi-Fi and Bluetooth, making network setup easier.
How to Set Up a Headless Raspberry Pi
The modern Raspberry Pi OS (formerly Raspbian) includes a headless setup option. You’ll need a microSD card (8 GB minimum, 16 GB or larger recommended), a way to write the OS image to it (like the Raspberry Pi Imager software on another computer), and a power supply.
- Download and install Raspberry Pi Imager on your main computer.
- Choose your Raspberry Pi model and select the OS (e.g., Raspberry Pi OS Lite for minimal footprint, or the full desktop version if you plan to use VNC later).
- Click the gear icon (advanced options) before writing the image. Here you can enable SSH, set a username and password, and configure Wi-Fi credentials.
- Write the image to the SD card, then insert it into the Pi and power it on.
- Find the Pi’s IP address from your router’s admin page or a network scanner app.
- Connect via SSH from your computer: on Windows use PowerShell or PuTTY; on Mac/Linux use the terminal command
ssh pi@192.168.x.x(replace with your Pi’s IP).
If you’re using an older OS image that doesn’t have the Imager’s advanced options, you can manually create a file named ssh (no extension) in the boot partition of the SD card to enable SSH. For Wi-Fi, create a wpa_supplicant.conf file with your network details.
Essential Headless Projects
Here are some of the most practical headless projects, each with its own web interface or command-line control:
- Pi-hole – Network-wide ad blocker. Install with a one-line script, then access the dashboard at
http://pi-ip/admin. It filters DNS requests and blocks ads for every device on your network. - Home Assistant – Smart home hub. Install the Home Assistant OS image, then connect to its web interface at
http://pi-ip:8123. It integrates with hundreds of smart devices. - NAS with Samba – Turn your Pi into a file server. Install Samba, configure shared folders, and access them from any computer on your network. You can also use OpenMediaVault for a more polished web-based NAS.
- PiVPN – Set up a WireGuard or OpenVPN server. After installation, you manage it via command line and connect from your phone or laptop remotely.
- MotionEyeOS – Security camera system. Flash the dedicated OS, then view live streams and recordings from a web browser.
- MagicMirror – A smart mirror that displays calendar, weather, and news. It runs headless and displays on a monitor behind a two-way mirror, but you can also access it remotely via VNC.
Each project has official or community documentation that walks you through installation. Most only require copying a few commands into the SSH terminal.
Choosing the Right Pi Model and OS
For headless use, the Pi Zero 2 W is a low-cost, low-power option ideal for Pi-hole, small web servers, and simple automation. The Pi 4 or Pi 5 offers more RAM (2-8 GB) and faster CPU, better suited for heavier tasks like Home Assistant with many integrations, or a NAS with multiple users.
Your choice of OS matters too:
- Raspberry Pi OS Lite – No desktop, minimal footprint, uses less memory and storage. Best for headless servers.
- Raspberry Pi OS with Desktop – Includes a graphical environment if you later want to use VNC for remote desktop.
- Dedicated OS images – Some projects (like Home Assistant OS, MotionEyeOS, and OctoPrint for 3D printers) offer their own pre-configured images that are headless from the start.
If you’re unsure, start with Raspberry Pi OS Lite and add only what you need. This reduces attack surface and improves performance.
Connecting Without a Monitor: SSH, VNC, and Web Interfaces
SSH is the primary method for headless control. It gives you a command-line terminal where you can run any command, edit files, and install software. For graphical access, VNC (Virtual Network Computing) lets you see the Pi’s desktop on your computer. Enable VNC in Raspberry Pi OS via raspi-config, then connect with a VNC viewer like RealVNC or TightVNC.
Many headless projects provide their own web interface, which is even easier. For example, Pi-hole, Home Assistant, and OctoPrint all have browser-based dashboards. You can also install a web-based file manager or terminal (like Cockpit) for system administration.
To find your Pi’s IP address without a monitor, check your router’s DHCP client list, or use a network scanner like nmap or the Fing app. On many home networks, you can also try raspberrypi.local as a hostname (if mDNS/Bonjour is enabled).
Common Problems and How to Fix Them
Headless setups can hit a few snags. Here are the most common:
- Can’t SSH in – Ensure SSH is enabled (the
sshfile exists on the boot partition). Check that your Pi and computer are on the same network. Try pinging the Pi’s IP. - Wi-Fi doesn’t connect – Double-check your SSID and password in the
wpa_supplicant.conffile. Make sure you’re using the correct country code (e.g.,country=US). - IP address changes – Set a static IP in your router’s DHCP reservation, or configure a static IP on the Pi itself in
/etc/dhcpcd.conf. - Forgot password – Re-image the SD card (you’ll lose data) or, if you have physical access, you can edit the
cmdline.txtfile to boot into single-user mode, but that’s advanced. - Pi runs hot – Headless Pis often run 24/7. Add a heatsink or fan, and ensure proper ventilation. The Pi 5 especially benefits from active cooling.
Always use a quality power supply (5V/2.5A or 5V/5A for Pi 5) to avoid under-voltage warnings and random reboots.
Costs and Safety Considerations
A headless Raspberry Pi setup is relatively inexpensive. The Pi Zero 2 W costs around $15, the Pi 4 (2 GB) around $35, and the Pi 5 (4 GB) around $60. Add an SD card ($5-15), a power supply ($8-12), and optionally a case ($5-10). If you already have a computer to configure the SD card, no other hardware is needed.
Safety-wise, the Pi runs on low voltage (5V) and is generally safe. However, if you use a third-party power supply, ensure it meets the Pi’s current requirements. Avoid covering the Pi in a way that blocks airflow, and never leave it on a flammable surface. For outdoor projects, use a weatherproof enclosure and proper surge protection.
When exposing your Pi to the internet (e.g., for remote access), use strong passwords, keep the OS updated, and consider using a VPN instead of opening ports directly.
Frequently Asked Questions
Do I need a monitor for the first boot?
No. If you enable SSH and Wi-Fi in the Raspberry Pi Imager before writing the SD card, the Pi will boot headless and be accessible over the network. You never need a monitor or keyboard.
Can I use a Raspberry Pi headless without Wi-Fi?
Yes, you can use an Ethernet cable for a wired connection. The setup is the same, but you don’t need to configure Wi-Fi. The Pi will get an IP address from your router via DHCP.
How do I access my headless Pi from outside my home network?
You can use SSH port forwarding on your router, but a safer approach is to set up a VPN (like PiVPN) or use a cloud-based remote access service like Tailscale or ZeroTier. These create a secure tunnel without exposing your Pi directly to the internet.
Can I use a headless Pi for gaming?
Yes, but not for local multiplayer on a TV. You can run retro emulators (like RetroPie) and stream the video to another device via VNC, or use services like Moonlight to stream from a gaming PC. For a dedicated retro console, you’d typically attach a monitor and controller, but headless streaming is possible.
What’s the difference between headless and “normal” Raspberry Pi use?
Headless means no direct display or input devices. Normal use includes a monitor, keyboard, and mouse connected directly. Headless is more efficient for servers, automation, and projects that run in the background. You can always switch later by plugging in a monitor.
Can I use a headless Pi as a desktop replacement?
Not in the traditional sense, but you can use VNC to access the full desktop remotely. Performance will depend on your network and the Pi model. For basic web browsing and office tasks, a Pi 4 or 5 with 4 GB RAM is usable, but it’s not a substitute for a high-end PC.