Last active
October 6, 2016 06:36
-
-
Save raspberrypisig/f235da91ae27392859212c80382e378c 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 | |
wget -O /home/pi/ffmpeg.deb https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb | |
dpkg -i /home/pi/ffmpeg.deb | |
apt-get install -y python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 v4l-utils | |
wget -O /home/pi/motion.deb https://github.com/Motion-Project/motion/releases/download/release-3.4.1/motion_3.4.1raspbianjessierc01-1_armhf.deb | |
dpkg -i /home/pi/motion.deb | |
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 | |
pip install motioneye --upgrade | |
systemctl restart motioneye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment