[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
¡Esta es una revisión vieja del documento!
Tabla de Contenidos
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