Raspberry Pi Notes
Setup Headless Wifi Mode
In headless mode you don't need to attach a monitor or keyboard/mouse to your Pi. Just SSH into it [Ref]!
- Use Raspberry Pi Imager to flash a micro SD card with Raspberry Pi OS
- Create emtpy file in flash root called
ssh
. RPi OS sees this and enables SSH with password logins. - Create file
wpa_supplicant.conf
in flash root. Add contents:country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ scan_ssid=1 ssid="your_wifi_ssid" psk="your_wifi_password" }
- SSH into
raspberrypi.local
using usernamepi
and passwrodraspberry
.
Install Docker
Since Raspbian Jesse installing Docker is as easy as [Ref]:
curl -fsSL https://get.docker.com | sudo sh # Get offical Docker install script and run it sudo ./get-docker.sh # Create the docker group sudo groupadd docker # Add user to the docker group su -s ${USER} # Log out and log back in so that group membership is re-evaluated sudo usermod -aG docker ${USER} # Add non-root user to docker group. Default user is "pi" on RPi OS. sudo shutdown -r now # For some reason YOU HAVE TO REBOOT!
Later, to upgrade Docker, don't re-run the script, just do:
sudo apt-get upgrade
If you ever need to uninstall your Docker install do:
sudo apt-get purge docker-ce docker-ce-cli sudo rm -rf /var/lib/docker