Difference between revisions of "General Notes"
Line 51: | Line 51: | ||
http://www.zoneminder.com/forums/viewtopic.php?t=5686&highlight=suse<br> | http://www.zoneminder.com/forums/viewtopic.php?t=5686&highlight=suse<br> | ||
http://www.zoneminder.com/forums/viewtopic.php?t=6221<br> | http://www.zoneminder.com/forums/viewtopic.php?t=6221<br> | ||
http://www.zoneminder.com/forums/viewtopic.php?t=6249<br> | |||
*Fedora4 notes | *Fedora4 notes |
Revision as of 11:02, 28 May 2006
Zoneminder build notes
- Installing from source
http://www.zoneminder.com/fileadmin/downloads/README.html
http://www.zoneminder.com/forums/viewtopic.php?t=5715
http://www.zoneminder.com/forums/viewtopic.php?t=5929
- ./configure --with-mysql=/usr/local/mysql
- --with-ffmpeg=/home/src/ffmpeg-0.4.9-pre1
- --with-lame=/home/src/lame-3.96.1/libmp3lame
- --with-webdir=/home/sites/Security.658Ridgecrest.com/web
- --with-cgidir=/home/sites/Security.658Ridgecrest.com/web
- --with-webuser=httpd
- --with-webgroup=httpd
- --with-libarch=lib
- --enable-debug=yes
OR
- ./configure --with-webdir=/var/www/htdocs/ZM
- --with-cgidir=/var/www/cgi-bin --sysconfdir=/etc
- --with-webuser=httpd
- --with-webgroup=httpd
OR
- http://www.zoneminder.com/forums/viewtopic.php?t=6053
- ./configure --with-webdir=/var/www/html/zm
- --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<password>
- Debian installation
http://www.zoneminder.com/forums/viewtopic.php?t=5391
http://www.zoneminder.com/forums/viewtopic.php?t=6215
- http://www.zoneminder.com/forums/viewtopic.php?t=5892
- ./configure --with-mysql=/usr
- --with-webdir=/var/www/zm
- --with-cgidir=/var/www/cgi-bin --sysconfdir=/etc
- --with-ffmpeg=/usr/local
- --with-webuser=www-data
- --with-webgroup=www-data CPPFLAGS="-I /usr/local/ssl/include -I /usr/local/lib"
- With a new install create and populate mysql databases.
http://www.zoneminder.com/forums/viewtopic.php?t=6023
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on <database name>.* to
'<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
Check zone.conf or zm.conf. Check that there are no bogus vesions of this file
lying around. "nobody" doesn't have shell access, choose a different Apache alias like
"httpd". The zmdc.log logs any errors.
zm.sock file must be able to be created.
- Build for Suse10
http://www.zoneminder.com/forums/viewtopic.php?t=5925
http://www.zoneminder.com/forums/viewtopic.php?t=5686&highlight=suse
http://www.zoneminder.com/forums/viewtopic.php?t=6221
http://www.zoneminder.com/forums/viewtopic.php?t=6249
- Fedora4 notes
http://www.zoneminder.com/forums/viewtopic.php?t=5991
Set web user and group correctly and set the log dir to a writeable location.
With FC4 there are three things that must be done to get ZM running,:
- is in the /etc/ld.so.conf.d/ dir created a file with 775 perm called zm.conf and add the line '/usr/local/lib' to it and type 'ldconfig' once it is added, also with a fresh install of FC4 make sure SE linux is disabled if you are not using it. Check your log path in options under the paths tab. This will tell you were the log are going to be put.
- Second make sure the path exists.
- Third create the log files if they do not exist and make sure that they have the correct permissions. If zm can not open and write the log files, it will not start.
- OpenSSl and openssl-devel
You should have these packages installed: openssl,openssl-devel,php-mysql To check if you have them, do rpm -qa | grep openssl
Apache
- permission problem
http://www.zoneminder.com/forums/viewtopic.php?t=5642 sudo -u apache /etc/rc.d/rc.zoneminder start now.. zmc and zma is running on user apache
- su issue
http://www.zoneminder.com/forums/viewtopic.php?t=5652
- http webserver must allows cgi execution
http://www.zoneminder.com/forums/viewtopic.php?t=5853
- /usr/local/etc/zm.conf must exist and what process owns it.
webuser and webgroup must be correct for apache to have ownership over zm.conf
BIOS issues
Turn off ACPI in the bios. ACPI is a power management configuration on the motherboard that interferes with the datacapture cards.
Brightness control
Brightness control script http://www.zoneminder.com/forums/viewtopic.php?t=3953&highlight=brightness http://www.zoneminder.com/forums/viewtopic.php?t=5680 http://www.zoneminder.com/forums/viewtopic.php?t=3657
contribs directory
contribs directory has user based files added to zoneminder
Combozola
http://www.zoneminder.com/forums/viewtopic.php?t=5745
CAPTURE card issues
http://www.zoneminder.com/forums/viewtopic.php?t=6042 Single chip with 4cameras can lead to image flipping.
http://www.zoneminder.com/forums/viewtopic.php?t=6024 LInux commands lspci ,dmesg BT878 card with 1 cip/4 ins - Provideo PV143
CAUSE NOTES field section
http://www.zoneminder.com/forums/viewtopic.php?t=6065
Database Mysql
Create a new database. http://www.zoneminder.com/forums/viewtopic.php?t=5754 database repair http://www.zoneminder.com/forums/viewtopic.php?t=5657&highlight=repair+database+mysql Mysql corrupted via bad BIOS. I pulled the battery for 5 minutes and slapped it back in. I booted, then started zoneminder. It didn't lock up! I went into the interface and found several lines of 'incorrect key file for table: 'E'Try to repair it' before the regular interface began. I stopped zoneminder and went into mysql - sure enough, the events and frames tables both had errors. I repaired them and restarted zoneminder successfully. The system is now running; I'm going to let it be and see if it dies as it did before.
- My personal recommendation is to try converting your database over to INNODB tables.
Researching the web I found this to be faster for larger tables (as events grow) and much more reliable. http://www.zoneminder.com/forums/viewtopic.php?t=6000 http://www.zoneminder.com/forums/viewtopic.php?t=6143 http://www.zoneminder.com/forums/viewtopic.php?t=5657 http://www.zoneminder.com/forums/viewtopic.php?t=6095
FFmpeg
- Install ffmpeg for Fedora with
yum -i ffmpeg yum -i ffmpeg-devel
- Install ffmpeg and ffmpeg-devel on Fedore4
http://www.zoneminder.com/forums/viewtopic.php?t=5601&sid=4e7192b74fe4306e341e9c4036727f7b rpm -ivh http://rpm.livna.org/livna-release4.rpm yum install ffmpeg ffmpeg-devel Place the devel stuff in /usr/include/ffmpeg Now configure, make, make install
http://www.zoneminder.com/forums/viewtopic.php?t=5576&sid=4e7192b74fe4306e341e9c4036727f7b
- After getting ffmpeg from CVS, do:
./configure , make, make install, make installibs
Gentoo
http://www.zoneminder.com/forums/viewtopic.php?t=5685 http://www.zoneminder.com/forums/viewtopic.php?t=4217&highlight=gentoo http://www.zoneminder.com/forums/viewtopic.php?t=5303&highlight=gentoo http://www.zoneminder.com/forums/viewtopic.php?t=3924&highlight=gentoo+start
Infrared illumination for nightvision
- http://www.infraredlab.com uses chips from:
- http://www.roithner-laser.com/LED_HP_multi_chip.html
- http://www.amasci.com/amateur/irgoggl.html
- http://www.roithner-laser.com/All_Da...t-c-060301.pdf
- p.42 super high power LED,array, metal PCB ,package with 12 paral 1 mm² power chips, 360° or 120°.Size: 72 x 32 mm²
- p.40 high power LED array, 6 chips, Jumbo package, wavelengths at 590 nm, 640 nm, 660 nm, 810 nm 880 nm, 920 nm, 950 nm, M10 x 1.5 mm thread package
- p.33 narrow beam power LED series, 8° viewing angle, 1 power chip, clear epoxy package, square beam, no dark beam center from bonding wire, M12 x1 thread package
Roithner provides high power infrared Leds to illuminate a street at distances of over 300m.
Image display problems
http://www.zoneminder.com/forums/viewtopic.php?t=6027
Firefox, colorzilla extensions
http://www.zoneminder.com/forums/viewtopic.php?t=5647
Kodicom capture card
- http://www.zoneminder.com/forums/viewtopic.php?t=5640
- http://www.zoneminder.com/forums/viewtopic.php?t=4130&highlight=kmc4400r
- http://www.zoneminder.com/forums/viewtopic.php?t=6158
- KMC-8800 8-chip bt878 capture card
http://www.zoneminder.com/forums/viewtopic.php?t=5609 http://www.linuxtv.org/v4lwiki/index.php/Kodicom_4400R http://www.zoneminder.com/forums/viewtopic.php?t=6012
- modprobe.conf file
http://www.zoneminder.com/forums/viewtopic.php?t=5508&postdays=0&postorder=asc&start=15 http://www.zoneminder.com/forums/viewtopic.php?t=6024 Edit your /etc/modprobe.conf file and add this line: options bttv card=77 "options bttv card =77" is a DEFAULT setting to get a card working. All screens must be same resolution.
- bttv settings
http://www.zoneminder.com/forums/viewtopic.php?t=5603&sid=4e7192b74fe4306e341e9c4036727f7b
LOGITECH QUICKCAM usb
- I'm using FC4 and had a similiar problem with a quickcam 4000.
I guess you are using the default module supplied with centos. I think, not sure about this though, that it is missing some capabilities. So I installed the pwc module (http://www.saillard.org/linux/pwc/INSTALL.en) and these crashes stopped. http://www.zoneminder.com/forums/viewtopic.php?t=5906
Message logs
http://www.zoneminder.com/forums/viewtopic.php?t=5771
MEMORy
SELinux was enabled
http://www.zoneminder.com/forums/viewtopic.php?t=6147
- Shared memory setting must be high.
http://www.zoneminder.com/forums/viewtopic.php?t=6024
frank@wdshss:/etc> cat sysctl.conf
- Disable response to broadcasts.
- You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
- enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
- enable ipV6 forwarding
- net.ipv6.conf.all.forwarding = 1
kernel.shmall = 134217728 kernel.shmmax = 134217728 http://www.zoneminder.com/forums/viewtopic.php?t=6000
Mocord, Record, Modect
http://www.zoneminder.com/forums/viewtopic.php?t=6120
MODPROBE
modprobe.conf mod = 133 or something like that for Kodicom http://www.zoneminder.com/forums/viewtopic.php?t=5603
Manual
http://www.zoneminder.com/fileadmin/downloads/README.html#_Toc125113490
MMS gateway and API software
GPRS or HTTP a Jpeg image to the MMS gateway server which in turn sends the image to a mobile phone
- http://www.redcoal.com/
- http://www.zoneminder.com/forums/viewtopic.php?t=6101
- http://wurfl.sourceforge.net/
Multiple zones
http://www.zoneminder.com/forums/viewtopic.php?t=6079
Perl package zmpgk.pl
http://www.zoneminder.com/forums/viewtopic.php?t=5801
Roundrobbin
http://www.zoneminder.com/forums/viewtopic.php?t=5658
Remote camera source
http://www.zoneminder.com/forums/viewtopic.php?t=5549&sid=4e7192b74fe4306e341e9c4036727f7b
Streaming
- rtp and raw streaming
http://www.zoneminder.com/forums/viewtopic.php?t=5572
SETTINgs
- "disable farm out wrtiting of imagess" if frame capture errors appear in log.
http://www.zoneminder.com/forums/viewtopic.php?t=5992
- color pallet, video hieght, or video width. Try starting with 320x240 (assuming ntsc) and try different pallets.
http://www.zoneminder.com/forums/viewtopic.php?t=6027&sid=9a52386394831b24741c67ba70cc1507
Timelapsed video
http://www.zoneminder.com/forums/viewtopic.php?t=6049
Truck detection links
http://www.zoneminder.com/forums/viewtopic.php?t=5858 http://www.zoneminder.com/forums/viewtopic.php?t=5184&highlight=truck+intersection http://www.cnssystems.ca/
- All things are possible and the example someone posted a while back of detecting trucks and buses, but not cars, passing over a distant intersection is probably appropriate for you. What I would suggest you need are quite high pixel differences (indicating difference from the background) and pretty small counts of changed pixels or blob sizes. You might find it useful to turn on diagnostic images initially (and only for a while as they slow everything down a lot) which will output what ZM thinks the differences etc are are in the images.
Update database after installing from RPM's
http://www.zoneminder.com/forums/viewtopic.php?t=5887 The command you enetered above only freshens it. zmupdate.pl --version= <?>
Ubuntu install
http://www.zoneminder.com/forums/viewtopic.php?t=5633 GUI package that installs Mplayer etc. http://ubuntuforums.org/showpost.php?p=356392 EXTRA_LIBS parameter in .configure script http://www.zoneminder.com/forums/viewtopic.php?t=6141
Using another ZoneMinder box as the remote IP camera source
http://www.zoneminder.com/forums/viewtopic.php?t=5595 http://www.zoneminder.com/forums/viewtopic.php?t=5549
Water marked
http://www.zoneminder.com/forums/viewtopic.php?t=4591&highlight=watermark http://www.zoneminder.com/forums/viewtopic.php?t=4188&highlight=watermark
xawtv
http://www.zoneminder.com/forums/viewtopic.php?t=5696 what from xawtv -hwscan? xawtv -device /dev/video?