Skip to content

Instantly share code, notes, and snippets.

@taka-wang
Last active September 2, 2016 04:07
Show Gist options
  • Save taka-wang/fbb253a92731c511e77aae9831f56358 to your computer and use it in GitHub Desktop.
Save taka-wang/fbb253a92731c511e77aae9831f56358 to your computer and use it in GitHub Desktop.
Flash hypriotOS 1.0 image on mac

Guide

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
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
sudo adduser taka
sudo usermod -aG sudo taka
# verify
su - taka
sudo groupadd docker
sudo usermod -aG docker $USER
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

Host    別名
    HostName        主機名
    Port            端口
    User            用戶名
    IdentityFile    密鑰文件的路徑

Example

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

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

Reference

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