Skip to content

Instantly share code, notes, and snippets.

@gilesdring
Last active June 21, 2021 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilesdring/36298de253a1092f4c86058b97e72e89 to your computer and use it in GitHub Desktop.
Save gilesdring/36298de253a1092f4c86058b97e72e89 to your computer and use it in GitHub Desktop.
Setting up a Rasberry Pi

Download Raspbian image

Download the image (or imager for your preferred system).

Add ssh file in root of boot partition to enable headless SSH access. See https://www.raspberrypi.org/documentation/configuration/boot_folder.md for more details.

See also https://www.raspberrypi.org/documentation/configuration/wireless/headless.md for setting up wireless on headless system.

Sign in and change pi password

$ ssh pi@raspberrypi

Default password is raspberry. Change this on first login using the passwd command.

Install docker and docker-compose

Found these instructions to be useful https://devdojo.com/bobbyiliev/how-to-install-docker-and-docker-compose-on-raspberry-pi

In brief:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker pi

Install python3:

sudo apt-get install libffi-dev libssl-dev
sudo apt install python3-dev
sudo apt-get install -y python3 python3-pip

Install docker-compose

sudo pip3 install docker-compose

Fix issue with docker throwing Invalid Signature on build

Update Raspberry Pi libseccomp2 library.

  1. Get latest libseccomp2 from here https://packages.debian.org/sid/armhf/libseccomp2/download (tested on 2.5.1)
  2. Install with sudo dpkg -i libseccomp2_xxxx_armhf.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment