<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jan</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jan"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Jan"/>
	<updated>2026-05-03T15:15:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1874</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1874"/>
		<updated>2007-01-22T13:22:16Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. It&amp;#039;s based on a sophisticated package management system that lets you choose from three releases of varying stability. The software packages included in the &amp;#039;&amp;#039;stable&amp;#039;&amp;#039; release have been tested thoroughly and are ideal for a server environment, whereas &amp;#039;&amp;#039;testing&amp;#039;&amp;#039; and &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; releases have more recent versions of software which usually contain some bugs. Ironically, Debian&amp;#039;s &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; release is often more stable than many other distributions&amp;#039; final releases.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Debian 3.1 install|Debian 3.1 + Zoneminder 1.22.x]] Installation Guide (ZM from source - without ffmpeg) using &amp;#039;&amp;#039;stable&amp;#039;&amp;#039; packages&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc Debian + ZM] Installation Guide (using a [http://www.spic.net/zoneminder/ debian ZM package] requiring &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0)&lt;br /&gt;
&lt;br /&gt;
==Installation Notes==&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5391&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6215&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5892&lt;br /&gt;
&lt;br /&gt;
:./configure --with-mysql=/usr &lt;br /&gt;
:--with-webdir=/var/www/zm &lt;br /&gt;
:--with-cgidir=/var/www/cgi-bin --sysconfdir=/etc&lt;br /&gt;
:--with-ffmpeg=/usr/local&lt;br /&gt;
:--with-webuser=www-data &lt;br /&gt;
:--with-webgroup=www-data CPPFLAGS=&amp;quot;-I /usr/local/ssl/include -I /usr/local/lib&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Additional Notes ==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6261&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Yadig&amp;diff=1873</id>
		<title>Yadig</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Yadig&amp;diff=1873"/>
		<updated>2007-01-22T13:13:14Z</updated>

		<summary type="html">&lt;p&gt;Jan: Yadig moved to Debian 3.1 install&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Debian 3.1 install]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian_init.d&amp;diff=1870</id>
		<title>Debian init.d</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian_init.d&amp;diff=1870"/>
		<updated>2007-01-22T12:42:40Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/etc/init.d/zm script - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
copy/paste the following into: &amp;#039;&amp;#039;&amp;#039;/etc/init.d/zm&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# description: Control ZoneMinder as a Service&lt;br /&gt;
# chkconfig: 2345 99 99&lt;br /&gt;
&lt;br /&gt;
# Source function library.&lt;br /&gt;
#. /etc/rc.d/init.d/functions&lt;br /&gt;
&lt;br /&gt;
prog=ZoneMinder&lt;br /&gt;
ZM_PATH_BIN=&amp;quot;/usr/local/bin&amp;quot;&lt;br /&gt;
command=&amp;quot;$ZM_PATH_BIN/zmpkg.pl&amp;quot;&lt;br /&gt;
&lt;br /&gt;
start() {&lt;br /&gt;
        echo -n &amp;quot;Starting $prog: &amp;quot;&lt;br /&gt;
        $command start&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; echo success&lt;br /&gt;
        [ $RETVAL != 0 ] &amp;amp;&amp;amp; echo failure&lt;br /&gt;
        echo&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; touch /var/lock/subsys/zm&lt;br /&gt;
        return $RETVAL&lt;br /&gt;
}&lt;br /&gt;
stop() {&lt;br /&gt;
        echo -n $&amp;quot;Stopping $prog: &amp;quot;&lt;br /&gt;
        $command stop&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; echo success&lt;br /&gt;
        [ $RETVAL != 0 ] &amp;amp;&amp;amp; echo failure&lt;br /&gt;
        echo&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; rm -f /var/lock/subsys/zm&lt;br /&gt;
}&lt;br /&gt;
status() {&lt;br /&gt;
        result=`$command status`&lt;br /&gt;
        if [ &amp;quot;$result&amp;quot; = &amp;quot;running&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;ZoneMinder is running&amp;quot;&lt;br /&gt;
                RETVAL=0&lt;br /&gt;
        else&lt;br /&gt;
                echo &amp;quot;ZoneMinder is stopped&amp;quot;&lt;br /&gt;
                RETVAL=1&lt;br /&gt;
        fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
&amp;#039;start&amp;#039;)&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;stop&amp;#039;)&lt;br /&gt;
        stop&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;restart&amp;#039;)&lt;br /&gt;
        stop&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;status&amp;#039;)&lt;br /&gt;
        status&lt;br /&gt;
        ;;&lt;br /&gt;
*)&lt;br /&gt;
        echo &amp;quot;Usage: $0 { start | stop | restart | status }&amp;quot;&lt;br /&gt;
        RETVAL=1&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
exit $RETVAL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
after creating the file...&lt;br /&gt;
 debian:~# chmod 755 /etc/init.d/zm&lt;br /&gt;
 debian:~# update-rc.d zm defaults&lt;br /&gt;
...to make ZM start automatically during boot&lt;br /&gt;
&lt;br /&gt;
[[Categories: Debian]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Talk:Helpful_user_contributed_resources&amp;diff=1869</id>
		<title>Talk:Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Talk:Helpful_user_contributed_resources&amp;diff=1869"/>
		<updated>2007-01-22T08:34:10Z</updated>

		<summary type="html">&lt;p&gt;Jan: organized distriution-specifics a bit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== organized distriution-specifics a bit ==&lt;br /&gt;
&lt;br /&gt;
hi, i saw that things were getting a bit messy, especially the distribution-specific stuff, so i went ahead and organized it. -jan&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Mandrake-Mandriva&amp;diff=1868</id>
		<title>Mandrake-Mandriva</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Mandrake-Mandriva&amp;diff=1868"/>
		<updated>2007-01-19T15:35:09Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mandriva Linux (formerly Mandrakelinux or Mandrake Linux) is a Linux distribution created by Mandriva (formerly Mandrakesoft). The first release was based on Red Hat Linux (version 5.1) and KDE (version 1.0) in July 1998. It has since diverged from Red Hat and has included a number of original tools mostly to ease system configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZoneMinder has worked well with Mandr* since v1.17.0 on Mandrake 9.2. This combo was the basis of the first ZMliveCD. &lt;br /&gt;
&lt;br /&gt;
RPM packages have been available since Mandrake 10.0. A link to download can be found here: http://www.zoneminder.com/wiki/index.php/ZMliveCD&lt;br /&gt;
&lt;br /&gt;
To install RPMs on a Mandriva system several perl modules that are not part of the Mandriva distro are required. RPMs for these are availible from the same dowload location as the zm packages.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Mandrake-Mandriva_Install|Installing Zoneminder 1.22.2 on Mandriva 2007.0 free]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Mandrake-Mandriva_Install&amp;diff=1867</id>
		<title>Mandrake-Mandriva Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Mandrake-Mandriva_Install&amp;diff=1867"/>
		<updated>2007-01-19T15:25:41Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Installing Zonenminder 1.22.2 on Mandriva 2007.0 free==&lt;br /&gt;
&lt;br /&gt;
 1.] install Mandriva 2007.0 free with all options, but Games. &lt;br /&gt;
&lt;br /&gt;
 NOTE:  &lt;br /&gt;
If you enable the Firewall ensure that you have access to your machine! &lt;br /&gt;
&lt;br /&gt;
 2.] Open a Terminal and become root: &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
