ディスプレイなし、キーボードなし、マウスなしでセットアップ Lite-2020-12-02版 Raspberry Pi Zero WH #2/4

ディスプレイなし、キーボードなし、マウスなしでセットアップ Lite-2020-12-02版 Raspberry Pi Zero WH
#1/4 #2/4 #3/4 #4/4
rpi-clone インストール #SD card copier (CUI版 SDコピーツール)
$ sudo apt-get install git #gitのインストール
$ git clone https://github.com/billw2/rpi-clone.git
$ cd rpi-clone
$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin

★ Python関連のインストール 参照
$ python3 –version #バージョン確認 → Python 3.7.3
$ sudo apt-get install python3-rpi.gpio #GPIO ポート
$ sudo apt-get install python3-picamera #picamera カメラ
$ sudo apt-get install python3-pil #PIL 画像処理

★ FFmpeg インストール
$ sudo apt-get install ffmpeg #失敗したら同じコマンドを再発行する
$ffmpeg #バージョン確認 → 4.1.6-1~deb10u1+rpt1

★ lighttpd インストール (Webサーバー)
$ sudo apt-get install lighttpd
$ lighttpd -V #バージョン確認 → 1.4.53
$ systemctl status lighttpd #現サービス起動中を確認

# Webサーバー動作確認(適当なindex.htmlを配置)
http://000006.local/

★ 7z インストール (圧縮・展開ツール)
$ sudo apt install p7zip-full #インストール

★ #3/4 へ続く