-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-motion.sh
32 lines (25 loc) · 1.63 KB
/
install-motion.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Update image
apt-get update
# Install packages
apt-get install -y wget tar nano motion libjpeg62
# Download sources
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libavcodec.so.53
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libavformat.so.53
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libavutil.so.51
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libdirac_encoder.so.0
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libgcrypt.so.11
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libgnutls.so.26
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libopenjpeg.so.2
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/librtmp.so.0
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libtasn1.so.3
wget -P /usr/lib/arm-linux-gnueabihf https://github.com/remonlam/rpi-docker-motion/raw/master/libs/libx264.so.123
# Remove old config file
rm -rf /etc/default/motion
# Download config file
wget -P /etc/default https://raw.githubusercontent.com/remonlam/rpi-docker-motion/master/motion
# Remove old motion config
rm -rf /etc/motion/motion.conf
# Download motion config file
wget -P /etc/motion https://raw.githubusercontent.com/remonlam/rpi-docker-motion/master/motion.conf
# Do some clean-up
apt-get clean