Copy the output the last command and paste it into the Set authorized_keys for the 'bot': form field.
Check the Configure wireless LAN box and enter the required form fields.
Select Save
Flash Raspberry PI OS 64-bit to the Micro SD Card
Alternatively setup NVMe boot with NVMe hat
Once the flashing is successful install the Micro SD card into the rpi4, hook up a monitor, mouse, and keyboard and power on the device.
Setup Raspberry Pi SSH config
NOTE
There are two ssh keys involved for this project each for specific access. The key naming pattern used is LocalMachineHostname-RemoteMachineHostname understood as “We log in from Local Machine (the computer in front of us) to the Remote Machine (computer elsewhere)“.
/home/user/.ssh/samsung-github provides GitHub repo access to push commits to the repo
/home/user/.ssh/samsung-rpi4 provides access to Raspberry Pi 4
The contents the of public key samsung-rpi4.pub is copied from the local machine to the /home/bot/.ssh/authorized_keys file of the remote Raspberry Pi 4. ^rpi4-ssh-config
The following notes will guide you setting up the ssh keys such that you may conveniently develop and commit code changes all entirely remotely (i.e Within a Docker Container that is running on the Raspberry Pi)
From your local machine (non-rpi4) open up a terminal and perfrom the following.
Test ssh access ssh <user>@<rpi-local-ip> Use the password you configured in the ^rpi-os-config step
Reserve a static local IP address for within the router’s configuration
Reboot the pi
On host machine: ssh -t <user>@<rpi-local-ip> "reboot"
Test ssh access with machine name
ssh <user>@<hostname>
Add ssh config to host machine ^rpi4-ssh-config
On host machine: xdg-open ~/.ssh/config
Copy-paste the following, this project is using rpi4 as the config-name. Note the identity field uses the key we create earlier ^rpi4-ssh-key
Install Docker on Raspberry Pi OS (64-bit) Debian Bookworm
CAUTION
Installing Docker for Raspberry PI OS (64-bit) Debian Bookworm is not as straight forward at the time this note was authored (2024-11-1). The convenience script for Debian get-docker.sh will not be applicable and manual installation with need tweaking for the targeted OS. The following notes are based on https://docs.docker.com/engine/install/debian/#install-using-the-repository
Open a ssh terminal on the Raspberry Pi 4
ssh <username>@<hostname>
Update APT repos and upgrade packages
sudo apt-get update && sudo apt-get upgrade
Uninstall all conflicting packages
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
If you previously added and updated an incorrect Apt sources (didn’t replace $VERSION_CODE with bookworm) you may get the following error when you attempt to sudo apt install docker packages. See section ^bookworm-apt
The following packages have unmet dependencies:
docker-ce : Depends: iptables but it is not installable
Recommends: pigz but it is not installable
E: Unable to correct problems, you have held broken packages.
This can be corrected by removing the updating the list and retrying the previous sudo apt install command.