Using k3s on Raspberry Pi: Installing Raspbian
I downloaded Raspbian Buster Lite from the official site and wrote it to the SD cards (using
Then I configured the card for headless SSH access (
Then, one at a time, for each Raspberry Pi, I put the SD card in each Raspberry Pi and turned it on. This allowed me to discover the IP address (by seeing the new IP address appear on my router).
Then I configured them:
ssh-copy-id email@example.com # or whatever IP ssh firstname.lastname@example.org echo 'rpi201' | sudo tee /etc/hostname sudo shutdown -r now
Repeat the above, changing the hostname, for each Raspberry Pi.
Then update and configure each of them:
ssh pi@rpi201 # or whatever sudo apt-get update sudo apt-get -y upgrade sudo apt-get install raspi-config sudo raspi-config # ^^ set graphics memory split to 16M sudo apt-get install vim-nox sudo vi /boot/cmdline.txt # ^^ add the following: # cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory sudo shutdown -r now
To save myself a bunch of typing, I mostly did the above by using