Zoneminder

Revision as of 23:50, April 23, 2015 by Threesixes (Talk | contribs)

www-misc/zoneminder


Source Repository:Repository:Gentoo Portage Tree

http://www.zoneminder.com/

Summary: ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system

Use Flags

curl
Enable using net-misc/curl for streaming from cameras
gcrypt
...
vlc
Enable using media-libs/vlc for streaming from cameras
openssl
...

News

Drobbins

ARM Rebuild

ARM systems will use new stage3's that are not compatible with earlier versions.
2015-06-27 by Drobbins
Drobbins

ABI X86 64 and 32

Funtoo Linux has new 32-bit compatibility libraries inherited from Gentoo. Learn about them here.
2015-06-18 by Drobbins
Drobbins

Pre-built kernels!

Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
2015-05-12 by Drobbins
More...

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

# 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. {{#ask: CatPkg::dev-db/mysql }} and its equivalent alternatives will suffice.

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

Deploy ZoneMinder's database settings:

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

Create a database user for ZoneMinder to use. Make sure the /etc/zm.conf zm db user & zm db pass settings match the users, and passwords here.

# 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


Init

To start the ZoneMinder service:

# rc-update add zoneminder
# rc


Web Interface

The ZoneMinder web interface can be viewed @ http://127.0.0.1/zm/index.php

Adding Cameras

Important

This section is in need of updates.


External Resources