Raspbianのインストール
OSのダウンロード
https://www.raspberrypi.org/downloads/raspbian/
ダウンロードしたら展開してraspbian.img
など簡単に名前をつける
書き込むSDカードの場所を調べる
$ diskutil list
...省略
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.5 GB disk2
1: DOS_FAT_32 15.5 GB disk2s1
SDカードをアンマウントする
$ sudo diskutil unmountDisk /dev/disk2
SDカードに.imgを書き込む
$ sudo dd bs=1m if=raspbian.img of=/dev/disk2
Password:
3125+0 records in
3125+0 records out
3276800000 bytes transferred in 2784.822319 secs (1176664 bytes/sec)
Raspbianのセットアップ
Raspberry pi を探す
raspiにLANケーブル刺す前後にarp -a
とかやって増えたIPが多分raspi
ログインする
$ ssh pi@[Raspberry Piのアドレス]
pi@[Raspberry Piのアドレス]'s password:
Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'
pi@raspberrypi ~ $
ソフトウェアの更新
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo rpi-update
$ sudo reboot
気長に待つ
Avahiをインストール
$ sudo apt-get install avahi-daemon avahi-autoipd
固定IP振りたくないし覚えたくないのでホストネームでSSHできるようAvahiを入れる
最初から入ってるらしい
参照
Raspberry PiにRaspbianをインストールする for Mac OSX
http://qiita.com/ttyokoyama/items/7afe6404fd8d3e910d09
Raspberry Pi 2 に Raspbian Jessie (2015-09-24) をセットアップした。
http://qiita.com/tchisaka/items/e8a2b09c808715dc8515#samba-%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB