|
|
@ -21,6 +21,14 @@ $STD apt-get install -y git |
|
|
|
$STD apt-get install -y cifs-utils |
|
|
|
$STD apt-get install -y cifs-utils |
|
|
|
msg_ok "Installed Dependencies" |
|
|
|
msg_ok "Installed Dependencies" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Updating Python3" |
|
|
|
|
|
|
|
$STD apt-get install -y \ |
|
|
|
|
|
|
|
python3 \ |
|
|
|
|
|
|
|
python3-dev \ |
|
|
|
|
|
|
|
python3-pip |
|
|
|
|
|
|
|
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED |
|
|
|
|
|
|
|
msg_ok "Updated Python3" |
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Motion" |
|
|
|
msg_info "Installing Motion" |
|
|
|
$STD apt-get install -y motion |
|
|
|
$STD apt-get install -y motion |
|
|
|
systemctl stop motion |
|
|
|
systemctl stop motion |
|
|
@ -31,22 +39,18 @@ msg_info "Installing FFmpeg" |
|
|
|
$STD apt-get install -y ffmpeg v4l-utils |
|
|
|
$STD apt-get install -y ffmpeg v4l-utils |
|
|
|
msg_ok "Installed FFmpeg" |
|
|
|
msg_ok "Installed FFmpeg" |
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Python3-pip" |
|
|
|
|
|
|
|
$STD apt-get install -y python3-pip |
|
|
|
|
|
|
|
msg_ok "Installed Python3-pip" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing MotionEye" |
|
|
|
msg_info "Installing MotionEye" |
|
|
|
$STD apt-get update |
|
|
|
$STD apt-get update |
|
|
|
$STD pip install git+https://github.com/motioneye-project/motioneye.git@dev |
|
|
|
$STD pip install git+https://github.com/motioneye-project/motioneye.git@dev |
|
|
|
mkdir -p /etc/motioneye |
|
|
|
mkdir -p /etc/motioneye |
|
|
|
chown -R root:root /etc/motioneye |
|
|
|
chown -R root:root /etc/motioneye |
|
|
|
chmod -R 777 /etc/motioneye |
|
|
|
chmod -R 777 /etc/motioneye |
|
|
|
cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf |
|
|
|
wget -qO /etc/motioneye/motioneye.conf https://raw.githubusercontent.com/motioneye-project/motioneye/dev/motioneye/extra/motioneye.conf.sample |
|
|
|
mkdir -p /var/lib/motioneye |
|
|
|
mkdir -p /var/lib/motioneye |
|
|
|
msg_ok "Installed MotionEye" |
|
|
|
msg_ok "Installed MotionEye" |
|
|
|
|
|
|
|
|
|
|
|
msg_info "Creating Service" |
|
|
|
msg_info "Creating Service" |
|
|
|
cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.systemd /etc/systemd/system/motioneye.service |
|
|
|
wget -qO /etc/systemd/system/motioneye.service https://raw.githubusercontent.com/motioneye-project/motioneye/dev/motioneye/extra/motioneye.systemd |
|
|
|
systemctl enable -q --now motioneye |
|
|
|
systemctl enable -q --now motioneye |
|
|
|
msg_ok "Created Service" |
|
|
|
msg_ok "Created Service" |
|
|
|
|
|
|
|
|
|
|
|