# su &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 3.] update your sourcelist &lt;br /&gt;
A very good site for Mirrors is http://easyurpmi.zarb.org/ &lt;br /&gt;
-&amp;gt; here are a example of my sourcelist: &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
# urpmi.addmedia plf-free rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2007.0/free/release/binary/i586/ with hdlist.cz &lt;br /&gt;
&lt;br /&gt;
# urpmi.addmedia --update updates ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/updates/2007.0/i586/media/main/updates/ with media_info/hdlist.cz &lt;br /&gt;
&lt;br /&gt;
# urpmi.addmedia main ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2007.0/i586/media/main/release with media_info/hdlist.cz &lt;br /&gt;
&lt;br /&gt;
# urpmi.addmedia contrib ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2007.0/i586/media/contrib/release with media_info/hdlist.cz  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 4.] Install essential packets: &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
# urpmi ffmpeg xawtv phpmyadmin mysql libmysql-devel ant &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 5.] Starting MySQL: &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
# /etc/init.d/mysqld start &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 6.] Download, build and install ZM: &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
# cd /usr/local/src &lt;br /&gt;
# wget http://www2.zoneminder.com/downloads/ZoneMinder-1.22.2.tar.gz &lt;br /&gt;
# tar -xvzf ZoneMinder-1.22.2.tar.gz &lt;br /&gt;
# cd ZoneMinder-1.22.2 &lt;br /&gt;
# ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=usr/include/mysql --with-ffmpeg=/usr/bin &lt;br /&gt;
&lt;br /&gt;
# mysql mysql &amp;lt; db/zm_create.sql &lt;br /&gt;
&lt;br /&gt;
# mysql &lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; GRANT ALL PRIVILEGES ON zm.* TO &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; quit &lt;br /&gt;
&lt;br /&gt;
# mysqladmin reload &lt;br /&gt;
&lt;br /&gt;
# make install &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 7.] Install Cambozola &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
# cd /usr/local/src &lt;br /&gt;
# wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz &lt;br /&gt;
# tar xvfz cambozola-latest.tar.gz &lt;br /&gt;
# cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/html/zm &lt;br /&gt;
# chmod 775 /var/www/html/zm/cambozola.jar &lt;br /&gt;
&lt;br /&gt;
Then under the Images tab in the Web-Interface enable ZM_OPT_CAMBOZOLA &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s all. --&amp;gt; Should work now.&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=SUSE&amp;diff=1866</id>
		<title>SUSE</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=SUSE&amp;diff=1866"/>
		<updated>2007-01-19T15:18:04Z</updated>

		<summary type="html">&lt;p&gt;Jan: SUSE moved to SuSE&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SuSE]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1865</id>
		<title>SuSE</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1865"/>
		<updated>2007-01-19T15:18:04Z</updated>

		<summary type="html">&lt;p&gt;Jan: SUSE moved to SuSE&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SUSE is a major retail Linux distribution produced in Germany and owned by Novell, Inc.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[SuSE 10.1 and ZoneMinder]]&lt;br /&gt;
&lt;br /&gt;
== SuSE 10 Notes ==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5925&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5686&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6221&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6249&amp;lt;br&amp;gt;&lt;br /&gt;
*Startup script&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6353&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1864</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1864"/>
		<updated>2007-01-19T15:17:48Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Supported hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-specific guides==&lt;br /&gt;
