以下ページの手順をなぞってRaspberry Piを立ち上げる。
Installing operating system images – Raspberry Pi Documentation
https://www.raspberrypi.org/documentation/installation/installing-images/README.md
イメージをダウンロードする
以下のページからダウンロードする。
Download Raspbian for Raspberry Pi
https://www.raspberrypi.org/downloads/raspbian/
2018-11-13-raspbian-stretch.zip
イメージをSDカードに焼く
以下のツールを使う。
balenaEtcher – Home
https://www.balena.io/etcher/
手順は以下の通り。
* Download Etcher and install it.
* Connect an SD card reader with the SD card inside.
* Open Etcher and select from your hard drive the Raspberry Pi .img or .zip file you wish to write to the SD card.
* Select the SD card you wish to write your image to.
* Review your selections and click ‘Flash!’ to begin writing data to the SD card.
Raspberry Piが立ち上がった後の設定はSSH接続してやろうと思っているので、ブートメディアを作る段階でSSHが有効になるように考慮しておく必要がある。手順は以下参照。
A security update for Raspbian PIXEL – Raspberry Pi
https://www.raspberrypi.org/blog/a-security-update-for-raspbian-pixel/
If you want to enable SSH, all you need to do is to put a file called ssh in the /boot/ directory.
The contents of the file don’t matter: it can contain any text you like, or even nothing at all.
システム起動
Raspberry PiにSDを挿入して立ち上げる
LANケーブルを指して、我が家ルーターの管理者ページでDHCPで振られたIPアドレスを調べる。
1 2 3 4 |
Router: Attached Devices - IP Address: 192.168.16.21 - MAC Address: B8:27:EB:XX:XX:XX - Device Name: RASPBERRYPI |
1 2 3 |
$ ping 192.168.16.21 Pinging 192.168.16.21 with 32 bytes of data: Reply from 192.168.16.21: bytes=32 time=7ms TTL=64 |
1 2 3 |
$ ssh 192.168.16.21 Username: pi Password: raspberry |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l 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. SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password. Wi-Fi is disabled because the country is not set. Use raspi-config to set the country before use. pi@raspberrypi:~ $ |
ログインできた。