Zoneminder

From SME Server
Jump to navigation Jump to search




Zoneminder.png
zoneminder logo
MaintainerUnnilennium
Urlhttps://www.zoneminder.com
Category

Contrib

Tags cctvzoneminderzmvideoip camera


Warning.png Warning:
This is early alpha development please use only on test machine, not for production


Version

Devel 10:
Contrib 9:
smeserver-zoneminder
The latest version of smeserver-zoneminder is available in the SME repository, click on the version number(s) for more information.


zoneminder
this is available in the zmrepo external repository with most of the dependencies


Description

ZoneMinder is intended for use in single or multi-camera video security applications, including commercial or home CCTV, theft prevention and child, family member or home monitoring and other domestic care scenarios such as nanny cam installations. It supports capture, analysis, recording, and monitoring of video data coming from one or more video or network cameras attached to a Linux system. ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom cameras using a variety of protocols. It is suitable for use as a DIY home video security system and for commercial or professional video security and surveillance. It can also be integrated into a home automation system via X.10 or other protocols.

This contrib is for IP Camera's only.

Installation

Requirements

You can choose to activate one of the php version as long as it is at least >=56

yum --enablerepo=smecontribs,smedev install smeserver-extrarepositories-zmrepo smeserver-extrarepositories-remi-safe  smeserver-extrarepositories-rpmfusion smeserver-extrarepositories-epel
signal-event yum-modify
yum install smeserver-php-scl --enablerepo=smecontribs
config setprop php54 PhpModule disabled
config setprop php55 PhpModule disabled 
config setprop php56 PhpModule enabled
config setprop php70 PhpModule disabled
config setprop php71 PhpModule disabled
signal-event php-update

Install Zoneminder from the zmrepo

yum install  x264-libs.x86_64 librtmp.x86_64 xvidcore.x86_64 --enablerepo=rpmfusion
yum install smeserver-zoneminder zoneminder --enablerepo=zmrepo,smecontribs,smedev,smetest
signal-event zoneminder-update
config set UnsavedChanges no


# output of yum

=================================================================================================================
 Paquet                                 Architecture  Version                           Dépôt              Taille
=================================================================================================================
Installation:
 zoneminder                             x86_64        1.30.4-1.el6                      zmrepo             9.1 M
Installation pour dépendance:
 SDL_image                              x86_64        1.2.12-9.el6                      zmrepo              39 k
 atk                                    x86_64        1.30.0-1.el6                      base               195 k
 cairo                                  x86_64        1.8.8-6.el6_6                     base               309 k
 cambozola                              noarch        0.93-1.el6                        zmrepo              99 k
 dirac-libs                             x86_64        1.0.2-4.el6                       smecontribs        335 k
 faad2-libs                             x86_64        1:2.7-2.el6.3                     zmrepo             145 k
 freerdp-libs                           x86_64        1.0.2-6.el6                       base               208 k
 game-music-emu                         x86_64        0.6.1-1.el6                       zmrepo             140 k
 gdk-pixbuf2                            x86_64        2.24.1-6.el6_7                    base               501 k
 giflib                                 x86_64        4.1.6-3.1.el6                     base                37 k
 gtk2                                   x86_64        2.24.23-9.el6                     base               3.2 M
 hicolor-icon-theme                     noarch        0.11-1.1.el6                      base                40 k
 jack-audio-connection-kit              x86_64        0.121.3-1.el6                     zmrepo             186 k
 jasper-libs                            x86_64        1.900.1-22.el6                    base               139 k
 java-1.8.0-openjdk                     x86_64        1:1.8.0.191.b12-0.el6_10          updates            212 k
 java-1.8.0-openjdk-headless            x86_64        1:1.8.0.191.b12-0.el6_10          updates             32 M
 jpackage-utils                         noarch        1.7.5-3.16.el6                    base                60 k
 libXcomposite                          x86_64        0.4.3-4.el6                       base                20 k
 libXcursor                             x86_64        1.1.14-2.1.el6                    base                28 k
 libXfont                               x86_64        1.5.1-2.el6                       base               145 k
 libXft                                 x86_64        2.3.2-1.el6                       base                55 k
 libXinerama                            x86_64        1.1.3-2.1.el6                     base                13 k
 libXrandr                              x86_64        1.5.1-1.el6                       base                25 k
 libXrender                             x86_64        0.9.10-1.el6                      base                24 k
 libXv                                  x86_64        1.0.11-1.el6                      base                17 k
 liba52                                 x86_64        0.7.4-27.el6                      smetest             33 k
 libavc1394                             x86_64        0.5.3-9.1.el6                     base                45 k
 libavdevice                            x86_64        2.6.4-1.el6                       zmrepo              70 k
 libcddb                                x86_64        1.3.2-2.el6                       zmrepo              67 k
 libchromaprint                         x86_64        1.1-3.el6                         zmrepo              45 k
 libcroco                               x86_64        0.6.2-5.el6                       base               100 k
 libdca                                 x86_64        0.0.5-6.el6                       zmrepo             100 k
 libdvbpsi                              x86_64        1.2.0-3.el6                       zmrepo              93 k
 libdvdnav                              x86_64        4.1.4-0.1.svn1184.el6             zmrepo              51 k
 libdvdread                             x86_64        4.1.4-0.3.svn1183.el6             base                63 k
 libebml                                x86_64        1.2.2-1.el6                       zmrepo              67 k
 libfontenc                             x86_64        1.1.2-3.el6                       base                29 k
 libgomp                                x86_64        4.4.7-23.el6                      base               135 k
 libkate                                x86_64        0.3.8-1.el6                       zmrepo              44 k
 libmad                                 x86_64        0.15.1b-14.el6                    zmrepo              72 k
 libmatroska                            x86_64        1.2.0-1.el6                       zmrepo             134 k
 libmodplug                             x86_64        1:0.8.8.5-1.el6                   zmrepo             158 k
 libmpcdec                              x86_64        1.2.6-6.1.el6                     base                26 k
 libmpeg2                               x86_64        0.5.1-9.el6                       zmrepo              64 k
 libmtp                                 x86_64        1.0.1-2.el6                       base                99 k
 librsvg2                               x86_64        2.26.0-14.el6                     base               140 k
 libsamplerate                          x86_64        0.1.7-2.1.el6                     base               1.0 M
 libshout                               x86_64        2.2.2-5.1.el6                     base                40 k
 libsmbclient                           x86_64        3.6.23-51.el6                     base               1.6 M
 libthai                                x86_64        0.1.12-3.el6                      base               183 k
 libtiger                               x86_64        0.3.4-1.el6                       zmrepo              34 k
 libupnp                                x86_64        1.6.25-1.el6                      smecontribs         95 k
 libvdpau                               x86_64        0.9-1.el6                         zmrepo              29 k
 libxkbfile                             x86_64        1.0.6-1.1.el6                     base                74 k
 lirc-libs                              x86_64        0.9.0-8.el6                       zmrepo              33 k
 live555                                x86_64        0-0.37.2012.04.27.el6             zmrepo             305 k
 minizip                                x86_64        1.2.3-29.el6                      base                25 k
 opencore-amr                           x86_64        0.1.2-2.el6                       smetest            162 k
 opus                                   x86_64        1.1.3-2.el6                       zmrepo             179 k
 pango                                  x86_64        1.28.1-11.el6                     base               351 k
 perl-AppConfig                         noarch        1.66-6.el6                        base                87 k
 perl-Archive-Zip                       noarch        1.30-2.el6                        base               107 k
 perl-Astro-SunTime                     noarch        0.01-1                            zmrepo             5.0 k
 perl-Class-Load                        noarch        0.10-1.el6                        zmrepo              22 k
 perl-Class-Std                         noarch        0.0.8-5.el6                       zmrepo              46 k
 perl-Class-Std-Fast                    noarch        0.0.8-2.el6                       zmrepo              23 k
 perl-Data-Dump                         noarch        1.15-1.el6                        zmrepo              28 k
 perl-Data-OptList                      noarch        0.104-4.el6                       base                12 k
 perl-Device-SerialPort                 x86_64        1.04-5.el6                        zmrepo              64 k
 perl-IO-Interface                      x86_64        1.05-15.el6                       zmrepo              29 k
 perl-IO-Socket-Multicast               x86_64        1.12-1.el6                        zmrepo              23 k
 perl-Locale-Maketext-Simple            x86_64        1:0.18-144.el6                    base                32 k
 perl-Module-Load                       x86_64        1:0.16-144.el6                    base                29 k
 perl-Module-Load-Conditional           x86_64        0.30-144.el6                      base                35 k
 perl-Package-DeprecationManager        noarch        0.11-1.el6                        zmrepo              17 k
 perl-Package-Stash                     noarch        0.32-1.el6                        zmrepo              32 k
 perl-Package-Stash-XS                  x86_64        0.25-1.el6                        zmrepo              30 k
 perl-Params-Check                      x86_64        1:0.26-144.el6                    base                36 k
 perl-Pod-POM                           noarch        0.25-2.el6                        base                75 k
 perl-SOAP-WSDL                         noarch        3.003-2.el6                       zmrepo             141 k
 perl-Sub-Install                       noarch        0.925-6.el6                       base                20 k
 perl-Sys-CPU                           x86_64        0.51-7.el6                        zmrepo              12 k
 perl-Sys-MemInfo                       x86_64        0.91-5.el6                        zmrepo              14 k
 perl-Sys-Mmap                          x86_64        0.17-6.el6                        zmrepo              30 k
 perl-Template-Toolkit                  x86_64        2.22-5.el6                        base               1.3 M
 perl-TermReadKey                       x86_64        2.30-13.el6                       base                31 k
 perl-Time-modules                      noarch        2006.0814-5.el6                   base                38 k
 perl-Try-Tiny                          noarch        0.11-4.el6                        zmrepo              23 k
 perl-URI-Encode                        noarch        0.09-1.el6                        zmrepo              18 k
 perl-X10                               noarch        0.03-1                            zmrepo              26 k
 php-pecl-apcu                          x86_64        4.0.11-2.el6                      zmrepo              58 k
 pixman                                 x86_64        0.32.8-1.el6                      base               243 k
 soxr                                   x86_64        0.1.2-1.el6                       zmrepo              71 k
 taglib                                 x86_64        1.6.1-1.1.el6                     base               196 k
 ttmkfdir                               x86_64        3.0.9-32.1.el6                    base                43 k
 twolame-libs                           x86_64        0.3.13-2.el6                      zmrepo              48 k
 tzdata-java                            noarch        2018g-1.el6                       updates            186 k
 vlc-core                               x86_64        2.1.6-3.el6                       zmrepo             9.8 M
 vo-amrwbenc                            x86_64        0.1.1-2.el6.1                     zmrepo              72 k
 x265-libs                              x86_64        1.6-1.el6                         zmrepo             595 k
 xorg-x11-font-utils                    x86_64        1:7.2-11.el6                      base                75 k
 xorg-x11-fonts-Type1                   noarch        7.2-11.el6                        base               520 k
 zvbi                                   x86_64        0.2.35-1.el6                      zmrepo             432 k
