pi

Flash new image with built-in docker 1.12 for your pi from mac in 5 minutes.

// Flash hypriot image on mac

1
2
3
4
flash -n pi3-1 -s wifi_ssid -p wifi_pass -d disk3 https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip
flash -n pi3-2 -s wifi_ssid -p wifi_pass -d disk3 https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip
flash -n pi2-1 -s wifi_ssid -p wifi_pass -d disk3 https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip
flash -n pi2-2 -s wifi_ssid -p wifi_pass -d disk3 https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip

Default usename and password

  • username: pirate
  • password: hypriot

// Apply hotfix for docker machine

1
curl -sSL https://github.com/DieterReuter/arm-docker-fixes/raw/master/001-fix-docker-machine-1.8.0-create-for-arm/apply-fix-001.sh | bash

// Add super user

1
2
3
4
sudo adduser taka
sudo usermod -aG sudo taka
# verify
su - taka

// Add docker group

1
2
sudo groupadd docker
sudo usermod -aG docker $USER

// SSH key

1
2
3
4
ssh-copy-id -i ~/.ssh/id_rsa.pub pi3-1.local
ssh-copy-id -i ~/.ssh/id_rsa.pub pi3-2.local
ssh-copy-id -i ~/.ssh/id_rsa.pub pi2-1.local
ssh-copy-id -i ~/.ssh/id_rsa.pub pi2-2.local

Alias

edit ~/.ssh/config

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Host hello
HostName 192.168.1.1
User world
Port 22
IdentityFile ~/.ssh/id_rsa
Host pi1
HostName pi3-1.local
Host pi2
HostName pi3-2.local
Host pi3
HostName pi2-1.local
Host pi4
HostName pi2-2.local

Change prompt

1
2
# edite .bash_prompt
echo "${ORANGE}$USER${RESET}${BOLD}@${PURPLE}$HOSTNAME${RESET}:";

Reference