[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Table of Contents
ZoneMinder
ZoneMinder is an opensource monitoring tool.
Prerequisites
Installation
ZoneMinder is available at SBo.
ONVIF cameras
If you want to use ONVIF cameras
- Install perl-Data-UUID (from Slackbuilds)
- Install other Perl modules via CPan:
# perl -MCPAN -e 'install Class::Std::Fast, Data::Dump, SOAP::WSDL::Transport::HTTP, IO::Socket::Multicast'
Database
# mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql # mysql -u root -p grant select,insert,update,delete,lock tables,alter,create on zm.* to 'zmuser'@localhost identified by 'zmpass'; #NOTE: zmuser and zmpass is found in /etc/zm.conf select User,Host from mysql.user; #Check and make zmuser was created quit
The SELECT command (above) should reply:
MariaDB [(none)]> select User,Host from mysql.user; +--------+------------+ | User | Host | +--------+------------+ | root | 127.0.0.1 | | root | ::1 | | | localhost | | root | localhost | | zmuser | localhost | | | zoneminder | | root | zoneminder | +--------+------------+
Web server
Change America/Chicago
to your correct timezone.
# sed -i 's|#Include /etc/httpd/mod_php.conf|Include /etc/httpd/mod_php.conf|' /etc/httpd/httpd.conf # sed -i 's|DirectoryIndex index.html|DirectoryIndex index.html index.htm index.pl index.php|' /etc/httpd/httpd.conf # sed -i 's|;date.timezone =|date.timezone = America/Chicago|' /etc/php.ini
Then Add “Include /etc/httpd/extra/zm.conf” to httpd.conf
# sed -i '|Include /etc/httpd/extra/httpd-vhosts.conf|a Include /etc/httpd/extra/zm.conf' /etc/httpd/httpd.conf
Run
# chmod 755 /etc/rc.d/rc.httpd; /etc/rc.d/rc.httpd start
# chmod 755 /etc/rc.d/rc.zm; /etc/rc.d/rc.zm start
Installation should be complete, open a web browser and go to:
http://YOUR_ZM_MACHINE/zm