This tutorial will show you how to install Raspberry Pi operating system Lite for Raspberry Pi version 4. Installing the operating system on Raspberry Pi has become extremely simple with modern tools.

1. Download and Install Raspberry Pi Imager

First, download the Raspberry Pi Imager from the official website: raspberrypi.org. Install and run the program on your computer.

2. Choose the Operating System

Click Choose OS. You can choose the standard Raspberry Pi OS, but for this tutorial, we want the Lite version. Go to Raspberry Pi OS (Other) and select Raspberry Pi OS Lite.

Raspberry Pi OS Lite Selection

Tip: Downloading via the imager can be slow. If you prefer, you can download the image via torrent from the official site and use the Use custom option at the bottom of the OS list to select your downloaded file.

3. Write to MicroSD Card

Insert your MicroSD card into your computer. In the imager, click Choose Storage and select your SD card. Finally, click Write. Note: This will erase all data on the card.

4. First Boot and Login

Once finished, insert the SD card into your Raspberry Pi 4. Connect a keyboard, monitor, and power it up. You will be prompted to login.

The default credentials are:

  • Username: pi
  • Password: raspberry

5. Configuration using raspi-config

Run the configuration tool:

sudo raspi-config

Wireless LAN Setup

Navigate to 1 System Options > S1 Wireless LAN. Select your country, then enter your WiFi SSID and password.

Change Default Password

Go to 1 System Options > S3 Password and set a secure password for the 'pi' user.

Changing Raspberry Pi Password

Enable SSH

Go to 3 Interface Options > P2 SSH and select Yes. This allows you to control your Pi remotely.

Enabling SSH on Raspberry Pi

Expand Filesystem

Go to 6 Advanced Options > A1 Expand Filesystem. This ensures the OS uses the full capacity of your SD card.

Expanding Raspberry Pi Filesystem

Click Finish and reboot.

6. Set Static IP Address

To avoid your Pi's IP address changing, it's best to set a static one. Edit the DHCP configuration:

sudo nano /etc/dhcpcd.conf

Add your configuration at the bottom. Example:

interface eth0
static ip_address=192.168.1.10/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8

interface wlan0
static ip_address=192.168.1.11/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8

7. Remote Access with PuTTY

Download PuTTY. Enter your Pi's static IP and click Open to access the terminal from your PC.

Accessing Raspberry Pi via PuTTY

8. Final Updates

Always keep your system updated:

sudo apt-get update && sudo apt-get upgrade -y