Boot and setup Raspberry Pi OS Lite - henrikstengaard/hstwb-installer GitHub Wiki

This page describes how to boot and setup Raspberry Pi OS Lite.

Network

Configure network LAN or WiFi connection to install software and updates.

LAN

Configure LAN by connecting ethernet cable and Raspberry Pi will automatically get an ip-address from local network DHCP server.

WiFi

Configure WiFi with following steps:

  1. Run sudo raspi-config.

Run raspi-config

  1. Select 1 System Options.

Raspi-config main menu

  1. Select S1 Wireless LAN.

Raspi-config system menu

  1. Select the contry where the Raspberry Pi is located.
  2. Enter SSID.

Raspi-config SSID

  1. Enter passphrase.

Raspi-config passphrase

  1. Exit raspi-config by pressing ESC key twice.

WiFi connection should be ready to use within 10-30 seconds after configuring it.

Test internet connection

Verify internet connection with following command:

ping www.google.com

Ping output should look like this, when internet connection is working:

PING www.google.com (142.250.181.228) 56(84) bytes of data.
64 bytes from fra16s56-in-f4.1e100.net (142.250.181.228): icmp_seq=1 ttl=109 time=43.8 ms
64 bytes from fra16s56-in-f4.1e100.net (142.250.181.228): icmp_seq=2 ttl=109 time=44.0 ms
64 bytes from fra16s56-in-f4.1e100.net (142.250.181.228): icmp_seq=3 ttl=109 time=43.6 ms
64 bytes from fra16s56-in-f4.1e100.net (142.250.181.228): icmp_seq=4 ttl=109 time=43.8 ms
64 bytes from fra16s56-in-f4.1e100.net (142.250.181.228): icmp_seq=5 ttl=109 time=44.0 ms
^C
--- www.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 43.630/43.843/44.002/0.138 ms

Press CTRL + C to stop pinging.

SSH remote connection

Enabling SSH is optional and mostly for convenience as it allows remote connection with copy & paste of commands to run instead of typing them directly on the Raspberry Pi.

It's highly recommended to change the default password with SSH connections enabled and avoid having the Raspberry Pi's ip-address exposed to the internet via NAT routing unless further security measures are configured like firewall autoban of brute force connections and such!

Enable SSH connection with following steps:

  1. Run sudo raspi-config.

Run raspi-config

  1. Select 3 Interface Options.

Raspi-config main menu

  1. Select I2 SSH.

Ping

  1. Select Yes to enable SSH connections.
  2. Exit raspi-config by pressing ESC key twice.

To connect to Raspberry Pi with SSH get ip-address with following steps:

  1. Run ifconfig.
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 14  bytes 1800 (1.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14  bytes 1800 (1.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.150  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 xxxx::xxxx:xxxx:xxxx:xxxx  prefixlen 64  scopeid 0x20<link>
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 70229  bytes 93282038 (88.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20561  bytes 2015384 (1.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Raspberry Pi ip-address is listed as eth0 inet for etnernet connection or wlan0 inet for wifi connection.

Connect to Raspberry Pi with SSH connection on Windows 10, macOS or Linux with following command, if ip-address is 192.168.0.150:

Type yes and enter to continue. This is only required first time SSH connection is made.

Older versions of Windows might have to use PuTTY to connect to Raspberry Pi with SSH.

Update Raspberry Pi OS Software Configuration Tool

Update Raspberry Pi OS Software Configuration Tool to latest version with following steps:

  1. Run sudo raspi-config.

Run raspi-config

  1. Select 8 Update.
    • Wait a few minutes for updates to be downloaded and installed.
  2. Exit raspi-config by pressing ESC key.

Update package lists

To installing software on Raspberry Pi OS it's recommended to download the latest package lists from the repositories and updates them to get information on the newest versions of packages and their dependencies.

Update package lists with following command:

  1. Run sudo apt update.

Update package lists

Update Raspberry Pi OS

Update Raspberry Pi OS to latest version with following command:

  1. Run sudo apt update to update package lists.
  2. Run sudo apt dist-upgrade to start upgrading Raspberry Pi OS.
  3. Run sudo apt clean to remove files downloaded and used for upgrading.
  4. Run sudo reboot to reboot Raspberry Pi OS.
⚠️ **GitHub.com Fallback** ⚠️