ZoneMinder which combine monitoring on Linux
Zoneminder is combine in its field.
On the Windows manufacturers often provide a tool for managing cameras, however, they forget that not all are dependent on Windows.
With glory and is open source software that perfectly fulfills its task.
Below I will explain step by step how to install Zoneminder that will help us monitor the apartment on Linux.
In the previous section describing LAMP server installation which will be necessary to install ZoneMindera
I'll skip this installation because everyone can benefit from the previous tutorial we go straight to the installation.
Installation and konfoguracja sudo:
1 2 3 4 | apt-get update apt-get install sudo usermod -a -G sudo exit |
And we run sudo update system:
1 2 | sudo -i apt-get upgrade |
Zonemindera package is not in the standard repositories and in backports you must add them to our system:
1 | nano /etc/apt/sources.list |
And we add the repository:
1 2 | # Backports repository deb http://httpredir.debian.org/debian jessie-backports main contrib non-free |
Installation and update repositories zonemindera:
1 2 | apt-get update apt-get install zoneminder |
We can also extract documentation and become acquainted with it:
1 2 | gunzip /usr/share/doc/zoneminder/README.Debian.gz cat /usr/share/doc/zoneminder/README.Debian |
The next step is to configure the database:
1 2 | cat /usr/share/zoneminder/db/zm_create.sql | sudo mysql --defaults-file=/etc/mysql/debian.cnf echo 'grant lock tables,alter,create,select,insert,update,delete,index on zm.* to 'zmuser'@localhost identified by "zmpass";' | sudo mysql --defaults-file=/etc/mysql/debian.cnf mysql |
We give permission to the file:
1 | chgrp -c www-data /etc/zm/zm.conf |
Zonemindera we configure and run with system
1 | systemctl enable zoneminder.service |
run the appropriate modules apache:
1 2 3 | a2enconf zoneminder a2enmod cgi a2enmod rewrite |
Configuration zone
1 | nano /etc/php5/apache2/php.ini |
1 2 3 4 | [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = Europe/Warsaw |
The last step is to restart apache and start zoneminder:
1 2 | systemctl reload apache2 systemctl start zoneminder |
It's all a whole should work correctly
Zoneminder should be available under the: http://ADRESIP / RESOLUTION /
in the case of Ubuntu case it is even easier, authors launched the script autoinstalacji:
Charge from the script:
We give chmod:
1 | chmod 755 zm_install |
and run the installer do the work for us:
1 | ./zm_install |