[[Fedora]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]] / [[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] / [[ZMliveCD]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SuSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] / [[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1863</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1863"/>
		<updated>2007-01-19T14:29:05Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Distribution-Specific Guides */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Supported hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-specific guides==&lt;br /&gt;
[[Fedora]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SUSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]]&lt;br /&gt;
&lt;br /&gt;
[[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1862</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1862"/>
		<updated>2007-01-19T13:17:08Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Distribution-Specific Notes and Guides */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Supported hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-Specific Guides==&lt;br /&gt;
[[Fedora]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SUSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]]&lt;br /&gt;
&lt;br /&gt;
[[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Sabayon&amp;diff=1861</id>
		<title>Sabayon</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Sabayon&amp;diff=1861"/>
		<updated>2007-01-19T13:10:21Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SabayonLinux (formerly known as RR4 Linux/RR64 Linux) is a Gentoo based Linux distribution created by Fabio Erculiani.&lt;br /&gt;
&lt;br /&gt;
Sabayon differs from Gentoo in that instead of installing the entire operating system from source code, the initial install is made using pre-compiled binary packages. Sabayon, however, does include the source code. The distribution is currently available for x86 and x86-64 platforms. Sabayon uses the Portage system from Gentoo for package management, meaning that all updates are inline with Gentoo&amp;#039;s portage tree.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Sabayon Linux with ZM 1.22.3 Step-by-Step]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Slackware&amp;diff=1860</id>
		<title>Slackware</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Slackware&amp;diff=1860"/>
		<updated>2007-01-19T13:10:00Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Slackware was one of the earliest Linux distributions, and is the oldest, and most UNIX-like, distribution still being maintained. It has a policy of incorporating only stable releases of applications, standing mainly for design stability and simplicity.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Slackware 10.1]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1859</id>
		<title>Gentoo</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1859"/>
		<updated>2007-01-19T13:09:27Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gentoo is a Linux distribution named after the Gentoo penguin. It is designed to be modular, portable, easy to maintain, flexible, and optimized for the user&amp;#039;s machine. All tools and utilities are built from source code. For convenience, however, several large software packages are also available as precompiled binaries for various architectures via the Portage system.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Gentoo Install]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo ZioPRoTo]]&lt;br /&gt;
&lt;br /&gt;
==Additional Notes==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5685&amp;amp;highlight=gentoo&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=4217&amp;amp;highlight=gentoo&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5303&amp;amp;highlight=gentoo&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=3924&amp;amp;highlight=gentoo&lt;br /&gt;
[[Gentoo Install|Configuring a Gentoo System &amp;amp; ZoneMinder]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=General_Notes&amp;diff=1858</id>
		<title>General Notes</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=General_Notes&amp;diff=1858"/>
		<updated>2007-01-19T13:08:49Z</updated>

		<summary type="html">&lt;p&gt;Jan: moved distribution-specific notes to distribution&amp;#039;s page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Zoneminder Build Notes==&lt;br /&gt;
==== Required for Building ====&lt;br /&gt;
* MySQL [http://www.lamphowto.com  www.lamphowto.com] Notes on compiling MySQL from source&lt;br /&gt;
* OpenSSL&lt;br /&gt;
* PHP&lt;br /&gt;
* Apache&lt;br /&gt;
* Perl/Libperl&lt;br /&gt;
./configure will complain if anything is missing.&lt;br /&gt;
&lt;br /&gt;
==== Installing from Source ====&lt;br /&gt;
* http://www.zoneminder.com/fileadmin/downloads/README.html&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5715&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5929&amp;lt;br&amp;gt;&lt;br /&gt;
:./configure --with-mysql=/usr/local/mysql&lt;br /&gt;
:--with-ffmpeg=/home/src/ffmpeg-0.4.9-pre1&lt;br /&gt;
:--with-lame=/home/src/lame-3.96.1/libmp3lame&lt;br /&gt;
:--with-webdir=/home/sites/Security.658Ridgecrest.com/web&lt;br /&gt;
:--with-cgidir=/home/sites/Security.658Ridgecrest.com/web&lt;br /&gt;
:--with-webuser=httpd &lt;br /&gt;
:--with-webgroup=httpd&lt;br /&gt;
:--with-libarch=lib &lt;br /&gt;
:--enable-debug=yes &lt;br /&gt;
OR&lt;br /&gt;
:./configure --with-webdir=/var/www/htdocs/ZM&lt;br /&gt;
:--with-cgidir=/var/www/cgi-bin --sysconfdir=/etc&lt;br /&gt;
:--with-webuser=httpd&lt;br /&gt;
:--with-webgroup=httpd&lt;br /&gt;
OR&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6053&lt;br /&gt;
:./configure --with-webdir=/var/www/html/zm &lt;br /&gt;
:--with-cgidir=/var/www/cgi-bin ZM_DB_PASS=&amp;lt;password&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==== Create and Populate the Database ====&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5754&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6023&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:mysql mysql &amp;lt; db/zm_create.sql&lt;br /&gt;
:mysql mysql&lt;br /&gt;
:&amp;gt; grant select,insert,update,delete on &amp;lt;database name&amp;gt;.* to &amp;#039;&amp;lt;database user&amp;gt;&amp;#039;@localhost identified by &amp;#039;&amp;lt;database password&amp;gt;&amp;#039;;&lt;br /&gt;
:&amp;gt; quit&lt;br /&gt;
: mysqladmin reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Misc Notes (Anyone care to categorize?) ====&lt;br /&gt;
Check zone.conf or zm.conf. Check that there are no bogus vesions of this file lying around. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;quot;nobody&amp;quot; doesn&amp;#039;t have shell access, choose a different Apache alias like &amp;quot;httpd&amp;quot;. &amp;lt;br&amp;gt;&lt;br /&gt;
zmdc.log or /var/log/messages log any errors.&amp;lt;br&amp;gt;&lt;br /&gt;
zm.sock file must be able to be created.&lt;br /&gt;
&lt;br /&gt;
==Apache ==&lt;br /&gt;
&lt;br /&gt;
==== Permissions Problems ====&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5642&lt;br /&gt;
&amp;lt;code&amp;gt;sudo -u apache /etc/rc.d/rc.zoneminder start&amp;lt;/code&amp;gt;&lt;br /&gt;
** now.. zmc and zma is running on user apache&lt;br /&gt;
&lt;br /&gt;
==== su Issue ====&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5652&lt;br /&gt;
&lt;br /&gt;
==== Allowing CGI Execution (REQUIRED for ZM) ====&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5853&lt;br /&gt;
*/usr/local/etc/zm.conf  must exist and what process owns it.&lt;br /&gt;
webuser and webgroup must be correct for apache to have ownership over zm.conf&lt;br /&gt;
&lt;br /&gt;
==BIOS Issues==&lt;br /&gt;
Turning off ACPI power management in the BIOS may help alleviate some issues with ZoneMinder and capture hardware. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Brightness control==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=3953&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5680&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=3657&lt;br /&gt;
&lt;br /&gt;
== Contribs Forum==&lt;br /&gt;
The [http://www.zoneminder.com/forums/viewforum.php?f=9 contribs forum] contains contributions from ZoneMinder users like yourself!&lt;br /&gt;
&lt;br /&gt;
==Cambozola==&lt;br /&gt;
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.&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5745&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6320&lt;br /&gt;
&lt;br /&gt;
==Capture Card Issues==&lt;br /&gt;
==== Image is Flipped ====&lt;br /&gt;
* Applies to 4 inputs on one chip:&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6042&lt;br /&gt;
&lt;br /&gt;
==== Scrambled Images ====&lt;br /&gt;
* Applies to 4 inputs on one chip, using lspci and dmesg to determine hardware.&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6024&lt;br /&gt;
&lt;br /&gt;
==CAUSE NOTES field section==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6065&lt;br /&gt;
&lt;br /&gt;
==Database MySQL==&lt;br /&gt;
==== Create a New Database ==== &lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5754&lt;br /&gt;
&lt;br /&gt;
==== Repair a Database ==== &lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5657&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5845&lt;br /&gt;
&lt;br /&gt;
==== Backup a Database ====&lt;br /&gt;
&lt;br /&gt;
==== Delete Databases/Tables ====&lt;br /&gt;
&lt;br /&gt;
==== Database Tricks/Tips ==== &lt;br /&gt;
* My personal recommendation is to try converting your database over to INNODB tables.&lt;br /&gt;
** Researching the web I found this to be faster for larger tables (as events grow) and much more reliable. &lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6000&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6143&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5657&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6095&lt;br /&gt;
&lt;br /&gt;
====Update Database After Installing from RPM&amp;#039;s====&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5887&lt;br /&gt;
&lt;br /&gt;
== ffmpeg ==&lt;br /&gt;
*Install ffmpeg for Fedora with&lt;br /&gt;
yum -i  ffmpeg&amp;lt;br&amp;gt;&lt;br /&gt;
yum -i ffmpeg-devel&lt;br /&gt;
&lt;br /&gt;
*Install ffmpeg and ffmpeg-devel on Fedore4&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=5601&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
rpm -ivh http://rpm.livna.org/livna-release4.rpm&lt;br /&gt;
yum install ffmpeg ffmpeg-devel&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Place the devel stuff in /usr/include/ffmpeg&lt;br /&gt;
Now configure, make, make install&lt;br /&gt;
&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5576&amp;amp;sid=4e7192b74fe4306e341e9c4036727f7b&lt;br /&gt;
*After getting ffmpeg from CVS, do:&lt;br /&gt;
&amp;lt;code&amp;gt;./configure , make,  make install, make installibs&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Increase Image size==&lt;br /&gt;
If you increase the image size on a camera, it&amp;#039;s always best to close down any streams and restart ZM to make sure that all memory is released.&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=7049&lt;br /&gt;
&lt;br /&gt;
==Image display problems==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6027&lt;br /&gt;
&lt;br /&gt;
==Firefox, Colorzilla Extensions==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5647&lt;br /&gt;
&lt;br /&gt;
==Kodicom Capture Cards==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5640&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=4130&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6158&lt;br /&gt;
*KMC-8800 8-chip bt878 capture card&lt;br /&gt;
** http://www.zoneminder.com/forums/viewtopic.php?t=5609&lt;br /&gt;
** http://www.linuxtv.org/v4lwiki/index.php/Kodicom_4400R&lt;br /&gt;
** http://www.zoneminder.com/forums/viewtopic.php?t=6012&lt;br /&gt;
&lt;br /&gt;
*modprobe.conf file&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=5508&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;start=15&lt;br /&gt;
** http://www.zoneminder.com/forums/viewtopic.php?t=6024&lt;br /&gt;
Edit your /etc/modprobe.conf file and add this line:&amp;lt;br&amp;gt;&lt;br /&gt;
options bttv card=77&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.linux.com/howtos/Webcam-HOWTO/dev-intro.shtml&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6892&lt;br /&gt;
All screens must be the same resolution.&lt;br /&gt;
&lt;br /&gt;
*bttv settings &lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=5603&amp;amp;sid=4e7192b74fe4306e341e9c4036727f7b&lt;br /&gt;
&lt;br /&gt;
note that under ubuntu that the file to edit is /etc/modprobe.d/aliases.&lt;br /&gt;
&lt;br /&gt;
==Logitech USB QuickCam==&lt;br /&gt;
*I&amp;#039;m using FC4 and had a similiar problem with a quickcam 4000.&lt;br /&gt;
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.&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5906&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Message Logs==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5771&lt;br /&gt;
&lt;br /&gt;
==Memory Problems/Tweaks==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6242&lt;br /&gt;
*Shared memory setting must be high.&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6024&lt;br /&gt;
&lt;br /&gt;
==SELinux Issues==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6337&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=4836&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6147&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cat sysctl.conf&lt;br /&gt;
# Disable response to broadcasts.&lt;br /&gt;
# You don&amp;#039;t want yourself becoming a Smurf amplifier.&lt;br /&gt;
net.ipv4.icmp_echo_ignore_broadcasts = 1&lt;br /&gt;
# enable route verification on all interfaces&lt;br /&gt;
net.ipv4.conf.all.rp_filter = 1&lt;br /&gt;
# enable ipV6 forwarding&lt;br /&gt;
#net.ipv6.conf.all.forwarding = 1&lt;br /&gt;
kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6000&lt;br /&gt;
&lt;br /&gt;
==Mocord, Record, Modect==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6120&lt;br /&gt;
&lt;br /&gt;
==Modprobe==&lt;br /&gt;
modprobe.conf &lt;br /&gt;
mod = 133 or something like that for Kodicom&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5603&lt;br /&gt;
&lt;br /&gt;
==Official ZoneMinder Manual==&lt;br /&gt;
http://www.zoneminder.com/fileadmin/downloads/README.html&lt;br /&gt;
&lt;br /&gt;
==MMS Gateway and API Aoftware==&lt;br /&gt;
GPRS or HTTP a Jpeg image to the MMS gateway server which in turn sends the image to a mobile phone&lt;br /&gt;
*http://www.redcoal.com/&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6101&lt;br /&gt;
*http://wurfl.sourceforge.net/&lt;br /&gt;
*http://www.mig.co.za&lt;br /&gt;
&lt;br /&gt;
==Multiple zones==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6079&lt;br /&gt;
&lt;br /&gt;
==Perl Package zmpgk.pl==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5801&lt;br /&gt;
&lt;br /&gt;
==Roundrobin==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5658&lt;br /&gt;
&lt;br /&gt;
==Remote Camera Source/ Using Another ZM Box as a Source====&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5549&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5595&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5549&lt;br /&gt;
&lt;br /&gt;
==Simultaneous connections (number off ) to Web browser==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6765&lt;br /&gt;
&lt;br /&gt;
==Streaming ==&lt;br /&gt;
*rtp and raw streaming&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5572&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
*&amp;quot;disable farm out writing of images&amp;quot; if frame capture errors appear in log.&amp;lt;br&amp;gt;&lt;br /&gt;
** http://www.zoneminder.com/forums/viewtopic.php?t=5992&lt;br /&gt;
&lt;br /&gt;
*color pallet, video hieght, or video width. Try starting with 320x240 (assuming ntsc) and try different pallets. &lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6027&amp;amp;sid=9a52386394831b24741c67ba70cc1507&lt;br /&gt;
&lt;br /&gt;
==Timelapsed video==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6049&lt;br /&gt;
&lt;br /&gt;
==Vehicle Detection Links==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5858&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5184&amp;amp;highlight=truck+intersection&lt;br /&gt;
*http://www.cnssystems.ca/&lt;br /&gt;
&lt;br /&gt;
*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.&lt;br /&gt;
&lt;br /&gt;
==Water marked==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=4591&amp;amp;highlight=watermark&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=4188&amp;amp;highlight=watermark&lt;br /&gt;
&lt;br /&gt;
==xawtv ==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5696&lt;br /&gt;
what from xawtv -hwscan?&lt;br /&gt;
xawtv -device /dev/video?&lt;br /&gt;
&lt;br /&gt;
==zmc daemon captures the images==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6146&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1857</id>
		<title>Gentoo</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1857"/>
		<updated>2007-01-19T13:08:02Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gentoo is a Linux distribution named after the Gentoo penguin. It is designed to be modular, portable, easy to maintain, flexible, and optimized for the user&amp;#039;s machine. All tools and utilities are built from source code. For convenience, however, several large software packages are also available as precompiled binaries for various architectures via the Portage system.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Gentoo Install]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo ZioPRoTo]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5685&amp;amp;highlight=gentoo&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=4217&amp;amp;highlight=gentoo&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5303&amp;amp;highlight=gentoo&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=3924&amp;amp;highlight=gentoo&lt;br /&gt;
[[Gentoo Install|Configuring a Gentoo System &amp;amp; ZoneMinder]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1856</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1856"/>
		<updated>2007-01-19T13:07:32Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. It&amp;#039;s based on a sophisticated package management system that lets you choose from three releases of varying stability. The software packages included in the &amp;#039;&amp;#039;stable&amp;#039;&amp;#039; release have been tested thoroughly and are ideal for a server environment, whereas &amp;#039;&amp;#039;testing&amp;#039;&amp;#039; and &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; releases have more recent versions of software which usually contain some bugs. Ironically, Debian&amp;#039;s &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; release is often more stable than many other distributions&amp;#039; final releases.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc thorough Debian/ZM installation guide] using a [http://www.spic.net/zoneminder/ zoneminder debian package] which requires &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0&lt;br /&gt;
&lt;br /&gt;
[[Yadig|yet another Debian/ZM installation guide]] - package selection and compiling ZM from source (without ffmpeg) in a few quick steps&lt;br /&gt;
&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
==Installation Notes==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5391&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6215&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5892&amp;lt;br&amp;gt;&lt;br /&gt;
:./configure --with-mysql=/usr &lt;br /&gt;
:--with-webdir=/var/www/zm &lt;br /&gt;
:--with-cgidir=/var/www/cgi-bin --sysconfdir=/etc&lt;br /&gt;
:--with-ffmpeg=/usr/local&lt;br /&gt;
:--with-webuser=www-data &lt;br /&gt;
:--with-webgroup=www-data CPPFLAGS=&amp;quot;-I /usr/local/ssl/include -I /usr/local/lib&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Additional Notes ==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6261&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1855</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1855"/>
		<updated>2007-01-19T13:07:01Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Fedora Project is a Red Hat sponsored, community-supported open source project. Its stated goal is to promote the rapid progress of free (as in freedom) and open source software and content, and its rapid innovation is possible using open processes and public forums.&lt;br /&gt;
&lt;br /&gt;
The project is led by the Fedora Project Board, which is comprised of community leaders and Red Hat members, and this group steers the direction of the project and of Fedora Core, the Linux distribution it develops. Red Hat employees work with the code alongside community members, and many Fedora Project innovations make their way into new releases of Red Hat Enterprise Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is developed on the Fedora distribution and no special actions are usually required for installation.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
==Fedora4 Notes==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5991&amp;lt;br&amp;gt;&lt;br /&gt;
Set web user and group correctly and set the log dir to a writeable location.&lt;br /&gt;
With FC4 there are three things that must be done to get ZM running,:&lt;br /&gt;
#is in the /etc/ld.so.conf.d/ dir created a file with 775 perm called zm.conf and add the line &amp;#039;/usr/local/lib&amp;#039; to it and type &amp;#039;ldconfig&amp;#039; 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. &lt;br /&gt;
#Second make sure the path exists. &lt;br /&gt;
#Third create the log files if they do not exist and make sure that they have the correct permissions. &amp;#039;&amp;#039;&amp;#039;If zm can not open and write the log files, it will not start. &amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1854</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1854"/>
		<updated>2007-01-19T13:03:44Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Fedora Project is a Red Hat sponsored, community-supported open source project. Its stated goal is to promote the rapid progress of free (as in freedom) and open source software and content, and its rapid innovation is possible using open processes and public forums.&lt;br /&gt;
&lt;br /&gt;
The project is led by the Fedora Project Board, which is comprised of community leaders and Red Hat members, and this group steers the direction of the project and of Fedora Core, the Linux distribution it develops. Red Hat employees work with the code alongside community members, and many Fedora Project innovations make their way into new releases of Red Hat Enterprise Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is developed on the Fedora distribution and no special actions are usually required for installation.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
==== Fedora4 Notes ====&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5991&amp;lt;br&amp;gt;&lt;br /&gt;
Set web user and group correctly and set the log dir to a writeable location.&lt;br /&gt;
With FC4 there are three things that must be done to get ZM running,:&lt;br /&gt;
#is in the /etc/ld.so.conf.d/ dir created a file with 775 perm called zm.conf and add the line &amp;#039;/usr/local/lib&amp;#039; to it and type &amp;#039;ldconfig&amp;#039; 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. &lt;br /&gt;
#Second make sure the path exists. &lt;br /&gt;
#Third create the log files if they do not exist and make sure that they have the correct permissions. &amp;#039;&amp;#039;&amp;#039;If zm can not open and write the log files, it will not start. &amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1853</id>
		<title>SuSE</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1853"/>
		<updated>2007-01-19T13:02:55Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SUSE is a major retail Linux distribution produced in Germany and owned by Novell, Inc.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[SuSE 10.1 and ZoneMinder]]&lt;br /&gt;
&lt;br /&gt;
== SuSE 10 Notes ==&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5925&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=5686&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6221&amp;lt;br&amp;gt;&lt;br /&gt;
*http://www.zoneminder.com/forums/viewtopic.php?t=6249&amp;lt;br&amp;gt;&lt;br /&gt;
*Startup script&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6353&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=1852</id>
		<title>Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=1852"/>
		<updated>2007-01-19T13:02:20Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ubuntu is a Linux distribution based on Debian. It&amp;#039;s a good system for a home / office user and the install CD installs &amp;#039;most everything the home / office user will need.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Ubuntu 5.10]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Dapper]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Alternate]] (cut-n-paste)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.10]]&lt;br /&gt;
&lt;br /&gt;
==Installation Notes==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5633&lt;br /&gt;
GUI package that installs Mplayer etc.&lt;br /&gt;
http://ubuntuforums.org/showpost.php?p=356392&lt;br /&gt;
EXTRA_LIBS parameter in .configure script&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6141&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
[http://ubuntulinux.org http://ubuntulinux.org]&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1851</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1851"/>
		<updated>2007-01-19T13:01:25Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. It&amp;#039;s based on a sophisticated package management system that lets you choose from three releases of varying stability. The software packages included in the &amp;#039;&amp;#039;stable&amp;#039;&amp;#039; release have been tested thoroughly and are ideal for a server environment, whereas &amp;#039;&amp;#039;testing&amp;#039;&amp;#039; and &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; releases have more recent versions of software which usually contain some bugs. Ironically, Debian&amp;#039;s &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; release is often more stable than many other distributions&amp;#039; final releases.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc thorough Debian/ZM installation guide] using a [http://www.spic.net/zoneminder/ zoneminder debian package] which requires &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0&lt;br /&gt;
&lt;br /&gt;
[[Yadig|yet another Debian/ZM installation guide]] - package selection and compiling ZM from source (without ffmpeg) in a few quick steps&lt;br /&gt;
&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
==Installation Notes==&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5391&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=6215&amp;lt;br&amp;gt;&lt;br /&gt;
* http://www.zoneminder.com/forums/viewtopic.php?t=5892&amp;lt;br&amp;gt;&lt;br /&gt;
:./configure --with-mysql=/usr &lt;br /&gt;
:--with-webdir=/var/www/zm &lt;br /&gt;
:--with-cgidir=/var/www/cgi-bin --sysconfdir=/etc&lt;br /&gt;
:--with-ffmpeg=/usr/local&lt;br /&gt;
:--with-webuser=www-data &lt;br /&gt;
:--with-webgroup=www-data CPPFLAGS=&amp;quot;-I /usr/local/ssl/include -I /usr/local/lib&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1850</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1850"/>
		<updated>2007-01-19T12:56:54Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Fedora Project is a Red Hat sponsored, community-supported open source project. Its stated goal is to promote the rapid progress of free (as in freedom) and open source software and content, and its rapid innovation is possible using open processes and public forums.&lt;br /&gt;
&lt;br /&gt;
The project is led by the Fedora Project Board, which is comprised of community leaders and Red Hat members, and this group steers the direction of the project and of Fedora Core, the Linux distribution it develops. Red Hat employees work with the code alongside community members, and many Fedora Project innovations make their way into new releases of Red Hat Enterprise Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is developed on the Fedora distribution and no special actions are usually required for installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1849</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1849"/>
		<updated>2007-01-19T12:56:44Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Fedora Project is a Red Hat sponsored, community-supported open source project. Its stated goal is to promote the rapid progress of free (as in freedom) and open source software and content, and its rapid innovation is possible using open processes and public forums.&lt;br /&gt;
&lt;br /&gt;
The project is led by the Fedora Project Board, which is comprised of community leaders and Red Hat members, and this group steers the direction of the project and of Fedora Core, the Linux distribution it develops. Red Hat employees work with the code alongside community members, and many Fedora Project innovations make their way into new releases of Red Hat Enterprise Linux.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is developed on the Fedora distribution and no special actions are usually required for installation&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Sabayon&amp;diff=1848</id>
		<title>Sabayon</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Sabayon&amp;diff=1848"/>
		<updated>2007-01-19T12:53:36Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SabayonLinux (formerly known as RR4 Linux/RR64 Linux) is a Gentoo based Linux distribution created by Fabio Erculiani.&lt;br /&gt;
&lt;br /&gt;
Sabayon differs from Gentoo in that instead of installing the entire operating system from source code, the initial install is made using pre-compiled binary packages. Sabayon, however, does include the source code. The distribution is currently available for x86 and x86-64 platforms. Sabayon uses the Portage system from Gentoo for package management, meaning that all updates are inline with Gentoo&amp;#039;s portage tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Sabayon Linux with ZM 1.22.3 Step-by-Step]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1847</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1847"/>
		<updated>2007-01-19T12:52:44Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Distribution-Specific Notes/Guides */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Supported hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-Specific Notes and Guides==&lt;br /&gt;
[[Fedora]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Slackware]]&lt;br /&gt;
&lt;br /&gt;
[[SUSE]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]]&lt;br /&gt;
&lt;br /&gt;
[[Sabayon]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1846</id>
		<title>Gentoo</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1846"/>
		<updated>2007-01-19T12:47:57Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gentoo is a Linux distribution named after the Gentoo penguin. It is designed to be modular, portable, easy to maintain, flexible, and optimized for the user&amp;#039;s machine. All tools and utilities are built from source code. For convenience, however, several large software packages are also available as precompiled binaries for various architectures via the Portage system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Gentoo Install]]&lt;br /&gt;
&lt;br /&gt;
[[Gentoo ZioPRoTo]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1845</id>
		<title>Gentoo</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo&amp;diff=1845"/>
		<updated>2007-01-19T12:42:37Z</updated>

		<summary type="html">&lt;p&gt;Jan: Gentoo moved to Gentoo ZioPRoTo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Gentoo ZioPRoTo]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_ZioPRoTo&amp;diff=1844</id>
		<title>Gentoo ZioPRoTo</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_ZioPRoTo&amp;diff=1844"/>
		<updated>2007-01-19T12:42:37Z</updated>

		<summary type="html">&lt;p&gt;Jan: Gentoo moved to Gentoo ZioPRoTo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I wrote a little bit of documentation, I guess this might be good for the Community.&lt;br /&gt;
&lt;br /&gt;
ZioPRoTo (Saverio Proto)&lt;br /&gt;
&lt;br /&gt;
http://zioproto.ninux.org/howto/ZoneMinder%20on%20Gentoo%20HowTo%20ZioPRoTo%20ENGLISH%20V1pre2.pdf&lt;br /&gt;
http://zioproto.ninux.org/howto/ZoneMinder%20on%20Gentoo%20HowTo%20ZioPRoTo%20V1pre2.pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This document tells you how to make a ZoneMinder Server on Gentoo Linux&lt;br /&gt;
I spent a couple of days reading the ZoneMinder Forum to have a nice ZoneMinder installation on&lt;br /&gt;
Gentoo, so in this thread I&amp;#039;m trying to write down the complete guide Smile&lt;br /&gt;
Few easy steps to install ZoneMinder on Gentoo Smile&lt;br /&gt;
First of all install Gentoo&lt;br /&gt;
I used version 2006.1 to write the HowTo&lt;br /&gt;
Grab the Live CD and make a networkless installation, installing no extra packages. Just the base&lt;br /&gt;
system.&lt;br /&gt;
Once installed modify the file /etc/make.conf&lt;br /&gt;
You must set ACCEPT_KEYWORDS=&amp;quot;~x86&amp;quot; because ZoneMinder is still not stable in the&lt;br /&gt;
Portage. This will change in the future, keep in mind this document is dated October 2006&lt;br /&gt;
SYNC and GENTOO_MIRRORS are just to have faster download sources.&lt;br /&gt;
Here is my Make.conf example:&lt;br /&gt;
------------------------------------------------------------------------------------------&lt;br /&gt;
# These settings were set by the catalyst build script that&lt;br /&gt;
automatically built this stage&lt;br /&gt;
# Please consult /etc/make.conf.example for a more detailed&lt;br /&gt;
example&lt;br /&gt;
#CFLAGS=&amp;quot;-O2 -march=i686 -pipe&amp;quot;&lt;br /&gt;
CFLAGS=&amp;quot;-march=i686 -O2 -pipe&amp;quot;&lt;br /&gt;
CHOST=&amp;quot;i686-pc-linux-gnu&amp;quot;&lt;br /&gt;
CXXFLAGS=&amp;quot;${CFLAGS}&amp;quot;&lt;br /&gt;
MAKEOPTS=&amp;quot;&amp;quot;&lt;br /&gt;
ACCEPT_KEYWORDS=&amp;quot;~x86&amp;quot;&lt;br /&gt;
USE=&amp;quot;-cups mpeg apache2 php mysql -X java samba -gtk swat png tiff&lt;br /&gt;
gif jpeg -opengl alsa -firefox -kde dvdr encode mp3 vorbis -gnome&lt;br /&gt;
-new-login xml graphviz bzip2 bash-completion&amp;quot;&lt;br /&gt;
FEATURES=&amp;quot;&amp;quot;&lt;br /&gt;
SYNC=&amp;quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&amp;quot;&lt;br /&gt;
GENTOO_MIRRORS=&amp;quot;ftp://ftp.unina.it/pub/linux/distributions/gentoo&amp;quot;&lt;br /&gt;
LINGUAS=&amp;quot;it&amp;quot;&lt;br /&gt;
--------------------------------------------------------------------------------------------&lt;br /&gt;
Now you can go ahead and use emerge to install what you need:&lt;br /&gt;
emerge --sync update list of packets&lt;br /&gt;
emerge portage update portage&lt;br /&gt;
emerge --update world update all system&lt;br /&gt;
etc-update update config files&lt;br /&gt;
emerge libpcre If you dont install this manually now, later on&lt;br /&gt;
zoneminder will complain about this in the syslog.&lt;br /&gt;
emerge zoneminder zoneminder, automatically this will also install apache2&lt;br /&gt;
mysql and php&lt;br /&gt;
When emerge is done, last few lines on the console will show how to modify /etc/zm.conf and how&lt;br /&gt;
to prepare the mysql database.&lt;br /&gt;
Let’s see now these two steps:&lt;br /&gt;
I used apache2, with apache2 may be a little different&lt;br /&gt;
/etc/zm.conf&lt;br /&gt;
-------------------------------------------------------&lt;br /&gt;
ZM_PATH_BUILD = /usr/share/zoneminder&lt;br /&gt;
ZM_PATH_WEB = /var/www/localhost/htdocs/zoneminder&lt;br /&gt;
ZM_PATH_CGI = /var/www/localhost/cgi-bin&lt;br /&gt;
# ZoneMinder database hostname or ip address&lt;br /&gt;
ZM_DB_HOST=localhost&lt;br /&gt;
# ZoneMinder database name&lt;br /&gt;
ZM_DB_NAME=zm&lt;br /&gt;
# ZoneMinder database user&lt;br /&gt;
ZM_DB_USER=zm&lt;br /&gt;
# ZoneMinder database password&lt;br /&gt;
ZM_DB_PASS=zm&lt;br /&gt;
---------------------------------------------------------&lt;br /&gt;
Now run mysql_install_db if this is your first mysql startup.&lt;br /&gt;
And then mysql /etc/init.d/mysql start&lt;br /&gt;
Now we create the database tables needed by zoneminder:&lt;br /&gt;
mysql -u root &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
Into /etc/zm.conf just use root as your DB user so you dont have to create a user. Of course it&lt;br /&gt;
is better to create a user, but I’m not explaining this here now.&lt;br /&gt;
Now let’s start apache2 /etc/init.d/apache2 start. Point your browser at&lt;br /&gt;
http://IP/zoneminder and we should see the ZoneMinder console.&lt;br /&gt;
We are almost done, just a few things to fix:&lt;br /&gt;
to make everything start automatically when the machine boots:&lt;br /&gt;
rc-update add apache2 default&lt;br /&gt;
rc-update add mysql default&lt;br /&gt;
rc-update add zoneminder default&lt;br /&gt;
Now modify /etc/sysctl.conf inserting these two lines:&lt;br /&gt;
kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&lt;br /&gt;
If you dont do this, ZoneMinder won’t have enough shared memory and will not work with images&lt;br /&gt;
bigger than 320x240.&lt;br /&gt;
The Start/Stop script provided with the package is not working, so on the ZoneMinder forum I&lt;br /&gt;
found information about how to fix the problem:&lt;br /&gt;
Modify /etc/passwd&lt;br /&gt;
Replace:&lt;br /&gt;
apache:x:81:81:added by portage for apache:/var/www:/usr/sbin/nologin&lt;br /&gt;
with:&lt;br /&gt;
apache:x:81:81:added by portage for apache:/var/www:/bin/bash&lt;br /&gt;
We let the apache user execute commando (warning this is a securty threat!)&lt;br /&gt;
We put this brand new file /etc/init.d/zoneminder:&lt;br /&gt;
---------------------------------------------------------------------------------------------------&lt;br /&gt;
#!/sbin/runscript&lt;br /&gt;
# Start and stop zoneminder (for Gentoo)&lt;br /&gt;
opts=&amp;quot;start stop status&amp;quot;&lt;br /&gt;
depend() {&lt;br /&gt;
use mysql apache2&lt;br /&gt;
}&lt;br /&gt;
prog=ZoneMinder&lt;br /&gt;
ZM_PATH_BIN=&amp;quot;/usr/bin&amp;quot;&lt;br /&gt;
command=&amp;quot;$ZM_PATH_BIN/zmpkg.pl&amp;quot;&lt;br /&gt;
start() {&lt;br /&gt;
ebegin &amp;quot;Starting $prog&amp;quot;&lt;br /&gt;
$command start&lt;br /&gt;
eend $? &amp;quot;Failed to start $prog&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
stop() {&lt;br /&gt;
ebegin &amp;quot;Stopping $prog&amp;quot;&lt;br /&gt;
$command stop&lt;br /&gt;
eend $? &amp;quot;Failed to stop $prog&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
status() {&lt;br /&gt;
result=`$command status`&lt;br /&gt;
if [ &amp;quot;$result&amp;quot; = &amp;quot;running&amp;quot; ]; then&lt;br /&gt;
echo &amp;quot;ZoneMinder is running&amp;quot;&lt;br /&gt;
RETVAL=0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;ZoneMinder is stopped&amp;quot;&lt;br /&gt;
RETVAL=1&lt;br /&gt;
fi&lt;br /&gt;
exit ${RETVAL}&lt;br /&gt;
}&lt;br /&gt;
--------------------------------------------------------------------------------------------------------&lt;br /&gt;
Start/stop script is fixed.&lt;br /&gt;
Last patches:&lt;br /&gt;
cd /var/www/localhost/htdocs/zoneminder&lt;br /&gt;
chmod 777 events/&lt;br /&gt;
mkdir temp/&lt;br /&gt;
chmod 777 temp/&lt;br /&gt;
I hope this will be useful to someone until ZoneMinder becames a stable package for Gentoo &lt;br /&gt;
ZioPRoTo (Saverio Proto)&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1843</id>
		<title>SuSE</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1843"/>
		<updated>2007-01-19T12:40:08Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SUSE is a major retail Linux distribution produced in Germany and owned by Novell, Inc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[SuSE 10.1 and ZoneMinder]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1842</id>
		<title>SuSE</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=SuSE&amp;diff=1842"/>
		<updated>2007-01-19T12:40:02Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SUSE is a major retail Linux distribution produced in Germany and owned by Novell, Inc.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[SuSE 10.1 and ZoneMinder]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=1841</id>
		<title>Supported distributions</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=1841"/>
		<updated>2007-01-19T12:35:44Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[RedHat]] 7.2, 7.3, 8.0, 9.0&lt;br /&gt;
&lt;br /&gt;
[[Fedora]] Core 1, 2, 3, 4, 5 (rpms available, see forum)&lt;br /&gt;
&lt;br /&gt;
[[CentOS]] 4.1, 4.2, 4.3&lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] 9.2, 10.0, 10.1, 2006, 2007&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]] 5.10, 6.06&lt;br /&gt;
&lt;br /&gt;
[[SUSE]] 8.1, 9.2, 9.3, 10.0, 10.1&lt;br /&gt;
&lt;br /&gt;
[[Slackware]] 8.1, 10.0, 10.1&lt;br /&gt;
&lt;br /&gt;
[[Debian]] 3.0, 3.1&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] (ebuild available)&lt;br /&gt;
&lt;br /&gt;
[[ZMliveCD]] (Live CD available from downloads page)&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Slackware&amp;diff=1840</id>
		<title>Slackware</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Slackware&amp;diff=1840"/>
		<updated>2007-01-19T12:34:04Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Slackware was one of the earliest Linux distributions, and is the oldest, and most UNIX-like, distribution still being maintained. It has a policy of incorporating only stable releases of applications, standing mainly for design stability and simplicity.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Slackware 10.1]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Slackware&amp;diff=1839</id>
		<title>Slackware</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Slackware&amp;diff=1839"/>
		<updated>2007-01-19T12:33:56Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Slackware was one of the earliest Linux distributions, and is the oldest, and most UNIX-like, distribution still being maintained. It has a policy of incorporating only stable releases of applications, standing mainly for design stability and simplicity.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Slackware 10.1]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=1838</id>
		<title>Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=1838"/>
		<updated>2007-01-19T12:29:29Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ubuntu is a Linux distribution based on Debian. It&amp;#039;s a good system for a home / office user and the install CD installs &amp;#039;most everything the home / office user will need.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Ubuntu 5.10]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Dapper]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Alternate]] (cut-n-paste)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.10]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
[http://ubuntulinux.org http://ubuntulinux.org]&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1837</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1837"/>
		<updated>2007-01-19T12:26:22Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZoneMinder is developed on the Fedora distribution and no special actions are usually required to install on these distros.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1836</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=1836"/>
		<updated>2007-01-19T12:25:54Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZoneMinder is developed on the Fedora distribution and no special actions are usually required to install on these distros.&lt;br /&gt;
&lt;br /&gt;
Installation Guides:&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1835</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1835"/>
		<updated>2007-01-19T12:18:32Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Supported hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-Specific Notes/Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]-Specific&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 5.10]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Dapper]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Alternate]]-Guide (cut-n-paste)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.10]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Slackware 10.1]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[SuSE 10.1 and ZoneMinder]]-HowTo&lt;br /&gt;
