|
|
Line 1: |
Line 1: |
| {{Ebuild | | {{Ebuild |
| |Summary=ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system | | |Summary=An audio library tagger, manager, and player for GTK+ |
| |CatPkg=www-misc/zoneminder | | |CatPkg=media-sound/quodlibet |
| |Homepage=http://www.zoneminder.com/ | | |Homepage=http://code.google.com/p/quodlibet/ |
| }} | | }} |
| {{PageNeedsUpdates}}
| | = An audio library tagger, manager, and player for GTK+ = |
| 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== |
| {{console|body=###i## emerge www-misc/zoneminder}}
| |
|
| |
|
| === Configuration ===
| | Quodlibet can be installed with |
| ZoneMinder's configuration files are located @ {{f|/etc/conf.d/zoneminder}} & {{f|/etc/zm.conf}}.
| | {{console|body= |
| | ###i## emerge quodlibet |
| | }} |
|
| |
|
| ==== Apache ==== | | ==Configuration== |
| {{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=
| | Please expand |
| 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=
| | ==Usage== |
| ZM_DB_USER=zmuser
| |
| ZM_DB_PASS=changeme}}
| |
|
| |
|
| ==== Database ====
| | Please expand |
| ===== MySQL =====
| |
| ZoneMinder requires a database to run. {{package|dev-db/mysql}} and its equivalent alternatives will suffice.
| |
|
| |
|
| {{console|body=###i## mysql -u root -p
| | ==More info== |
| mysql> create database zm;
| |
| mysql> \q}}
| |
| Deploy ZoneMinder's database settings:
| |
| {{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.
| |
| {{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}}
| |
|
| |
|
| ==== Init ====
| | The man page has more details |
| To start the ZoneMinder service:
| | {{console|body= |
| {{console|body=###i## rc-update add zoneminder | | $ ##i## man quodlibet |
| ###i## rc}}
| | }} |
|
| |
|
| ==== Web Interface ==== | | ==Troubleshooting== |
| 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:
| | Please expand |
| {{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
| | {{note|Please note this is a first attempt of expanding the wiki by a new user. Don't shoot the messenger!}} |
|
| |
|
| ===== Mobile Web Interface =====
| | {{PageNeedsUpdates}} |
| 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.
| |
| | |
| ==== Adding Cameras ====
| |
| {{SectionNeedsUpdates}} | |
|
| |
|
| === 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
| |
| *https://wiki.gentoo.org/wiki/ZoneMinder
| |
| *https://wiki.archlinux.org/index.php/ZoneMinder
| |
| *http://www.puccinellidigital.com/musings/notes/zoneminder-nginx
| |
| {{EbuildFooter}} | | {{EbuildFooter}} |