Skip to content

Instantly share code, notes, and snippets.

@Avasz
Last active August 21, 2016 04:13
Show Gist options
  • Save Avasz/7d839d019e7259d69a9264e8a66e7fae to your computer and use it in GitHub Desktop.
Save Avasz/7d839d019e7259d69a9264e8a66e7fae to your computer and use it in GitHub Desktop.
#!/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