How to Set Up and Install a Raspberry Pi (Beginner Guide)

Raspberry Pi Setup Home Lab Beginner Linux

Setting up a Raspberry Pi is one of the easiest and most rewarding ways to learn Linux, build home‑lab projects, or start automating your home network.
This guide walks you through everything from opening the box to having a fully working Pi ready for projects like Pi-hole, Home Assistant, or your own scripts.


1. What you need

Hardware

  • Raspberry Pi (Pi 3, 4, 5, or Zero 2 W)
  • microSD card (16 GB or larger)
  • microSD card reader
  • Power supply for your Pi
  • HDMI cable (optional)
  • USB keyboard + mouse (optional)
  • Ethernet cable (recommended) or Wi‑Fi

Software (free)

  • Raspberry Pi Imager
  • Raspberry Pi OS Lite (recommended) or Desktop

2. Download Raspberry Pi Imager

Download from the official site:

https://www.raspberrypi.com/software/

Install and open the app.


3. Flash Raspberry Pi OS to the SD card

  1. Open Raspberry Pi Imager
  2. Click Choose OS
    • Select: Raspberry Pi OS (other)
    • Choose: Raspberry Pi OS Lite (64‑bit)
      (best for servers like Pi-hole)
  3. Insert your microSD card
  4. Click Choose Storage and select your SD card
  5. Press ⚙️ Settings (critical step)

Enable:

  • Set hostname: raspberrypi
  • Enable SSH: password or SSH key
  • Set username and password:
    • Username: pi
    • Password: (your choice)
  • Configure Wi‑Fi (if not using Ethernet)
  • Set locale (Canada/US)

Click Save → Write → Yes

This takes 1–3 minutes.


4. Insert SD card and power on the Pi

Remove the SD card safely, insert it into the Pi, and plug in the power.

If connected to Ethernet, your Pi will automatically join your network.


5. Find the Pi’s IP address

Option A — Router device list (best)

Log in to your router (Bell: 192.168.2.1)
Look for a device named:

raspberrypi

Option B — Use network scanner app

  • Fing (iOS/Android)
  • Angry IP Scanner (desktop)

Option C — From a monitor + HDMI

The IP will be shown on boot.


6. SSH into the Raspberry Pi

From Mac/Linux:

ssh pi@<PI_IP_ADDRESS>

From Windows:

ssh pi@<PI_IP_ADDRESS>

Accept the fingerprint and enter your password.

You’re now inside the Pi.


7. Update the system

Always update immediately:

sudo apt update && sudo apt upgrade -y

This ensures all packages, drivers, and firmware are fresh.


8. Essential configuration

Open the Pi configuration tool:

sudo raspi-config

Set:

  • Timezone
  • Keyboard layout
  • Expand filesystem (if needed)

Finish and reboot:

sudo reboot

9. Optional: Change hostname

sudo hostnamectl set-hostname mypi
sudo reboot

sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure --priority=low unattended-upgrades

The Pi will now quietly update itself.


11. Optional but useful installs

Git

sudo apt install git -y

Python tools

sudo apt install python3-pip -y

Docker (for advanced users)

curl -fsSL https://get.docker.com | sudo sh

12. Shutdown and reboot commands

Reboot:

sudo reboot

Shutdown:

sudo poweroff

13. Your Pi is ready 🎉

You now have a fully configured Raspberry Pi capable of:

  • Running Pi-hole
  • Hosting web apps
  • Running automation scripts
  • Acting as a mini home server
  • Running Docker containers
  • Monitoring your network
  • Hosting files or dashboards

In the next guide, I’ll cover:

  • How to run Pi-hole + Unbound on the same Pi
  • How to back up your Pi using Git
  • How to turn your Pi into a Home Assistant server

Your home lab journey starts here 🚀