Last active
August 21, 2016 04:13
-
-
Save Avasz/7d839d019e7259d69a9264e8a66e7fae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install deb-multimedia-keyring | |
apt-get update | |
apt-get install -y motion ffmpeg v4l-utils python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev | |
pip install motioneye | |
mkdir -p /etc/motioneye | |
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf | |
mkdir -p /var/lib/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment