Package:Zoneminder

From Funtoo
Revision as of 20:18, April 22, 2015 by Threesixes (talk | contribs) (more details)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Zoneminder

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Zoneminder is a web/net cam web-server-stack web application to create streams of video for security feeds. Zoneminder supports motion logging, zooming, and other DVR functions.

Installation

root # emerge www-misc/zoneminder

Configuration

Zoneminder's configuration files are located @ /etc/conf.d/zoneminder & /etc/zm.conf.

Apache

   /etc/apache2/vhosts.d/10_zoneminder.conf - Set apache configs.
ScriptAlias /cgi-bin/zms "/usr/libexec/zoneminder/cgi-bin/zms"
ScriptAlias /cgi-bin/nph-zms "/usr/libexec/zoneminder/cgi-bin/nph-zms"
 
<Directory "/usr/libexec/zoneminder/cgi-bin">
  AllowOverride All
  Options +ExecCGI
  Require all granted
</Directory>
 
Alias /zm "/usr/share/zoneminder/www"
 
<Directory "/usr/share/zoneminder/www">
  Options -Indexes +MultiViews +FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>
   /etc/conf.d/apache2 - Set apache configs.
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D SECURITY"
   /etc/zm.conf - Set db password in zoneminder configs.
ZM_DB_USER=zmuser
ZM_DB_PASS=changeme

Database

MySQL

Zoneminder requires a database to run. dev-db/mysql and its equivalent alternatives will suffice.

root # mysql -u root -p
mysql> create database zm;
mysql> \q

Import the database schema and base data, the .sql script is created by the configure phase above, so make sure you do that first.

root #mysql -p zm < /usr/share/zoneminder/db/zm_create.sql

Create a MySQL user for ZM to use. If you change the user and/or password from the defaults here, then make sure you set those in the source configure phase.

root # mysql -u root -p
mysql> use zm;
mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'changeme';
mysql> flush privileges;
mysql> \q

Web Interface

The zoneminder web interface can be viewed @ http://127.0.0.1/zm

Init

To start the Zoneminder service:

root # rc-update add zoneminder
root # rc

External Resources