Difference between revisions of "Package:Zoneminder"

m (more details)
m (more details)
Line 5: Line 5:
 
}}
 
}}
 
{{PageNeedsUpdates}}
 
{{PageNeedsUpdates}}
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.
+
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 ===
 
=== Installation ===
Line 11: Line 11:
  
 
=== Configuration ===
 
=== Configuration ===
Zoneminder's configuration files are located @ {{f|/etc/conf.d/zoneminder}} & {{f|/etc/zm.conf}}.
+
ZoneMinder's configuration files are located @ {{f|/etc/conf.d/zoneminder}} & {{f|/etc/zm.conf}}.
  
 
==== Apache ====
 
==== Apache ====
Line 35: Line 35:
 
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D SECURITY"}}
 
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D SECURITY"}}
  
{{file|name=/etc/zm.conf|lang=|desc=Set db password in zoneminder configs.|body=
+
{{file|name=/etc/zm.conf|lang=|desc=Set db password in ZoneMinder configs.|body=
 
ZM_DB_USER=zmuser
 
ZM_DB_USER=zmuser
 
ZM_DB_PASS=changeme}}
 
ZM_DB_PASS=changeme}}
Line 41: Line 41:
 
==== Database ====
 
==== Database ====
 
===== MySQL =====
 
===== MySQL =====
Zoneminder requires a database to run.  {{package|dev-db/mysql}} and its equivalent alternatives will suffice.
+
ZoneMinder requires a database to run.  {{package|dev-db/mysql}} and its equivalent alternatives will suffice.
  
 
{{console|body=###i## mysql -u root -p
 
{{console|body=###i## mysql -u root -p
 
mysql> create database zm;
 
mysql> create database zm;
 
mysql> \q}}
 
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.
+
Deploy ZoneMinder's database settings:
 
{{console|body=###i##mysql -p zm < /usr/share/zoneminder/db/zm_create.sql}}
 
{{console|body=###i##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.
+
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.
 
{{console|body=###i## mysql -u root -p
 
{{console|body=###i## mysql -u root -p
 
mysql> use zm;
 
mysql> use zm;
Line 54: Line 54:
 
mysql> flush privileges;
 
mysql> flush privileges;
 
mysql> \q}}
 
mysql> \q}}
 
==== Web Interface ====
 
The zoneminder web interface can be viewed @ http://127.0.0.1/zm
 
  
 
==== Init ====
 
==== Init ====
To start the Zoneminder service:
+
To start the ZoneMinder service:
 
{{console|body=###i## rc-update add zoneminder
 
{{console|body=###i## rc-update add zoneminder
 
###i## rc}}
 
###i## rc}}
 +
 +
==== Web Interface ====
 +
The ZoneMinder web interface can be viewed @ http://127.0.0.1/zm
 +
 +
==== Adding Cameras ====
 +
{{SectionNeedsUpdates}}
  
 
=== External Resources ===
 
=== External Resources ===

Revision as of 20:26, April 22, 2015

www-misc/zoneminder


Source Repository:Gentoo Portage Tree
Homepage

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

Pre-built kernels!

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

Better Experiences: Ego and Vim

Info on Funtoo's new personality tool called 'ego', and user-focused updates to vim's defaults.
27 April 2015 by Drobbins
Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
View More News...

Zoneminder

Tip

This is a wiki page. To edit it, 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. 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

Adding Cameras

Important

This section is in need of updates.


External Resources