How to Set Up a Raspberry Pi: Imager, First Boot, and Headless Setup
Share
A Raspberry Pi is a small computer that runs a full operating system, so setting it up is different from flashing a microcontroller. The easiest path is the official Raspberry Pi Imager, which can even pre-configure Wi-Fi and SSH so you never need a monitor. This guide covers both routes. If you are not sure which Pi model or accessories suit your project, Compoden's AI build assistant can take your description and recommend the right board, parts, and a shipped kit.
1. What you need
You need a Raspberry Pi, a microSD card of at least 16 GB, a card reader, and a power supply that matches your model (newer Pi boards use USB-C). For a headless setup you also need your Wi-Fi name and password. If you prefer a screen, add a micro-HDMI cable, a monitor, and a USB keyboard and mouse.
2. Install Raspberry Pi Imager and write the SD card
Download Raspberry Pi Imager from raspberrypi.com and install it on your computer. Insert the microSD card, open Imager, and click Choose Device to pick your Pi model. Click Choose OS and select Raspberry Pi OS, then click Choose Storage and select your card. Do not click Write yet, because the next step lets you pre-configure the Pi.
3. Configure headless SSH and Wi-Fi
Before writing, click the settings gear or click Next, then Edit Settings. Here you can set the hostname, create a username and password, enter your Wi-Fi name, password, and country (choose IN for India), and set your locale. Open the Services tab and enable SSH, choosing password authentication for simplicity. These settings let the Pi join your network and accept remote logins on first boot, with no monitor required. Click Save, then Write, and wait for it to finish.
4. First boot
Eject the card, insert it into the Pi, and connect power. The first boot takes a couple of minutes as the system expands and configures itself, so be patient. If you set up Wi-Fi and SSH in the previous step, the Pi will join your network automatically. If you are using a monitor instead, you will see the desktop appear and can finish setup on screen.
5. Connect over SSH
On your computer, open a terminal (Command Prompt or PowerShell on Windows, Terminal on macOS) and type ssh followed by your username, an @ sign, and the hostname you chose with .local at the end, for example ssh pi@mypi.local. Enter the password you set. The first time, accept the security prompt. You are now logged into your Pi without ever attaching a screen. Run sudo apt update and sudo apt full-upgrade to bring it up to date.
6. Troubleshooting
If ssh cannot find the hostname, give the Pi a minute longer to join Wi-Fi, then try again, or find its IP address from your router and connect to that instead. Double-check the Wi-Fi country was set, as an unset country can stop Wi-Fi from starting. If the card will not boot at all, rewrite it with Imager and confirm your power supply is strong enough, since under-powering causes random failures.
Build it with Compoden's AI
Once your Pi is online, it can run anything from a home media server to a camera project or a small web app. Describe what you want to build to Compoden's AI build assistant and it recommends the Pi model, the camera or sensors you need, the wiring, and starter code, then ships the kit so everything arrives together. Browse Raspberry Pi boards and accessories at /collections/all.
A Raspberry Pi is quick to set up when you let Imager pre-configure Wi-Fi and SSH. Write the card, enter your settings, boot, and connect over SSH. Then let the AI assistant plan and ship your project from Compoden.
Do I need a monitor to set up a Raspberry Pi? No. Use Raspberry Pi Imager to pre-configure your Wi-Fi and enable SSH, then connect remotely on first boot without ever attaching a screen.
Why can my computer not find the Pi over SSH? Give it another minute to join Wi-Fi, confirm you set the correct Wi-Fi country, and if the .local name fails, connect using the Pi's IP address from your router.
What size microSD card should I use? At least 16 GB is sensible, and 32 GB gives comfortable room for the operating system, updates, and project files.