&lt;br /&gt;
[[Gentoo Install]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]]-Specific&lt;br /&gt;
&lt;br /&gt;
[[Sabayon Linux with ZM 1.22.3 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1834</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1834"/>
		<updated>2007-01-19T12:16:47Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Help */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[General Notes]]&lt;br /&gt;
&lt;br /&gt;
[[Supported distributions]]&lt;br /&gt;
&lt;br /&gt;
[[Supported hardware]]&lt;br /&gt;
&lt;br /&gt;
[[Patches]]&lt;br /&gt;
&lt;br /&gt;
[[Infrared Leds, Cameras, DC-DC converters etc]]&lt;br /&gt;
&lt;br /&gt;
==Distribution-Specific Notes/Guides==&lt;br /&gt;
[[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]-Specific&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 5.10]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Dapper]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.06 - Alternate]]-Guide (cut-n-paste)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 6.10]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Slackware 10.1]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[SuSE 10.1 and ZoneMinder]]-HowTo&lt;br /&gt;
&lt;br /&gt;
[[Gentoo Install]]-Guide&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]]-Specific&lt;br /&gt;
&lt;br /&gt;
[[Sabayon Linux with ZM 1.22.3 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1833</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=1833"/>
		<updated>2007-01-19T12:09:41Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a dropdown select box labelled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it nevers runs but people don&amp;#039;t always realise.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean?===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So if for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html&lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall &amp;amp;&amp;amp; echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which will enforce the changes the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
===What can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only allows a limited number of simultaneous connections to a particular web server. To view a montage with X cameras you need at least X connections. To resolve this situation, follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of expermentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally (yet) and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frames rates. You can still configure ZM to ignore these limits and capture as fast as possible when an event is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If you camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/techsup/cam_servers/bandwidth/bw_210.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
===Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittant connections for other information such as statuses. You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras. This is a simple process and details of how to do it are available from [http://www.zoneminder.com/forums/viewtopic.php?t=4484 this forum thread]. Certain FireFox extensions such as FasterFox may also help to acehive the same result.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use.&lt;br /&gt;
&lt;br /&gt;
One directory cannot hold more than 32k approx  files. Future versions of ZM will have a deeper filesystem but for now you have to reduce the number of events or use a different filesystems such as reiserfs.&lt;br /&gt;
&lt;br /&gt;
If you search for ext3 or reiserfs on the forums you will find various threads on this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (E.MonitorId)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmShmVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;dmesg&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;v4l-info&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=1832</id>
		<title>Supported distributions</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=1832"/>
		<updated>2007-01-19T11:53:03Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[RedHat]] 7.2, 7.3, 8.0, 9.0&lt;br /&gt;
&lt;br /&gt;
[[Fedora]] Core1, 2, 3, 4, 5 (rpms available, see forum)&lt;br /&gt;
&lt;br /&gt;
[[CentOS]] 4.1, 4.2, 4.3&lt;br /&gt;
&lt;br /&gt;
[[Mandrake-Mandriva]] 9.2, 10.0, 10.1, 2006, 2007&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]] 5.10, 6.06&lt;br /&gt;
&lt;br /&gt;
[[SUSE Linux]] 8.1, 9.2, 9.3, 10.0, 10.1&lt;br /&gt;
&lt;br /&gt;
[[Slackware]] 8.1, 10.0, 10.1 ( [http://www.zoneminder.com/wiki/index.php/Slackware_10.1] )&lt;br /&gt;
&lt;br /&gt;
[[Debian]] 3.0, 3.1&lt;br /&gt;
&lt;br /&gt;
[[Gentoo]] (ebuild available)&lt;br /&gt;
&lt;br /&gt;
[[ZMliveCD]] (Live CD available from downloads page)&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Utilities&amp;diff=1831</id>
		<title>Utilities</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Utilities&amp;diff=1831"/>
		<updated>2007-01-19T11:25:31Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ZM4MS]]&amp;lt;br&amp;gt; - Complete Windows GUI frontend for ZM (requires ZM!) (Please feel free to add to this anyone![James])&lt;br /&gt;
