- 追加された行はこの色です。
- 削除された行はこの色です。
***Raspbian OSのダウンロード [#n94b4342]
[[Download Raspbian for Raspberry Pi>https://www.raspberrypi.org/downloads/raspbian/]] よりダウンロードしておきます。2018/03/21現在:
http://director.downloads.raspberrypi.org/raspbian/images/raspbian-2018-03-14/2018-03-13-raspbian-stretch.zip が最新版のようです。
***ダウンロードと解凍 [#y5cf9c04]
$ curl http://director.downloads.raspberrypi.org/raspbian/images/raspbian-2018-03-14/2018-03-13-raspbian-stretch.zip -O
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1693M 100 1693M 0 0 2476k 0 0:11:40 0:11:40 --:--:-- 3093k
$ ls -lrt 2018-03-13-raspbian-stretch.zip
-rw-r--r-- 1 masatomix staff 1776280071 3 21 17:58 2018-03-13-raspbian-stretch.zip
$ unzip 2018-03-13-raspbian-stretch.zip
Archive: 2018-03-13-raspbian-stretch.zip
inflating: 2018-03-13-raspbian-stretch.img
$ ls -lrt 2018-03-13-raspbian-stretch.img
-rw-r--r-- 1 masatomix staff 4949278720 3 14 08:17 2018-03-13-raspbian-stretch.img
前準備は以上ですね。
***SDカードへのコピー [#kdab9753]
[[Installing operating system images on Mac OS - Raspberry Pi Documentation>https://www.raspberrypi.org/documentation/installation/installing-images/mac.md]] を参考に、MicroSDカードへOSイメージをコピーします。
$ diskutil list
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *62.9 GB disk4
1: DOS_FAT_32 disk 62.9 GB disk4s1
$ diskutil unmountDisk /dev/disk4
Unmount of all volumes on disk4 was successful
$ sudo dd bs=1m if=2018-03-13-raspbian-stretch.img of=/dev/rdisk4 conv=sync
Password:
4720+0 records in
4720+0 records out
4949278720 bytes transferred in 335.308527 secs (14760372 bytes/sec)
$ diskutil list
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *62.9 GB disk4
1: Windows_FAT_32 boot 43.8 MB disk4s1
2: Linux 4.9 GB disk4s2
で、ラズパイにSDを差し込んでブート。
初めはGUIで操作する必要があるので、有線などで繋いで((無線でもいいんすけどSSIDとかメンドクサイですよね))、ラズパイ上で
# sudo raspi-config
5 Interfacing Options Configure connections to peripherals
を選択。
P2 SSH Enable/Disable remote command line access to your Pi using SSH
を選択して、Yes とすると、SSHが起動します。
関連リンク
-[[ラズパイで何かしたい!と思った人のためのまとめ!(1) Raspberry Pi 初級編 | Device Plus - デバプラ>http://deviceplus.jp/hobby/raspberrypi-listicle-01/]]
-[[Raspberry Pi 3の準備 インストールから起動まで - Qiita>https://qiita.com/nabepy/items/40c39de8bbb4446a6613]]