Line 2: |
Line 2: |
| [[File:zoneminder.png|250px]] | | [[File:zoneminder.png|250px]] |
| </blockquote> | | </blockquote> |
| + | {{Box |
| + | | content = this is the how to in order to install ZM yourself, you might rather save the trouble by installing the contrib : [[Zoneminder]] |
| + | }} |
| + | |
| ==About== | | ==About== |
| [http://zoneminder.com 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. | | [http://zoneminder.com 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 how-to is for IP Camera's only. | | This how-to is for IP Camera's only. |
| + | |
| + | This how-to can be discussed on the forums [https://forums.contribs.org/index.php/topic,52163.msg267101.html#msg267101| '''here''']. |
| | | |
| ==Installation== | | ==Installation== |
Line 26: |
Line 32: |
| mysql | | mysql |
| create database '''zm'''; | | create database '''zm'''; |
− | grant all privileges on '''zm'''.* to '''zmuser''' identified by ''''zmpass''''; | + | grant all privileges on '''zm'''.* to '''zmuser''' identified by '<nowiki/>'''zmpass''''; |
| flush privileges; | | flush privileges; |
| exit | | exit |
Line 44: |
Line 50: |
| expand-template /etc/httpd/conf/httpd.conf | | expand-template /etc/httpd/conf/httpd.conf |
| service httpd-e-smith restart | | service httpd-e-smith restart |
− | {{Note box|Please note that the above templates do not implement any authentication on the Koozali SME Server side to access the Zoneminder portal (webinterface). Options could be specific users (e.g. admin) or all valid SME users.}} | + | {{Note box|Please note that the above templates do not implement any authentication on the Koozali SME Server side to access the Zoneminder portal (webinterface). Options could be specific users (e.g. admin) or all valid SME users. Please read the Koozali SME Server documentation on [[Web_Application_RPM#Apache_Authentication|'''Apache authentication''']]}} |
| | | |
| ====Start Zoneminder at boot==== | | ====Start Zoneminder at boot==== |
| config set zoneminder service status enabled | | config set zoneminder service status enabled |
| ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98zoneminder | | ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98zoneminder |
− | | + | The mysqlinit (init-default-databases) process (which starts after the zoneminder service) will have MySQL restarted whilst Zoneminder is actively using it. The Zoneminder service will stop/not start due to this. To prevent Zoneminder to start too quickly we delay the Zoneminder service to start a bit later by adding a sleep command in the script /etc/rc.d/init.d/zoneminder. |
− | | + | sed -i '/^start()/{N;s/$/\nsleep 10/}' /etc/rc.d/init.d/zoneminder |
− | The mysqlinit (init-default-databases) process (which starts after the zoneminder service) will have MySQL restarted whilst Zoneminder is actively using it. The Zoneminder service will not start for due to this running process. To prevent Zoneminder to start too quickly we delay the Zoneminder service to start a bit later by adding a sleep command in the script /etc/rc.d/init.d/zoneminder. (The below could do with a better/safer sed command.) | |
− | | |
− | In /etc/rc.d/init.d/zoneminder where is says:
| |
− | start()
| |
− | {
| |
− | [rest of the code]
| |
− | make it:
| |
− | start()
| |
− | {
| |
− | sleep 10
| |
− | [rest of the code]
| |
− | or in short:
| |
− | sed -i "29i sleep 10" /etc/rc.d/init.d/zoneminder
| |
− | | |
| You can now start Zoneminder manually: | | You can now start Zoneminder manually: |
| service zoneminder start | | service zoneminder start |
Line 84: |
Line 76: |
| | | |
| Next you need to adjust the existing (from above) custom template (make a backup copy first): | | Next you need to adjust the existing (from above) custom template (make a backup copy first): |
− | sed --in-place '/Alias/d' /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98zoneminder | + | sed -i '/Alias/d' /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98zoneminder |
| Followed by: | | Followed by: |
| signal-event webapps-update | | signal-event webapps-update |
Line 111: |
Line 103: |
| By default, ZoneMinder can be accessed via the webinterface. There are also 3rd party client applications available. | | By default, ZoneMinder can be accessed via the webinterface. There are also 3rd party client applications available. |
| | | |
− | '''[https://github.com/pliablepixels/zmNinja zmNinja]''', a beautiful fast and efficient client application (freely available on [https://github.com/pliablepixels/zmNinja Github]) '''[https://www.youtube.com/watch?v=prtA_mv68Ok&feature=youtu.be DEMO]''' | + | '''[https://pliablepixels.github.io/ zmNinja]''', a beautiful fast and efficient client application (freely available on [https://github.com/pliablepixels/zmNinja Github]) '''[https://www.youtube.com/watch?v=prtA_mv68Ok&feature=youtu.be DEMO]''' |
| | | |
| - Android - [https://play.google.com/store/apps/details?id=com.pliablepixels.zmninja_pro&hl=en Play Store] | | - Android - [https://play.google.com/store/apps/details?id=com.pliablepixels.zmninja_pro&hl=en Play Store] |