Difference between revisions of "General Notes"

From ZoneMinder Wiki
Jump to navigationJump to search
(Increase Image size)
(moved distribution-specific notes to distribution's page)
Line 40: Line 40:
:> quit
:> quit
: mysqladmin reload</code>
: mysqladmin reload</code>
==== Debian Installation ====
* http://www.zoneminder.com/forums/viewtopic.php?t=5391<br>
* http://www.zoneminder.com/forums/viewtopic.php?t=6215<br>
* http://www.zoneminder.com/forums/viewtopic.php?t=5892<br>
:./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"
====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
==== SuSE 10 Notes ====
*http://www.zoneminder.com/forums/viewtopic.php?t=5925<br>
*http://www.zoneminder.com/forums/viewtopic.php?t=5686<br>
*http://www.zoneminder.com/forums/viewtopic.php?t=6221<br>
*http://www.zoneminder.com/forums/viewtopic.php?t=6249<br>
*Startup script
**http://www.zoneminder.com/forums/viewtopic.php?t=6353
==== Fedora4 Notes ====
* http://www.zoneminder.com/forums/viewtopic.php?t=5991<br>
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. '''
==== Debian Notes ====
http://www.zoneminder.com/forums/viewtopic.php?t=6261
==== Gentoo Notes====
* http://www.zoneminder.com/forums/viewtopic.php?t=5685&highlight=gentoo
* 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
[[Gentoo Install|Configuring a Gentoo System & ZoneMinder]]


==== Misc Notes (Anyone care to categorize?) ====
==== Misc Notes (Anyone care to categorize?) ====

Revision as of 08:08, 19 January 2007

Zoneminder Build Notes

Required for Building

  • MySQL www.lamphowto.com Notes on compiling MySQL from source
  • OpenSSL
  • PHP
  • Apache
  • Perl/Libperl

./configure will complain if anything is missing.

Installing from Source

./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

./configure --with-webdir=/var/www/html/zm
--with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<password>

Create and Populate the Database

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

Misc Notes (Anyone care to categorize?)

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".
zmdc.log or /var/log/messages log any errors.
zm.sock file must be able to be created.

Apache

Permissions Problems

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

Allowing CGI Execution (REQUIRED for ZM)

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

Turning off ACPI power management in the BIOS may help alleviate some issues with ZoneMinder and capture hardware.


Brightness control

Contribs Forum

The contribs forum contains contributions from ZoneMinder users like yourself!

Cambozola

Cambozola is a Java plugin that decodes multipart JPEG streams. Mozilla-based browser have native support, so this plugin is for browsers like Internet Explorer that lack that support.

Capture Card Issues

Image is Flipped

Scrambled Images

CAUSE NOTES field section

Database MySQL

Create a New Database

Repair a Database

Backup a Database

Delete Databases/Tables

Database Tricks/Tips

Update Database After Installing from RPM's

ffmpeg

  • Install ffmpeg for Fedora with

yum -i ffmpeg
yum -i ffmpeg-devel

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

./configure , make, make install, make installibs

Increase Image size

If you increase the image size on a camera, it's always best to close down any streams and restart ZM to make sure that all memory is released. http://www.zoneminder.com/forums/viewtopic.php?t=7049

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 Cards

Edit your /etc/modprobe.conf file and add this line:
options bttv card=77

All screens must be the same resolution.

note that under ubuntu that the file to edit is /etc/modprobe.d/aliases.

Logitech USB QuickCam

  • 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 Problems/Tweaks

SELinux Issues

cat sysctl.conf

  1. Disable response to broadcasts.
  2. You don't want yourself becoming a Smurf amplifier.

net.ipv4.icmp_echo_ignore_broadcasts = 1

  1. enable route verification on all interfaces

net.ipv4.conf.all.rp_filter = 1

  1. enable ipV6 forwarding
  2. net.ipv6.conf.all.forwarding = 1

kernel.shmall = 134217728 kernel.shmmax = 134217728

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

Official ZoneMinder Manual

http://www.zoneminder.com/fileadmin/downloads/README.html

MMS Gateway and API Aoftware

GPRS or HTTP a Jpeg image to the MMS gateway server which in turn sends the image to a mobile phone

Multiple zones

http://www.zoneminder.com/forums/viewtopic.php?t=6079

Perl Package zmpgk.pl

Roundrobin

Remote Camera Source/ Using Another ZM Box as a Source==

Simultaneous connections (number off ) to Web browser

Streaming

  • rtp and raw streaming

http://www.zoneminder.com/forums/viewtopic.php?t=5572

Settings

Timelapsed video

http://www.zoneminder.com/forums/viewtopic.php?t=6049

Vehicle Detection Links

  • 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.

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

what from xawtv -hwscan? xawtv -device /dev/video?

zmc daemon captures the images