LoginSignup
0
0

More than 5 years have passed since last update.

Raspberry Piインストール方法

Last updated at Posted at 2016-05-19

概要

  • イメージのダウンロード
  • SDカードにイメージを書き込み
  • 初期設定(有線固定IP設定)

また公式マニュアルは下記URLにある。
https://www.raspberrypi.org/documentation/installation/installing-images/mac.md

手順

イメージのダウンロード

下記URLのRASPBIAN JESSIEをダウンロードする。
ダウンロードが終わったらSHA-1が一致するか、sha1sumコマンドで確認する。

ダウンロードが完了したらunzipコマンドで解凍しておく。

イメージの書き込み

  • SDカードのデバイス名を調べる
   diskutil list
  • アンマウントする
   diskutil unmountDisk /dev/disk調べたデバイス名の数字
  • イメージを書き込む

    sudo dd bs=1M if=image.img of=/dev/rdisk調べたデバイス名の数字
    

    ※of=の指定が/dev/diskではなく/dev/rdiskであることに注意。

初期設定

固定IPの設定

/etc/dhcpcd.confに次の行を追加。

static ip_address=固定IP/CIDR
static routers=デフォルトゲートウェイ
static domain_name_servers=DNSサーバ

dhcpクライアントを再起動

sudo service dhcpcd restart

ここまで設定すれば有線LANを使ってSSH接続できる。
ユーザ名はpi、パスワードはraspberry。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0