Table of Contents

Zoneminder

Installation

# install apache2
$ sudo apt-get install apache2
# update myslq
# $ sudo /etc/mysql/my.cnf  (this removes the current symbolic link)
# $ sudo cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
# $ sudo nano /etc/mysql/my.cnf
# </etc/mysql/my.cnf>
#   [mysqld]
#   sql_mode = NO_ENGINE_SUBSTITUTION
# $ sudo systemctl restart mysql
# add repository and install
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:iconnor/zoneminder
$ sudo apt-get update
$ sudo apt-get install zoneminder
# configure the database
$ sudo mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
$ sudo mysql -uroot -p -e "grant select,insert,update,delete,create,alter,index,lock tables on zm.* to 'zmuser'@localhost identified by 'zmpass';"
# set permissions
$ sudo chmod 740 /etc/zm/zm.conf
$ sudo chown root:www-data /etc/zm/zm.conf
$ sudo chown -R www-data:www-data /usr/share/zoneminder/
# configure apache
$ sudo a2enconf zoneminder
$ sudo a2enmod cgi
$ sudo a2enmod rewrite
# enable and start zm
$ sudo sytemctl enable zoneminder
$ sudo sytemctl start zoneminder
# edit timezone in php
$ sudo nano /etc/php5/apache2/php.ini
</etc/php5/apache2/php.ini>
  [Date]
  date.timezone = America/Chicago
# reload apache
$ sudo systemctl reload apache2
# test zoneminder
http://localhost/zm

Adding Cameras

Adding Motion Detection

Adding Email Notification

Hello,

An alarm has been detected on your installation of the ZoneMinder.

The details are as follows :

Monitor  : %MN%
Event Id : %EI%
Length   : %EL%
Frames   : %EF% (%EFA%)
Scores   : t%EST% m%ESM% a%ESA%

This alarm was matched by the %FN% filter and can be viewed at http://192.168.35.205/zm/index.php%EPS%

PATHS:

/usr/share/zoneminder/www/events