Skip to content

Instantly share code, notes, and snippets.

@hypriot
Last active November 22, 2016 23:22
Show Gist options
  • Save hypriot/91025895144bdbcbf987 to your computer and use it in GitHub Desktop.
Save hypriot/91025895144bdbcbf987 to your computer and use it in GitHub Desktop.
Prepare your Raspberry Pi for Docker

Download our SD card image

wget http://assets.hypriot.com/hypriot-rpi-20150301-140537.img.zip

If prefer to download it using your browser, click here to download the Hypriot SD card image.

Unzip the image file

unzip hypriot-rpi-20150301-140537.img.zip

You don't want to use the command line to unzip it? In Windows, just right-click on the downloaded folder and choose "Extract all". In Mac OS X, just double-click on the downloaded folder.

Identify your SD card

From here we will explain the required steps for Mac OS X exclusively. If you are running Windows or Linux, please follow this guide to flash your SD card. Afterwards proceed at chapter "Unmount your SD card" further down.

diskutil list

List Disks

Make sure to unmount your disk first

diskutil unmountdisk /dev/disk4

unmounted

Flash the image to SD card

Replace the target device behind 'of=' with your own.

sudo dd if=hypriot-rpi-20150301-140537.img of=/dev/mmcblk0

dd started

When it is finished, it will look like this: dd finished

Unmount your SD card from your computer and insert it into your Raspberry Pi

Power on the Pi and get a coffee as the first boot will take a little longer as it resizes the file system to its maximum and reboots again.

Login via SSH

Use 'hypriot' for the password.

ssh [email protected]

If you are not sure about the IP-Address of your PI there are different ways of finding it out. One way is to use nmap which you might need to install first. Replace the network adress/CIDR with yours.

nmap -sP 192.168.0.0/24 | grep black-pearl
@miekg
Copy link

miekg commented May 24, 2015

using a diff. hostname for your pi (I have three) is hard to do if you don't know about
/boot/occidentalis.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment