Difference between revisions of "Package:Zoneminder"

m (more details)
m (more details)
Line 4: Line 4:
 
|Homepage=http://www.zoneminder.com/
 
|Homepage=http://www.zoneminder.com/
 
}}
 
}}
{{warning|this page is incomplete, and requires webapp commands.  External Resources contains links that may also help installing this package.}}
 
 
{{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.
Line 13: Line 12:
 
=== 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 ====
 +
{{file|name= /etc/apache2/vhosts.d/10_zoneminder.conf|lang=|desc=Set apache configs.|body=
 +
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>}}
 +
 +
{{file|name= /etc/conf.d/apache2|lang=|desc=Set apache configs.|body=
 +
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=
 +
ZM_DB_USER=zmuser
 +
ZM_DB_PASS=changeme}}
  
 
==== 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
 +
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.
 +
{{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.
 +
{{console|body=###i## 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 ====
 
==== Init ====
Line 24: Line 64:
  
 
=== External Resources ===
 
=== External Resources ===
 +
*http://www.zoneminder.com/wiki/index.php/Main_Documentation#Check_that_your_Camera_Works.21
 
*https://wiki.gentoo.org/wiki/ZoneMinder
 
*https://wiki.gentoo.org/wiki/ZoneMinder
 
*https://wiki.archlinux.org/index.php/ZoneMinder
 
*https://wiki.archlinux.org/index.php/ZoneMinder
 
*http://www.puccinellidigital.com/musings/notes/zoneminder-nginx
 
*http://www.puccinellidigital.com/musings/notes/zoneminder-nginx
 
{{EbuildFooter}}
 
{{EbuildFooter}}

Revision as of 20:18, April 22, 2015

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

IP Space Migration Continues

All Funtoo user containers in the 8.28 IP space will be moving into our new IP space (172.97) over the next few days. If you have DNS set up -- be sure to watch your container and update to the new IP! container.host.funtoo.org DNS will be updated after the move.
2015-08-27 by Drobbins
Drobbins

Funtoo Hosting IP Move

Funtoo user containers with IPs in the 72.18.x.x range will be gradually migrating to new IP addresses this week. If you have DNS entries for your containers, please be aware that your DNS will need to be updated.
2015-08-11 by Drobbins
Drobbins

New ARM Stages

New ARM Stages, built with a new toolchain, are now hitting mirrors. Existing ARM users should re-install using these stages (dated Aug 3, 2015 or later,) rather than upgrade using emerge.
2015-08-06 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. Package:MySQL and its equivalent alternatives will suffice.

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

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

# 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:

# rc-update add zoneminder
# rc


External Resources