[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:software:zoneminder [2019/02/21 11:43 (UTC)] – Rename from install_zoneminder markandhowtos:software:zoneminder [2019/02/21 12:00 (UTC)] (current) – Cleanup and unify markand
Line 1: Line 1:
-<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> +====== ZoneMinder  ======
-====== Install ZoneMinder on Slackware ====== +
-(written for Slackware 14.2 and ZoneMinder 1.31.1 on Slackbuilds) \\+
  
-AS ROOT - \\ +ZoneMinder is an opensource monitoring tool.
- 1) Setup MariaDB  +
-     * [[howtos:databases:install_mariadb_on_slackware|howtos:databases:install_mariadb_on_slackware]]+
  
- 2) Install FFMPEG (from Slackbuilds).+====== Prerequisites ======
  
- 3) Install ZoneMinder (from Slackbuilds).+  * [[ffmpeg]] 
 +  * [[mariadb]] 
 + 
 +====== Installation ====== 
 + 
 +ZoneMinder is available at [[https://slackbuilds.org/repository/14.2/system/ZoneMinder/|SBo]]. 
 + 
 +===== ONVIF cameras ===== 
 + 
 +If you want to use ONVIF cameras 
 + 
 +  * Install perl-Data-UUID (from Slackbuilds) 
 +  * Install other Perl modules via CPan:
  
- 3a) If you want to use ONVIF cameras: 
-     * Install perl-Data-UUID (from Slackbuilds) 
-     * Install other Perl modules via cpan: 
 <code> <code>
-        perl -MCPAN -e 'install Class::Std::Fast, Data::Dump, SOAP::WSDL::Transport::HTTP, IO::Socket::Multicast'+perl -MCPAN -e 'install Class::Std::Fast, Data::Dump, SOAP::WSDL::Transport::HTTP, IO::Socket::Multicast'
 </code> </code>
  
- 4) Setup ZM database+===== Database ===== 
 <code> <code>
-    mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql  +mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql  
-    mysql -u root -p +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       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       select User,Host from mysql.user;  #Check and make zmuser was created
       quit       quit
 </code> </code>
 +
 The SELECT command (above) should reply: The SELECT command (above) should reply:
 +
 <code> <code>
   MariaDB [(none)]> select User,Host from mysql.user;   MariaDB [(none)]> select User,Host from mysql.user;
Line 42: Line 50:
 </code> </code>
  
- 5) Configure Apache (enable PHP) and start it:+===== Web server ===== 
 + 
 +Change ''America/Chicago'' to your correct timezone. 
 <code> <code>
-  sed -i 's|#Include /etc/httpd/mod_php.conf|Include /etc/httpd/mod_php.conf|' /etc/httpd/httpd.conf +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|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 +sed -i 's|;date.timezone =|date.timezone = America/Chicago|' /etc/php.ini
-  #**** CHANGE America/Chicago to your correct timezone ****+
 </code> </code>
  
- 6) Add "Include /etc/httpd/extra/zm.conf" to httpd.conf+Then Add "Include /etc/httpd/extra/zm.conf" to httpd.conf 
 <code> <code>
-sed -i '|Include /etc/httpd/extra/httpd-vhosts.conf|a Include /etc/httpd/extra/zm.conf' /etc/httpd/httpd.conf+sed -i '|Include /etc/httpd/extra/httpd-vhosts.conf|a Include /etc/httpd/extra/zm.conf' /etc/httpd/httpd.conf
 </code> </code>
  
- 7) Start httpd+===== Run ===== 
 <code> <code>
-chmod 755 /etc/rc.d/rc.httpd; /etc/rc.d/rc.httpd start+chmod 755 /etc/rc.d/rc.httpd; /etc/rc.d/rc.httpd start
 </code> </code>
  
- 8) Start ZoneMinder: 
 <code> <code>
-chmod 755 /etc/rc.d/rc.zm; /etc/rc.d/rc.zm start+chmod 755 /etc/rc.d/rc.zm; /etc/rc.d/rc.zm start
 </code> </code>
  
Line 68: Line 79:
  
   http://YOUR_ZM_MACHINE/zm   http://YOUR_ZM_MACHINE/zm
- 
  
 ====== Sources ====== ====== Sources ======
-<!-- If you are copying information from another source, then specify that source --> 
-<!-- * Original source: [[http://some.website.org/some/page.html]] --> 
-<!-- Authors are allowed to give credit to themselves! --> 
- * Originally written by [[wiki:user:arfon | arfon]] 
-<!-- * Contributions by [[wiki:user:yyy | User Y]] --> 
  
-<!-- Please do not modify anything below, except adding new tags.--> +  * Originally written by [[wiki:user:arfon | arfon]] 
-<!-- You must remove the tag-word "template" below before saving your new page -->+  * Contributions by [[wiki:user:markand | markand]] 
 {{tag>howtos software ZoneMinder multimedia author_arfon}} {{tag>howtos software ZoneMinder multimedia author_arfon}}
 howtos:software:zoneminder ()