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]!

  1. Use Raspberry Pi Imager to flash a micro SD card with Raspberry Pi OS
  2. Create emtpy file in flash root called ssh. RPi OS sees this and enables SSH with password logins.
  3. 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"
    }
  4. SSH into raspberrypi.local using username pi and passwrod raspberry.

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