Install Raspberry Pi OS - henrikstengaard/hstwb-installer GitHub Wiki

Install Raspberry Pi OS with following steps:

  1. Prepare Micro-SD card with Raspberry Pi OS:
  2. Boot and setup Raspberry Pi OS.

Prepare Raspberry Pi OS by writing to storage device (Micro-SD) using method described below.

Raspberry Pi Imager

Download and install Raspberyr Pi Imager with following steps:

  1. Open https://www.raspberrypi.com/software/ in browser.

Download Raspberry Pi Imager

  1. Download and install Raspberry Pi Imager for your operating system: Windows, macOS or Linux.

Download and install Raspberyr Pi Imager with following steps:

  1. Start Raspberry Pi Imager

Main menu

  1. Click "CHOOSE OS".

Choose OS

  1. Click "Raspberry Pi OS (other)".

Choose Raspberry Pi OS

  1. Click "Raspberry Pi OS Lite (32-bit)".

Choose Raspberry Pi OS Lite

  1. Click "CHOOSE STORAGE".

Choose storage

  1. Click storage device.

Ready to write

  1. Click "Write" to start writing Raspberry Pi Lite OS to storage device.

Erase warning

  1. Click "YES" to continue.

Writing Raspberry Pi OS Lite

  1. Wait for Raspberry Pi Imager to finish writing.
  2. Eject storage device.
  3. Insert storage device in Raspberry Pi and power on Raspberry Pi.

Login

Raspberry Pi OS Lite is configured with a default user pi and password raspberry.

Login to Raspberry Pi OS with following steps:

  1. Enter username pi
  2. Enter password raspberry.

Raspberry Pi OS login

It's recommended to change the default password for security reasons with following steps:

  1. Type passwd and press enter.
  2. Enter current password and press enter.
  3. Enter new password and press enter.
  4. Enter new password again and press enter.

Change default password

Network

Configure network LAN or WiFi connection to install updates and HstWB Installer.

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-get update.
    • Wait a few seconds for package lists to be updated.

Update package lists

⚠️ **GitHub.com Fallback** ⚠️