必要パッケージ類のインストール
sudo apt install -y python-pip curl libssl-dev libcurl4-openssl-dev libjpeg-dev
基盤ソフトを入れる
sudo apt install -y motion
motioneyeのインストール
sudo pip install motioneye
motionの設定ファイル
mkdir -p /etc/motioneye
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
motionのメディアディレクトリ
mkdir -p /var/lib/motioneye
initスクリプトの追加とmotionEyeサーバ起動
cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye
systemctl start motioneye
motionEyeをアップグレード方法
sudo pip install motioneye --upgrade
sudo systemctl restart motioneye
ブラウザからアクセス方法
http://(インストールしたマシンのIPアドレス):8765/
初回ログイン
Usename: admin
Password: (なし)