情景
- Rapberry Pi 2 一个
- Mac OS X 系统
安装步骤
下载Rapberry Pi 2系统并解压
wget http://downloads.hypriot.com/hypriot-rpi-20151115-132854.img.zip
unzip hypriot-rpi-20151115-132854.img.zip
系统简介
Detailed Features of HypriotOS “Hector”
a modern operating system based on Raspbian Jessie
a recent Raspberry Pi firmware and Device Tree to support a huge range of hardware add-ons
a kernel optimized for Docker-awesomeness: Kernel 4.1.12 with support for OverlayFS
support for Raspberry Pi 1 & 2 with the same SD card image
Docker Engine 1.9.0
Docker Compose 1.5.1
Docker Machine 0.4.1
Docker Swarm 1.0.0
support for network hotplugging
out-of-the-box support for WiFi
support for Avahi (aka mDNS aka Apple Bonjour)
support for Open vSwitch
our own package repository to easily update individual components
检查下载是否正确
shasum -a 256 hypriot-rpi-20151115-132854.img.zip
089bc64fc5f050f263aa65a67fac5fe48f8721c51f8a31f3d96fa426bc04674d hypriot-rpi-20151115-132854.img.zip
准备好一张容量最少4G 的microSD卡. 查找其系统编号
diskutil list
...
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *4.0 GB disk2
1: DOS_FAT_32 NO NAME 4.0 GB
...
这里为/dev/disk2,别看错.
取消挂载
diskutil unmountdisk /dev/disk2
写入系统到 SD 卡,设备名 disk2前有个字母 'r', 这样能加速写入
sudo dd if=hypriot-rpi-20151115-132854.img of=/dev/rdisk2 bs=1m
1430+1 records in
1430+0 records out
1499463680 bytes transferred in 112.464700 secs (13332750 bytes/sec)
sd 卡放在 pi 2上,启动吧.