&lt;br /&gt;
[[zm4ms playback|ZM4MS playback with Mandriva 2006 livecd]]&lt;br /&gt;
&lt;br /&gt;
[[xlib_shm]] - allows you to view live streams from zm on local machine with low cpu usage&lt;br /&gt;
&lt;br /&gt;
[[zmxap]] - an xAP connector (to/from home automation applications)&lt;br /&gt;
&lt;br /&gt;
[[Voronwe ZM Frontend]] - Alternate web front end, with enhanced cron/calender integration.&lt;br /&gt;
&lt;br /&gt;
[[ICamviewRelay]] - a small app that allows the ICamview to be used with ZM&lt;br /&gt;
&lt;br /&gt;
[http://xoomer.alice.it/uxguerri/zoneminder.html intellinet550-relay] - a small daemon that allows old Intellinet IP cameras (550550) to be used with ZM. It can also be used to improve frame rate for new (550710) Intellinet IP camera model.&lt;br /&gt;
&lt;br /&gt;
[[ViewMAX]] - a quasi-branch of ZoneMinder, new interface and some added/modified functions&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Utilities&amp;diff=1830</id>
		<title>Utilities</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Utilities&amp;diff=1830"/>
		<updated>2007-01-19T11:23:50Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ZM4MS]]&amp;lt;br&amp;gt; - Complete Windows GUI frontend for ZM (requires ZM!) (Please feel free to add to this anyone![James])&lt;br /&gt;
