Difference between revisions of "Package:Zoneminder"

m (more details (more php-fpm friendly link))
m (more details)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
|Homepage=http://www.zoneminder.com/
 
|Homepage=http://www.zoneminder.com/
 
}}
 
}}
{{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 47: Line 46:
 
mysql> \q}}
 
mysql> \q}}
 
Deploy ZoneMinder's database settings:
 
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 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.
 
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
Line 62: Line 61:
 
==== Web Interface ====
 
==== Web Interface ====
 
The ZoneMinder web interface can be viewed @ http://127.0.0.1/zm/index.php
 
The ZoneMinder web interface can be viewed @ http://127.0.0.1/zm/index.php
 +
 +
If you're having problems serving this webapp via php-fpm:
 +
{{console|body=###i## ln -s /usr/share/zoneminder/www/ /var/www/localhost/htdocs/zoneminder}}
 +
 +
and instead view the cms @ http://127.0.0.1/zoneminder/index.php
 +
 +
===== Mobile Web Interface =====
 +
To the top right of ZoneMinder's web interface click options.  Select the display tab.  Change ZM_SKIN to mobile, and hit save.
 +
 +
To revert the changes visit your install and instead of index.php use index.php?skin=classic
 +
 +
ZoneMinder is skinable, funtoo suggests using a bootstrap skin instead.
 +
 +
===== Bandwidth =====
 +
In the web interface, to the center click "low" and a dialog window will pop up allowing you to change it to medium, or high.
 +
 +
===== Console =====
 +
The web interface can control the zoneminder process.  To the right of "console" click either running, or stopped.  Dialog windows will pop up allowing you to stop, or run ZoneMinder.
  
 
==== Adding Cameras ====
 
==== Adding Cameras ====
{{SectionNeedsUpdates}}
+
To the bottom left select "add new monitor."  In the window that pops up, to the top right are probe & presets.  Any further configuration settings that are required are probably listed in the hardware compatibility list.
  
 
=== External Resources ===
 
=== External Resources ===
 +
*http://www.zoneminder.com/wiki/index.php/Hardware_Compatibility_List
 
*http://www.zoneminder.com/wiki/index.php/Main_Documentation#Check_that_your_Camera_Works.21
 
*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

Latest revision as of 02:50, April 24, 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

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
Mgorny

New OpenGL management in Funtoo

Funtoo is switching to an improved system for managing multiple OpenGL providers (Mesa/Xorg, AMD and NVIDIA). The update may involve blockers and file collisions.
30 March 2015 by Mgorny
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/index.php

If you're having problems serving this webapp via php-fpm:

# ln -s /usr/share/zoneminder/www/ /var/www/localhost/htdocs/zoneminder


and instead view the cms @ http://127.0.0.1/zoneminder/index.php

Mobile Web Interface

To the top right of ZoneMinder's web interface click options. Select the display tab. Change ZM_SKIN to mobile, and hit save.

To revert the changes visit your install and instead of index.php use index.php?skin=classic

ZoneMinder is skinable, funtoo suggests using a bootstrap skin instead.

Bandwidth

In the web interface, to the center click "low" and a dialog window will pop up allowing you to change it to medium, or high.

Console

The web interface can control the zoneminder process. To the right of "console" click either running, or stopped. Dialog windows will pop up allowing you to stop, or run ZoneMinder.

Adding Cameras

To the bottom left select "add new monitor." In the window that pops up, to the top right are probe & presets. Any further configuration settings that are required are probably listed in the hardware compatibility list.

External Resources