Mise à jour pour dépendance:
 celt                                   x86_64        0.11.3-1.el6                      zmrepo              73 k
 ffmpeg                                 x86_64        2.6.4-1.el6                       zmrepo             1.2 M
 ffmpeg-libs                            x86_64        2.6.4-1.el6                       zmrepo             5.0 M

Résumé de la transaction
=================================================================================================================
Installation de   104 paquet(s)
Mise à jour de     3 paquet(s)

NFR Acces Zoneminder via sub domain

Instead of accessing the Zoneminder portal at http://myserver.com/zm, it is possible to change this to e.g. https://cctv.myserver.com. For this the easiest and comfortable way is to use the webapps-common contrib.


  Note:
This part assumes you have followed the complete above installation procedure.



Install the webapps-common contrib according to the Contrib page. Then (as per example for https://cctv.myserver.com) issue the following as root:

db domains set cctv.myserver.com domain Description "CCTV" Content Primary \
Nameservers internet TemplatePath WebAppVirtualHost \
DocumentRoot /usr/share/zoneminder/www RequireSSL enabled
signal-event domain-create cctv.myserver.com


Next you need to adjust the existing (from above) custom template (make a backup copy first):

sed -i '/Alias/d' /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98zoneminder

Followed by:

signal-event webapps-update

to activate all changes. Now you can reach your zoneminder portal at https://cctv.myserver.com

Uninstall

service zoneminder stop
yum --setopt=tsflags=noscripts remove zoneminder smeserver-zoneminder

do not forget to remove the domain you created if you did

signal-event domain-delete cctv.myserver.com
signal-event webapps-update

Now to cleanup everything you may want to perform the usual post-upgrade and reboot events. Apart from the php-scl and webapps contribs, all that is left is the MySQL database zm and the logfiles. It's up to you what to do with them.

ZoneMinder clients

By default, ZoneMinder can be accessed via the webinterface. There are also 3rd party client applications available.

zmNinja, a beautiful fast and efficient client application (freely available on Github) DEMO

- Android - Play Store

- iOS - iTunes

- Mac/Windows/Linux Github

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-zoneminder component or use this link


Below is an overview of the current issues for this contrib:

IDProductVersionStatusSummary (3 tasks)
12373SME Contribs10.0CONFIRMED/etc/e-smith/events/actions/zoneminder prevents system to start after reboot in bootstrap console
12219SME Contribs10.0RESOLVEDUnable to install Zoneminder
11226SME Contribs10alphaRESOLVEDInitial Import in SME 10 [smeserver-zoneminder]

Changelog

Only released version in smecontrib are listed here.