https://www.zoneminder.com/
https://wiki.zoneminder.com/Trendnet
ubuntu-14.04.4
使用ZoneMinder之前需要先安装配置好LAMP
开始安装zoneminder
执行:
sudo add-apt-repository ppa:iconnor/zoneminder
sudo apt-get update
sudo apt-get install zoneminder
默认安装后执行:sudo ln -s /usr/share/zoneminder /var/www/ 进行链接
重启apatch2 执行:sudo /etc/init.d/apatch2 restart
启动zoneminder: /etc/init.d/zoneminder start
浏览器地址输入: IP/zoneminder 即可看到zm页面。
问题1、
如果出现:
Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 119.
请执行:
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
refer:https://github.com/ZoneMinder/ZoneMinder/blob/master/distros/fedora/README.Fedora
问题2、
如果出现:
Starting ZoneMinder: Can't open config file '/etc/zm/zm.conf': Permission denied at /usr/share/perl5/ZoneMinder/Config.pm line 119.
请执行:
# chmod 740 /etc/zm/zm.conf
# chown root:www-data /etc/zm/zm.conf
refer: https://wiki.zoneminder.com/Ubuntu_Server_15.10_64-bit_with_Zoneminder_1.28.1_the_easy_way
问题3、
如果浏览器中出现:
ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone
请执行:
#sudo vi /etc/php5/apache2/php.ini
Search for Date and modify as following
data.timezone = Asia/Hong_Kong
如果你想知道支持哪些时区请访问 http://php.net/date.timezone
refer:https://wiki.zoneminder.com/Common_Issues_with_Zoneminder_Installation_on_Ubuntu
===================================================
必要工具
sudo apt-get install v4l-conf #用来查看camera信息的工具
sudo v4l-info /dev/video0 #查看video0信息
sudo apt-get install ffmpeg #用来录制mpeg视频流
===================================================
添加本地摄像头(usb camera):
Add New Monitor:
Source(/dev/video0) --> General --> Source Type = Local --> Function = Monitor
Source(/dev/video0) --> Source --> Device Path = /dev/video0 --> Device Format = PAL --> Capture Palette = YUYV --> Capture Width = 640 --> Capture Height = 480
Options config:
Options--> Images --> OPT_CAMBOZOLA (optional) = yes --> OPT_FFMPEG (optional) = yes --> PATH_FFMPEG = /usr/bin/ffmpeg
Options--> High B/W --> WEB_H_STREAM_METHOD = mpeg
====================================================
添加IP CAMERA
待续
===========================================================
错误 'Failed to open video device /dev/video0: Permission denied'
解决方法:
sudo adduser www-data video
sudo usermod -a -G video www-data
sudo /etc/init.d/apatch2 restart
错误“ZM_OPT_CAMBOZOLA is enabled, but the system cannot find /usr/share/zoneminder/www/cambozola.jar”
执行:
cd /usr/src && wget http://www.andywilcock.com/code/cambozola/cambozola-latest.tar.gz
tar -xzvf cambozola-latest.tar.gz
cp cambozola-0.935/dist/cambozola.jar /usr/share/zoneminder/www/
错误“socket_sendto( /var/run/zm/zms-593084s.sock ) failed: No such file or directory”
Enable CGI, Zoneminder and rewrite configuration in Apache.
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
Restart zoneminder and Apache
service apache2 reload
service zoneminder restart
service apache2 restart
Open Zoneminder in a web browser (http://server-ip/zm).
Click on Options - Paths Change PATH_ZMS to /zm/cgi-bin/nph-zms
============================================================
zmview
https://sourceforge.net/projects/zmviewer/
You can get it from app store.
https://github.com/skuda/ZoneMinder-Viewer
zmNinja
https://github.com/pliablepixels/zmNinja
====================================================
zoneminder 升级
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:iconnor/zoneminder
sudo apt-get update
???
amd64 build of zoneminder 1.28.0-13 in ubuntu precise RELEASE
https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-cluster/+build/6322502
====================================================
好文连接
https://wiki.zoneminder.com/General_Notes
http://www.pddesign.com.au/blog/articles/2014/home-surveillance-with-zoneminder-using-linux-pg01.php#.VzFreNR96K7
http://siripong-computer-tips.blogspot.kr/2011/10/zoneminder-troubleshooting-guide.html
http://www.tuicool.com/articles/viUjaa
http://www.linuxuser.co.uk/tutorials/zoneminder-cctv-tutorial
http://nullmailer-install-daemonize.bitbucket.org/