Raspberry PI setup

1. Introduction

This document provides a complete end‑to‑end setup guide for Raspberry Pi, including:

  • OS download & installation
  • SSH auto‑enable
  • User, password & hostname configuration
  • Wi‑Fi setup during imaging
  • First‑boot initialization
  • Package updates
  • Networking & static IP
  • Remote access (SSH & VNC)
  • Troubleshooting
  • Maintenance

This guide is suitable for GitHub projects, IT documentation, and technical training.

2. Hardware & Software Requirements

Hardware

  • Raspberry Pi (any model)
  • microSD card (16GB or higher)
  • Power adapter
  • Laptop (Windows/macOS/Linux)
  • Wi‑Fi network or mobile hotspot

Software

  • Raspberry Pi Imager
  • SSH client (Windows Terminal, macOS Terminal, Linux shell)
  • VNC Viewer (RealVNC)

3. Download Raspberry Pi Imager

Download from the official Raspberry Pi website:

https://www.raspberrypi.com/software

4. OS Installation Using Raspberry Pi Imager

4.1 Launch Raspberry Pi Imager

Open the Imager after installation.

4.2 Select Operating System

Choose one of the following:

  • Raspberry Pi OS (32‑bit) — full desktop

4.3 Select Storage

Choose your microSD card.

4.4 Configure Advanced Options

Click the ⚙️ gear icon to open advanced settings.

Enable SSH

  • Enable SSH
  • Allow password authentication

Set Username & Password

  • Username: pi
  • Password: raspberry

Set Hostname

  • Hostname: raspberrypi

Configure Wi‑Fi

  • SSID: your Wi‑Fi or hotspot
  • Password: your Wi‑Fi password
  • Wi‑Fi country: IE (Ireland)

Set Locale

  • Timezone: Europe/Dublin
  • Keyboard: English (UK)

Final Options

  • Eject media when done
  • Play sound when finished

4.5 Write the OS

Click Write → wait until the process completes.

5. First Boot

Insert the SD card → power on the Raspberry Pi.

It will automatically:

  • Connect to Wi‑Fi
  • Enable SSH
  • Apply hostname
  • Apply user/password

6. Find Raspberry Pi IP

Use any of the following:

bash

ping raspberrypi.local

hostname -I

Or check your hotspot device list.

7. SSH Access

7.1 Connect via Hostname

bash

ssh pi@raspberrypi.local

7.2 Connect via IP

bash

ssh pi@172.20.10.3

8. System Update & Upgrade

Run essential updates:

bash

sudo apt update

sudo apt full-upgrade -y

sudo apt autoremove -y

sudo apt clean

9. Install Essential Packages

Basic Tools

sudo apt install -y git curl wget htop

Networking Tools

sudo apt install -y net-tools nmap

Build Tools

sudo apt install -y build-essential

Python Tools

sudo apt install -y python3-pip python3-venv

VNC Tools

sudo apt install -y realvnc-vnc-server realvnc-vnc-viewer

10. Enable VNC Remote Desktop

10.1 Using raspi-config

bash

sudo raspi-config

Navigate: Interface Options → VNC → Enable

10.2 Check VNC Service

bash

sudo systemctl status vncserver-x11-serviced

Start if needed:

bash

sudo systemctl start vncserver-x11-serviced

sudo systemctl enable vncserver-x11-serviced

10.3 Connect via VNC

Use RealVNC Viewer:

  • Address: raspberrypi.local
  • Port: 5900
  • User: pi
  • Password: raspberry

11. Static IP Configuration

Edit DHCP client config:

bash

sudo nano /etc/dhcpcd.conf

Add:

Code

interface wlan0

static ip_address=172.20.10.10/28

static routers=172.20.10.1

static domain_name_servers=8.8.8.8 1.1.1.1

Restart:

bash

sudo systemctl restart dhcpcd

12. Useful Commands

TaskCommand
Check IPhostname -I
Rebootsudo reboot
Shutdownsudo shutdown now
Disk usagedf -h
Memoryfree -h
CPU monitorhtop

13. Troubleshooting

SSH Issues

  • Ensure Pi is powered
  • Ping hostname
  • Try IP directly
  • Reboot Pi

VNC Issues

  • Ensure service is running
  • Try IP instead of hostname
  • Check firewall

14. Maintenance

Firmware Update

bash

sudo rpi-update

Clean Cache

bash

sudo apt clean

Scroll to Top