- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-01-30T23:56:29+09:00","default:honma","honma")
#author("2020-01-14T14:05:12+09:00","default:honma","honma")
* HDMIなしでrpi3b+セットアップ [#g507877c]
わざわざ、モニターやキーボードを接続せずに、raspberry pi 3b+ を設定する方法
** Raspbianのダウンロード [#h58a7b99]
ダウンロードするイメージは Raspbian Stretch Lite を選択。~
ダウンロードするzipサイズは350Mほど、展開後のサイズは1.8Gになるので、空きサイズは2G以上は必要。
[[Raspbian:https://www.raspberrypi.org/downloads/raspbian/]] から入手する
$ wget --content-disposition https://downloads.raspberrypi.org/raspbian_lite_latest
ダウンロードイメージの確認
$ sha256sum 2018-11-13-raspbian-stretch-lite.zip
47ef1b2501d0e5002675a50b6868074e693f78829822eef64f3878487953234d 2018-11-13-raspbian-stretch-lite.zip
** インストール先の確認 [#g2080117]
$ dmesg | tail
[490240.133830] sd 33:0:0:2: [sdd] Assuming drive cache: write through
[490240.601671] sd 33:0:0:0: [sdb] Attached SCSI removable disk
[490240.642151] sd 33:0:0:4: [sdf] Attached SCSI removable disk
[490240.721755] sd 33:0:0:1: [sdc] Attached SCSI removable disk
[490240.899385] sdd: sdd1
[490241.161290] sd 33:0:0:2: [sdd] Attached SCSI removable disk
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1992852 0 1992852 0% /dev
tmpfs 402808 41652 361156 11% /run
/dev/sda1 41024840 30168624 8749236 78% /
tmpfs 2014036 5700 2008336 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 2014036 0 2014036 0% /sys/fs/cgroup
tmpfs 402808 72 402736 1% /run/user/1000
/dev/sdd1 31395840 32 31395808 1% /media/developer/72AD-201
** アンマウント [#v268a16b]
$ sudo umount /dev/sdd1
** イメージの書き込み [#k8d4faab]
$ unzip 2018-11-13-raspbian-stretch-lite.zip
$ sudo dd bs=4M if=2018-11-13-raspbian-stretch-lite.img of=/dev/sdd status=progress conv=fsync
$ sync
参照:[[Installing operating system images on Linux:https://www.raspberrypi.org/documentation/installation/installing-images/linux.md]]
** SSHで接続 [#vf3cbe1e]
インストールしたSDメディアの1st パーティション(boot)に SSH というファイルを置く
$ touch /media/developer/boot/SSH
$ sync
デフォルトのユーザー名 pi、パスワード raspberryでログインする
※Raspberry PiはRaspberry Pi財団の登録商標です。
#htmlinsert(rpi3b+.html);