debian / ubuntu - zoneminder Installation:
System aktualisieren + Repositories einfügen in /etc/apt/sources.list:
nano /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
abspeichern
apt-get update
apt-get install -y zoneminder
systemctl enable zoneminder
service zoneminder start
a2enconf zoneminder
chown -R www-data:www-data /usr/share/zoneminder/
systemctl reload apache2
dann im /tmp - Verzeichnis ein Installationsscript zm-install anlegen:
nano /tmp/zm-install
Inhalt per copy & Paste einfügen:
#!/bin/sh clear read -p "This script installs Zoneminder 1.32.x on Ubuntu 18.04 AMD64 with LAMP (MySQL) installed... Press Enter to continue or Ctrl + c to quit" nothing clear read -p "You must be logged in as root using sudo su ... Press Enter to continue or Ctrl + c to quit" nothing clear read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder. Press enter to continue" nothing apt install -y software-properties-common clear add-apt-repository ppa:iconnor/zoneminder-1.32 apt update clear awk '$0="date.timezone = "$0' /etc/timezone >> /etc/php/7.2/apache2/php.ini clear apt install -y zoneminder systemctl enable zoneminder service zoneminder start adduser www-data video a2enconf zoneminder a2enmod rewrite chown -R www-data:www-data /usr/share/zoneminder/ service apache2 reload clear read -p "Install complete.Press enter to continue" nothing clear
Datei ausführbar machen:
chmod 755 zm-install
Script ausführen:
./zm-install
Cameras einfügen - hier am Beispiel von Apexis IP-WLAN-CAMs
https://wiki.zoneminder.com/Apexis
Filter setzen z.B. von Löschen von Daten, die älter als 14 Tage sind:
Filter --> new
Namen vergeben: Löschen älter als 14 Tage
Date/Time less or eqal to - 14 days
Action: Delete all matches