Raspberry PI Setup
Setup SD Card
Step 1: Format SD Card to FAT32
In order to setup your Raspberry PI you will need to setup your SD Card. Plug the SD card into your Mac or connect the SD card reader with the SD card inside.
Method 1 Easy Way
Use piBakery to create a minimum setup for Debian linux.
Method 2 Mac OS Only
Use Disk Utility to simply format the SD Card to MS DOS Fat.
Method 3 Old School Way
We need to format the card to FAT32 : Yes DOS never dies!
Step 2: Copy OS To SD Card
Now we need to find the SD Card by tying the following command:
diskutil list
Find the sd card in the list of drives.
diskutil unmountDisk disk<# of drive>
Download the Raspbian Stretch Lite, unzip it and use the following command to copy the image to the SD Card:
sudo dd bs=1m if=<XXXX-XX-XX-raspbian-stretch-lite>.img of=/dev/rdisk<# of drive> conv=sync
You can use a Control-T to watch the progress. Mount the image and create an empty file at the root called ssh to you can ssh into the newly create image.
Eject the SD Card and plug it into a raspberry pi!
Step 3 Update OS
Find the Raspberry PI on the network and ssh into it. The default user name is pi and the password is raspberry.
sudo apt-get update
sudo apt-get upgrade
Install some handy programs:
sudo apt-get install vim tmux
Step 4 Install Docker
Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
$ sudo apt-key fingerprint 0EBFCD88
pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb) <docker@docker.com>
sub 4096R/F273FCD8 2017-02-22
To also add the edge repository, add edge after stable on the last line of the command.
echo "deb [arch=armhf] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
Update OS:
sudo apt-get update
Install a version of Docker that works on RPI:
sudo apt-get install docker-ce=18.06.0~ce~3-0~debian