Updated: 29/09/2020
I tried to keep the Operating System (OS) setup separate from the Pi Posts else they would be duplicated.
Distributions
There are a few distributions that work on the Pi, the most common is Raspberry Pi OS (previously called Raspbian). A lot of configuration options still use the terminology raspbian
.
For clusters I mostly use Raspberry Pi OS (32-bit) Lite
which is a minimal image based on Debian Buster
, its then mannaged though SSH.
I have used Raspberry Pi OS (32-bit) with desktop
and retropie
just to have a hoon.
- 2020-08-20-raspios-buster-armhf-lite
- Raspios: 2020-08-20-raspios-buster-armhf-full
- Retropie: retropie-buster-4.6-rpi4
Hardware
As I only have two Raspberry Pi 4 Model B’s I set them up as:
node1
(master node)node3
(worker node)
OS Steps (For Cluster)
- Download
Raspberry Pi OS (32-bit) Lite
- 2020-08-20-raspios-buster-armhf-lite. - Install on SD cards with Etcher or any flashing utility.
- Pop in the SD Cards and boot the Pi, allow disk expand and wait for the OS to figure out its life.
- Once at the terminal login as user
pi
and passwordraspberry
. Probably best to update your passwords, meh. - Run
sudo raspi-config
- Config country (4. Localisation Options)
- Rename the Pi’s (2. Network Options)
- Setup Wifi (2. Network Options)
- SSH (5. Interfacing Options). Then finally reboot.
- Install additional software, you dont actually need git unless you plan to pull down nginx-pi-demo and build it yourself.
The other software is just common things I install and use in other posts.
1 | sudo apt-get install git nmap python-mpi4py keychain ansible |