- 追加された行はこの色です。
- 削除された行はこの色です。
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
#contents
**やってみる [#l2cff6cc]
***Raspbian OSのダウンロード [#n94b4342]
[[Download Raspbian for Raspberry Pi>https://www.raspberrypi.org/downloads/raspbian/]] よりダウンロードしておきます。2018/03/21現在:
[[Download Raspbian for Raspberry Pi>https://www.raspberrypi.org/downloads/raspbian/]] よりダウンロードします。2018/03/21現在:
http://director.downloads.raspberrypi.org/raspbian/images/raspbian-2018-03-14/2018-03-13-raspbian-stretch.zip が最新版のようです。
***ダウンロードと解凍 [#y5cf9c04]
$ 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カードへのコピー [#kdab9753]
[[Installing operating system images on Mac OS - Raspberry Pi Documentation>https://www.raspberrypi.org/documentation/installation/installing-images/mac.md]] を参考に、MicroSDカードへOSイメージをコピーします。
[[Installing operating system images on Mac OS - Raspberry Pi Documentation>https://www.raspberrypi.org/documentation/installation/installing-images/mac.md]] を参考に、MicroSDカードへOSイメージをコピーします。Macなら下記の通りでOKです。
$ 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
コピー完了です。
***ラズパイの起動。 [#xbf87116]
ラズパイ先のMicroSDを差し込んでブート。
SSHの起動までは、GUIで操作する必要があるので、キーボードやマウス、HDMIのモニタなどを繋いで、あと有線LANなどを繋いで((無線でもいいんすけどSSIDとかメンドクサイですよね))、ラズパイ上のターミナルで
# sudo raspi-config
ってConfigurationのアプリを起動します。
「5 Interfacing Options Configure connections to peripherals」を選択して「P2 SSH Enable/Disable remote command line access to your Pi using SSH」を選択。
さいごにYes を選ぶとSSHが起動します。
この先はSSHで繋げばよいので、ラズパイは電源だけ繋いでおけばOKですね。
*** ついでに最新化 [#zf98e807]
# sudo apt update
# sudo apt upgrade
*** vncサーバの起動 [#k4437b6e]
# sudo raspi-config
「5 Interfacing Options Configure connections to peripherals」を選択して「P3 VNC Enable/Disable graphical remote access to your Pi using RealVNC」を選択。
さいごにYes を選ぶとSSHが起動します。
で、ラズパイにSDを差し込んでブート。
初めはGUIで操作する必要があるので、有線などで繋いで((無線でもいいんすけどSSIDとかメンドクサイですよね))、ラズパイ上で
*** Locale [#va7e1f00]
# 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が起動します。
関連リンク
「4 Localisation Options Set up language and regional settings to match your location」> 「I1 Change Locale Set up language and regional settings to match your location」> [*] ja_JP.UTF-8 UTF-8
*** Time Zone [#y7b01c87]
VNC上の Preferences > Raspberry Pi Configuration > Localisation > Set Timezone...
で、Asia/Tokyoを選択。
**関連リンク [#r7a62341]
-[[ラズパイで何かしたい!と思った人のためのまとめ!(1) Raspberry Pi 初級編 | Device Plus - デバプラ>http://deviceplus.jp/hobby/raspberrypi-listicle-01/]]
-[[Raspberry Pi 3の準備 インストールから起動まで - Qiita>https://qiita.com/nabepy/items/40c39de8bbb4446a6613]]
----
この記事は
#vote(おもしろかった,そうでもない)
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}