&lt;br /&gt;
[[zm4ms playback|zm4ms playback and mysql access in livecd]]&lt;br /&gt;
&lt;br /&gt;
[[xlib_shm]] - allows you to view live streams from zm on local machine with low cpu usage&lt;br /&gt;
&lt;br /&gt;
[[zmxap]] - an xAP connector (to/from home automation applications)&lt;br /&gt;
&lt;br /&gt;
[[Voronwe ZM Frontend]] - Alternate web front end, with enhanced cron/calender integration.&lt;br /&gt;
&lt;br /&gt;
[[ICamviewRelay]] - a small app that allows the ICamview to be used with ZM&lt;br /&gt;
&lt;br /&gt;
[http://xoomer.alice.it/uxguerri/zoneminder.html intellinet550-relay] - a small daemon that allows old Intellinet IP cameras (550550) to be used with ZM. It can also be used to improve frame rate for new (550710) Intellinet IP camera model.&lt;br /&gt;
&lt;br /&gt;
[[ViewMAX]] - a quasi-branch of ZoneMinder, new interface and some added/modified functions&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1426</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1426"/>
		<updated>2006-05-21T19:42:41Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. It&amp;#039;s based on a sophisticated package management system that lets you choose from three releases of varying stability. The software packages included in the &amp;#039;&amp;#039;stable&amp;#039;&amp;#039; release have been tested thoroughly and are ideal for a server environment, whereas &amp;#039;&amp;#039;testing&amp;#039;&amp;#039; and &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; releases have more recent versions of software which usually contain some bugs. Ironically, Debian&amp;#039;s &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; release is often more stable than many other distributions&amp;#039; final releases.&lt;br /&gt;
&lt;br /&gt;
==Debian/ZM installation notes==&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc thorough Debian/ZM installation guide] using a [http://www.spic.net/zoneminder/ zoneminder debian package] which requires &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0&lt;br /&gt;
&lt;br /&gt;
[[Yadig|yet another Debian/ZM installation guide]] - package selection and compiling ZM from source (without ffmpeg) in a few quick steps&lt;br /&gt;
&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1425</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1425"/>
		<updated>2006-05-21T19:28:43Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. A great [http://www.debian.org/distrib/packages/ package] management system makes it simple to maintain a number of installations. You can choose from three [http://www.debian.org/releases/ releases] of varying stability: the software packages included in the &amp;#039;&amp;#039;[http://www.debian.org/releases/stable/ stable]&amp;#039;&amp;#039; release have been tested thoroughly and are ideal for a server environment, whereas the &amp;#039;&amp;#039;[http://www.debian.org/releases/testing/ testing]&amp;#039;&amp;#039; or &amp;#039;&amp;#039;[http://www.debian.org/releases/unstable/ unstable]&amp;#039;&amp;#039; have more recent versions of software which can have significant bugs. Ironically, Debian&amp;#039;s &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; release is more stable than many other distributions&amp;#039; final releases.&lt;br /&gt;
&lt;br /&gt;
==Debian/ZM installation notes==&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc thorough Debian/ZM installation guide] using a [http://www.spic.net/zoneminder/ zoneminder debian package] which requires &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0&lt;br /&gt;
&lt;br /&gt;
[[Yadig|yet another Debian/ZM installation guide]] - package selection and compiling ZM from source (without ffmpeg) in a few quick steps&lt;br /&gt;
&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1424</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1424"/>
		<updated>2006-05-21T18:57:31Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. A great [http://www.debian.org/distrib/packages/ package] management system makes it simple to maintain a number of installations. You can choose from three [http://www.debian.org/releases/ releases] of varying stability: the software packages included in the &amp;#039;&amp;#039;[http://www.debian.org/releases/stable/ stable]&amp;#039;&amp;#039; release have been tested thoroughly and are ideal for a server environment, whereas the &amp;#039;&amp;#039;[http://www.debian.org/releases/testing/ testing]&amp;#039;&amp;#039; or &amp;#039;&amp;#039;[http://www.debian.org/releases/unstable/ unstable]&amp;#039;&amp;#039; have more recent versions of software which can have significant bugs. Don&amp;#039;t be fooled by the title, however, Debian&amp;#039;s &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; release is more stable than many other distributions&amp;#039; normal releases.&lt;br /&gt;
&lt;br /&gt;
==Debian/ZM installation notes==&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc thorough Debian/ZM installation guide] using a [http://www.spic.net/zoneminder/ zoneminder debian package] which requires &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0&lt;br /&gt;
&lt;br /&gt;
[[Yadig|yet another Debian/ZM installation guide]] - package selection and compiling ZM from source (without ffmpeg) in a few quick steps&lt;br /&gt;
&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1423</id>
		<title>Helpful user contributed resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Helpful_user_contributed_resources&amp;diff=1423"/>
		<updated>2006-05-21T12:44:41Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==General==&lt;br /&gt;
[[FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Linux distributions]]&lt;br /&gt;
&lt;br /&gt;
==Help==&lt;br /&gt;
[[HOWTO]]&amp;#039;s&lt;br /&gt;
&lt;br /&gt;
[[Error messages]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]-specific&lt;br /&gt;
&lt;br /&gt;
==Third party==&lt;br /&gt;
[[Third Party Utils]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian_init.d&amp;diff=1422</id>
		<title>Debian init.d</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian_init.d&amp;diff=1422"/>
		<updated>2006-05-21T10:25:37Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;/etc/init.d/zm script&amp;#039;&amp;#039;&amp;#039; - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# description: Control ZoneMinder as a Service&lt;br /&gt;
# chkconfig: 2345 99 99&lt;br /&gt;
&lt;br /&gt;
# Source function library.&lt;br /&gt;
#. /etc/rc.d/init.d/functions&lt;br /&gt;
&lt;br /&gt;
prog=ZoneMinder&lt;br /&gt;
ZM_PATH_BIN=&amp;quot;/usr/local/bin&amp;quot;&lt;br /&gt;
command=&amp;quot;$ZM_PATH_BIN/zmpkg.pl&amp;quot;&lt;br /&gt;
&lt;br /&gt;
start() {&lt;br /&gt;
        echo -n &amp;quot;Starting $prog: &amp;quot;&lt;br /&gt;
        $command start&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; echo success&lt;br /&gt;
        [ $RETVAL != 0 ] &amp;amp;&amp;amp; echo failure&lt;br /&gt;
        echo&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; touch /var/lock/subsys/zm&lt;br /&gt;
        return $RETVAL&lt;br /&gt;
}&lt;br /&gt;
stop() {&lt;br /&gt;
        echo -n $&amp;quot;Stopping $prog: &amp;quot;&lt;br /&gt;
        $command stop&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; echo success&lt;br /&gt;
        [ $RETVAL != 0 ] &amp;amp;&amp;amp; echo failure&lt;br /&gt;
        echo&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; rm -f /var/lock/subsys/zm&lt;br /&gt;
}&lt;br /&gt;
status() {&lt;br /&gt;
        result=`$command status`&lt;br /&gt;
        if [ &amp;quot;$result&amp;quot; = &amp;quot;running&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;ZoneMinder is running&amp;quot;&lt;br /&gt;
                RETVAL=0&lt;br /&gt;
        else&lt;br /&gt;
                echo &amp;quot;ZoneMinder is stopped&amp;quot;&lt;br /&gt;
                RETVAL=1&lt;br /&gt;
        fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
&amp;#039;start&amp;#039;)&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;stop&amp;#039;)&lt;br /&gt;
        stop&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;restart&amp;#039;)&lt;br /&gt;
        stop&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;status&amp;#039;)&lt;br /&gt;
        status&lt;br /&gt;
        ;;&lt;br /&gt;
*)&lt;br /&gt;
        echo &amp;quot;Usage: $0 { start | stop | restart | status }&amp;quot;&lt;br /&gt;
        RETVAL=1&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
exit $RETVAL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
after creating the file...&lt;br /&gt;
 debian:~# chmod 755 /etc/init.d/zm&lt;br /&gt;
 debian:~# update-rc.d zm defaults&lt;br /&gt;
...to make ZM start automatically during boot&lt;br /&gt;
&lt;br /&gt;
[[Categories: Debian]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian_init.d&amp;diff=1421</id>
		<title>Debian init.d</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian_init.d&amp;diff=1421"/>
		<updated>2006-05-21T10:20:31Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/etc/init.d/zm script - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# description: Control ZoneMinder as a Service&lt;br /&gt;
# chkconfig: 2345 99 99&lt;br /&gt;
&lt;br /&gt;
# Source function library.&lt;br /&gt;
#. /etc/rc.d/init.d/functions&lt;br /&gt;
&lt;br /&gt;
prog=ZoneMinder&lt;br /&gt;
ZM_PATH_BIN=&amp;quot;/usr/local/bin&amp;quot;&lt;br /&gt;
command=&amp;quot;$ZM_PATH_BIN/zmpkg.pl&amp;quot;&lt;br /&gt;
&lt;br /&gt;
start() {&lt;br /&gt;
        echo -n &amp;quot;Starting $prog: &amp;quot;&lt;br /&gt;
        $command start&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; echo success&lt;br /&gt;
        [ $RETVAL != 0 ] &amp;amp;&amp;amp; echo failure&lt;br /&gt;
        echo&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; touch /var/lock/subsys/zm&lt;br /&gt;
        return $RETVAL&lt;br /&gt;
}&lt;br /&gt;
stop() {&lt;br /&gt;
        echo -n $&amp;quot;Stopping $prog: &amp;quot;&lt;br /&gt;
        $command stop&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; echo success&lt;br /&gt;
        [ $RETVAL != 0 ] &amp;amp;&amp;amp; echo failure&lt;br /&gt;
        echo&lt;br /&gt;
        [ $RETVAL = 0 ] &amp;amp;&amp;amp; rm -f /var/lock/subsys/zm&lt;br /&gt;
}&lt;br /&gt;
status() {&lt;br /&gt;
        result=`$command status`&lt;br /&gt;
        if [ &amp;quot;$result&amp;quot; = &amp;quot;running&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;ZoneMinder is running&amp;quot;&lt;br /&gt;
                RETVAL=0&lt;br /&gt;
        else&lt;br /&gt;
                echo &amp;quot;ZoneMinder is stopped&amp;quot;&lt;br /&gt;
                RETVAL=1&lt;br /&gt;
        fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
&amp;#039;start&amp;#039;)&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;stop&amp;#039;)&lt;br /&gt;
        stop&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;restart&amp;#039;)&lt;br /&gt;
        stop&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
&amp;#039;status&amp;#039;)&lt;br /&gt;
        status&lt;br /&gt;
        ;;&lt;br /&gt;
*)&lt;br /&gt;
        echo &amp;quot;Usage: $0 { start | stop | restart | status }&amp;quot;&lt;br /&gt;
        RETVAL=1&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
exit $RETVAL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Categories: Debian]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1420</id>
		<title>Debian</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian&amp;diff=1420"/>
		<updated>2006-05-21T10:19:36Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.debian.org/ Debian GNU/Linux] is a free operating system with a focus on stability. A great [http://www.debian.org/distrib/packages/ package] management system makes it simple to maintain a number of installations. The &amp;#039;&amp;#039;[http://www.debian.org/releases/stable/ stable]&amp;#039;&amp;#039; release is ideal for servers, whereas the &amp;#039;&amp;#039;[http://www.debian.org/releases/testing/ testing]&amp;#039;&amp;#039; or &amp;#039;&amp;#039;[http://www.debian.org/releases/unstable/ unstable]&amp;#039;&amp;#039; releases might be a better choice for users prefering the latest eyecandy.&lt;br /&gt;
&lt;br /&gt;
==Debian/ZM installation help==&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/ZoneMinder_install.doc thorough Debian/ZM installation guide] using a [http://www.spic.net/zoneminder/ zoneminder debian package] which requires &amp;#039;&amp;#039;unstable&amp;#039;&amp;#039; ffmpeg/libavcodec2/liblame0&lt;br /&gt;
&lt;br /&gt;
[[Yadig|yet another Debian/ZM installation guide]] - package selection and compiling ZM from source (without ffmpeg) in a few quick steps&lt;br /&gt;
&lt;br /&gt;
[[Debian init.d|/etc/init.d/zm script]] - slightly modified from the original to correctly echo output on debian&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
</feed>