-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
37 lines (28 loc) · 820 Bytes
/
install.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
33
34
35
36
37
#!/bin/bash
# bash -v <(curl -sL https://raw.githubusercontent.com/nrobinson2000/sentry/master/install.sh)
# Install git and pip3
sudo apt update
sudo apt install -y git python3-pip vim motion
# Clone the git repository
git clone https://github.com/nrobinson2000/sentry
cd sentry/cli/
# Install python dependencies
sudo pip3 install -r requirements.txt
# Install udev file to allow non-root access to the USB device
sudo cp 99-sentry.rules /etc/udev/rules.d/
# sudo vim /etc/default/motion
# Change the line to:
# start_motion_daemon=yes
# sudo vim /etc/motion/motion.conf
# Change the following settings:
# daemon on
# videodevice /dev/video2
# width 640
# height 480
# framerate 30
# threshold 1000
# ffmpeg_output_movies off
# stream_quality 90
# stream_motion on
# stream_maxrate 30
# stream_localhost off