Raspbian OSのダウンロード

Download Raspbian for Raspberry Pi よりダウンロードしておきます。2018/03/21現在:

http://director.downloads.raspberrypi.org/raspbian/images/raspbian-2018-03-14/2018-03-13-raspbian-stretch.zip が最新版のようです。

ダウンロードと解凍

$ 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カードへのコピー

Installing operating system images on Mac OS - Raspberry Pi Documentation を参考に、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で操作する必要があるので、有線などで繋いで*1、ラズパイ上で

# 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 無線でもいいんすけどSSIDとかメンドクサイですよね

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS