<?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=Tgutwin</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=Tgutwin"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Tgutwin"/>
	<updated>2026-04-19T17:43:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5561</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5561"/>
		<updated>2012-11-13T05:13:23Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Notes about socket_sendto error due to cgi-bin ScriptAlias&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;
==Fedora 18 (alpha)==&lt;br /&gt;
*FIXED: &amp;#039;&amp;#039;if you get problems with Live Video not working&amp;#039;&amp;#039; due to a problem with the sockets.&amp;lt;br/&amp;gt;&lt;br /&gt;
**ERROR: socket_sendto permission errors. &lt;br /&gt;
*Make sure your cgi-bin ScriptAlias is correct as shown below. &amp;lt;br/&amp;gt;&lt;br /&gt;
*&amp;#039;&amp;#039;ffmpeg libraries from Fedora rpms do not work&amp;#039;&amp;#039; with zm. You have to install from source (yuck).&lt;br /&gt;
&lt;br /&gt;
This is how I got it installed...&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do all the following as sudo (or root)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; disable selinux&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/selinux/config&amp;lt;br/&amp;gt;&lt;br /&gt;
*change the word &amp;#039;enforcing&amp;#039; to &amp;#039;disabled&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;REBOOT&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf &lt;br /&gt;
* in the section - &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
**remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&lt;br /&gt;
**remove the &amp;#039;-Indexes&amp;#039; on the Options line on Line 17 )I don&amp;#039;t think the &amp;#039;-&amp;#039; is supposed to be there&lt;br /&gt;
**Comment out the Order and Allow lines and insert the new syntax &amp;#039;Require all granted&amp;#039; as a new line&lt;br /&gt;
* I also got a ScriptAlias error for the cgi-bin/zm alias so I commented the cgi-bin scriptAlias in the /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
  #F18     /etc/httpd/conf.d.zoneminder.conf&lt;br /&gt;
  Alias /zm &amp;quot;/usr/share/zoneminder/www&amp;quot;&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
    Options FollowSymLinks&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    # NEW format&lt;br /&gt;
    Require all granted&lt;br /&gt;
    # The code unfortunately uses short tags in many places&lt;br /&gt;
    php_value short_open_tag 1&lt;br /&gt;
  #Deny from all # DELETE THIS LINE&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
  ScriptAlias /cgi-bin &amp;quot;/usr/libexec/zoneminder/cgi-bin&amp;quot;&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/usr/libexec/zoneminder/cgi-bin&amp;quot;&amp;gt;&lt;br /&gt;
    Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    # NEW format&lt;br /&gt;
    Require all granted&lt;br /&gt;
    php_value short_open_tag 1&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start httpd:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 17==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 14==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/mysqld start&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/httpd start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/zoneminder start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 11, 12 and 13==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Easy Way&amp;#039;&amp;#039;&amp;#039; Adapted from a forum post by &amp;quot;hiredguntech&amp;quot; or just search the forum for &amp;quot;flowers for candy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Step-by-step installation of ZM v1.24.2 on Fedora-12.&lt;br /&gt;
&lt;br /&gt;
(1) load fc12 using the netinstall ISO (the CD wants to use dhcp and doesn&amp;#039;t work well with an assigned fixed IP) - turn off &amp;#039;office&amp;#039; and turn on &amp;#039;server&amp;#039; and &amp;#039;development&amp;#039;. Besure to include a large /var partition through custom partitioning and use localhost instead of what it suggests (domain.localhost ?). Also, if you&amp;#039;re using a capture card install it (them) in the system before starting the netinstall CD. Save these steps as a .txt file so the code can be cut and paste into the terminal with ease.&lt;br /&gt;
&lt;br /&gt;
[2] Remove evolution from task bar (right click... (not a requirement)). &lt;br /&gt;
&lt;br /&gt;
[3] Set screensaver to NOT require password and set it to 20 minutes or more (menu-system::preferences::screensaver). &lt;br /&gt;
&lt;br /&gt;
(4) Disable SELinux. (menu-system::Admin::SELinux Mgmnt; change system default enforcing mode to disabled).&lt;br /&gt;
&lt;br /&gt;
[5] Enable sudo for yourself. From a terminal (menu-Application::System Tools::Terminal), &lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;&amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039; ALL=(ALL) ALL&amp;#039; &amp;gt;&amp;gt; /etc/sudoers  (put YOUR user name from FC12 installation in place of &amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039;) &lt;br /&gt;
&lt;br /&gt;
(6) Set up the RPM Fusion Repository (in open terminal). &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit (closes terminal window)&lt;br /&gt;
&lt;br /&gt;
(7) Install the pre-requisites, (menu-System::Administration::Add/Remove Software) type in the search field the following package names and select each of the closest match (there will be &amp;#039;other&amp;#039; packages related or similar named - look for the right one, and check-it.) &lt;br /&gt;
&lt;br /&gt;
mysql-server &lt;br /&gt;
&lt;br /&gt;
mysql-devel &lt;br /&gt;
&lt;br /&gt;
pcre-devel &lt;br /&gt;
&lt;br /&gt;
ffmpeg &lt;br /&gt;
&lt;br /&gt;
ffmpeg-devel &lt;br /&gt;
&lt;br /&gt;
Hit the &amp;#039;Apply&amp;#039; button, accept any added packages, type root password, and let this stuff load. &lt;br /&gt;
&lt;br /&gt;
[8] Install any updates that are available, its the yellow icon up by the time.  &lt;br /&gt;
&lt;br /&gt;
(9) Enable the services: web and db. (menu-System::Administration::Services) and find the following: &lt;br /&gt;
&lt;br /&gt;
httpd &lt;br /&gt;
&lt;br /&gt;
mysqld &lt;br /&gt;
&lt;br /&gt;
for each of them hit the &amp;#039;enable button&amp;#039; so you can start them later. &lt;br /&gt;
&lt;br /&gt;
(10) Reboot. This allows all the services to start and settle in. &lt;br /&gt;
&lt;br /&gt;
(11) Now add Zoneminder (menu-System::Administration::Add/Remove Software) Type Zoneminder in the search field select it and apply.&lt;br /&gt;
&lt;br /&gt;
[13] &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; To edit as root: open a terminal (menu-Application::System Tools::Terminal), su to root, type &amp;#039;gedit &amp;lt;path/filename&amp;gt;&amp;#039;. Now you have sufficient permissions to edit &amp;amp; save as root. &lt;br /&gt;
&lt;br /&gt;
(14) Edit as root /etc/httpd/conf.d/zoneminder.conf to remove the &amp;#039;Deny from All&amp;#039; line. It even says &amp;#039;DELETE THIS LINE&amp;#039;, so it should be easy to find. Save it. &lt;br /&gt;
&lt;br /&gt;
(15) As root, [or with sudo] build the zm database (menu-Application::System Tools::Terminal).  &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
mysql mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &lt;br /&gt;
&lt;br /&gt;
mysqladmin reload &lt;br /&gt;
&lt;br /&gt;
mysql mysql &lt;br /&gt;
&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
\q &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(16) Enable zoneminder. (menu-System::Administration::Services) and find zoneminder. Enable it. You can start the service hear also, Or in a terminal:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
service zoneminder start &lt;br /&gt;
&lt;br /&gt;
[18] Last thing - edit the SECOND entry of short_open_tag down at line 229. Again as root (menu-Application::System Tools::Terminal), gedit /etc/php.ini&lt;br /&gt;
&lt;br /&gt;
Change short_open_tag from &amp;#039;off&amp;#039; to &amp;#039;on&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[19] reboot. open browser, type &amp;#039;localhost/zm&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[20] It may be necessary to change the ffmpeg path in options::images to get ffmpeg to make videos. Generally removing the /local from the existing path will fix this issue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Or (the original wiki walk through)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You should be able to just do &amp;quot;yum install zoneminder&amp;quot;, create the zm database,  find the zm_create.sql file (rpm -ql zoneminder) and import it to mysql, then start zoneminder.   Plus allow web access. Edit  /etc/httpd/conf.d/zoneminder.conf and comment out (#) or delete this line :-&lt;br /&gt;
&lt;br /&gt;
 Deny from all # DELETE THIS LINE&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
This didn&amp;#039;t work for me due to 2 problems.  First was php.ini section short_open_tag = Off, set to on&lt;br /&gt;
&lt;br /&gt;
 short_open_tag = On&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
The other problem was zm_create.sql had duplicate indexes reported using phpMyAdmin.  Removed all &amp;quot;INSERT INTO MonitorPresets&amp;quot; and &amp;quot;INSERT INTO MonitorPresets&amp;quot; in zm_create.sql and that imported cleanly. Alternatively just import from the command line mysql -u zmuser -p &amp;lt; zm_create.sql&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=50242&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Manual Install Version 1.24.2 with ffmpeg enabled&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Version 1.23.3 has always compiled ok on Fedora 9/10/11 but I had problems with version 1.24.2. &lt;br /&gt;
&lt;br /&gt;
Problems with compiling fixed by adding  #include &amp;lt;cstdio&amp;gt; to all .cpp files in src directory and removing ccache package (yum remove ccache)&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=55152&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=12515&amp;amp;sid=0da85eb2fc78917d7a78cf788603a320&lt;br /&gt;
&lt;br /&gt;
If using ffmpeg and ffmpeg-devel packages you may see problem compiling with libavutil.a . I could not get ffmpeg to compile so downloaded the Fedora source package and compiled it manually.&lt;br /&gt;
&lt;br /&gt;
 yumdownloader --source ffmpeg&lt;br /&gt;
&lt;br /&gt;
sudo rpm -Uvh ffmpeg-0.5-5.20091026svn.fc12.src.rpm&lt;br /&gt;
&lt;br /&gt;
Needed the following packages &lt;br /&gt;
&lt;br /&gt;
 sudo yum install dirac-devel faad2-devel gsm-devel imlib2-devel lame-devel libdc1394-devel libtheora-devel libvdpau-devel openjpeg-devel \&lt;br /&gt;
 schroedinger-devel speex-devel texi2html x264-devel xvidcore-devel yasm&lt;br /&gt;
&lt;br /&gt;
See http://fozzolog.fozzilinymoo.org/tech/2009/11/recompiling-ffmpeg-for-fedora-12-to-add-faac-support.html  (don&amp;#039;t need to add faac support, just follow procedure)&lt;br /&gt;
&lt;br /&gt;
My rpmbuild failed so from the BUILD/ffmpeg-20091026&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
 sudo make install-libs&lt;br /&gt;
&lt;br /&gt;
and configured ZoneMinder to use  /usr/local for FFMPEG&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost \&lt;br /&gt;
 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr -L/usr/lib/mysql&amp;quot; ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local&lt;br /&gt;
&lt;br /&gt;
==Fedora 8==&lt;br /&gt;
* Have packages for Apache and MySQL installed on the system.&lt;br /&gt;
* Install the zoneminder RPM package on the system&lt;br /&gt;
: Fedora Information for package zoneminder&lt;br /&gt;
: * http://koji.fedoraproject.org/koji/packageinfo?packageID=4691&lt;br /&gt;
* Configure zoneminder&lt;br /&gt;
* Make sure Apache and MySQL services are running&lt;br /&gt;
* Edit the zoneminder.conf apache configuration file to allow web connections&lt;br /&gt;
  vi /etc/httpd/conf.d/zoneminder.conf&lt;br /&gt;
* Build the MySQL database table for zoneminder&lt;br /&gt;
  mysql -p -u root mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &amp;gt; mysqladmin -p -u root reload&lt;br /&gt;
&lt;br /&gt;
The Fedora RPM creates /var/log/zoneminder, but the database scripts point logs to /tmp, rather than the new directory.&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Paths&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_PATH_LOGS = /var/log/zoneminder&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Debug&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_EXTRA_DEBUG_LOG = /var/log/zoneminder/zm_debug.log+&lt;br /&gt;
&lt;br /&gt;
* Install ffmpeg on Fedora.&lt;br /&gt;
Due to licensing the ffmpeg package is absent from Fedora.  It can be added from [[Fedora_Linux_Distribution_Reference#Livna:_Get_Important_Packages_Missing_From_Fedora|Livna]].&lt;br /&gt;
  wget http://rpm.livna.org/livna-release-8.rpm&lt;br /&gt;
  rpm -ih livna-release-8.rpm&lt;br /&gt;
  yum install ffmpeg&lt;br /&gt;
  yum install ffmpeg-devel&lt;br /&gt;
Which provides the following: ffmpeg-libs-0.4.9-0.41.20071011.lvn8, ffmpeg-0.4.9-0.41.20071011.lvn8, ffmpeg-devel-0.4.9-0.41.20071011.lvn8&lt;br /&gt;
&lt;br /&gt;
* Test ffmpeg&lt;br /&gt;
  ffmpeg -f image2 -i %03d-capture.jpg /tmp/movie.mpg&lt;br /&gt;
&lt;br /&gt;
==Fedora 7==&lt;br /&gt;
* Builds From source - see [[Fedora Core 6 Step-by-Step]] &amp;#039;&amp;#039;&amp;#039;AS WELL AS&amp;#039;&amp;#039;&amp;#039; [http://www.zoneminder.com/forums/viewtopic.php?t=9414 Fedora 7 forum topic]&lt;br /&gt;
*RPMs are Available in the &amp;#039;&amp;#039;&amp;#039;main Fedora 7 distribution&amp;#039;&amp;#039;&amp;#039;, and in the development &amp;#039;rawhide&amp;#039; tree.&lt;br /&gt;
**Its as easy as running: yum install zoneminder&lt;br /&gt;
**Take a look at [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 6==&lt;br /&gt;
*Build from source [[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
* RPMs are also available right now in &amp;#039;&amp;#039;&amp;#039;Fedora Extras&amp;#039;&amp;#039;&amp;#039; for Fedora Core 6.  &lt;br /&gt;
** [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 4==&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5560</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5560"/>
		<updated>2012-11-12T03:22:04Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: added comment about ffmpeg&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;
==Fedora 18 (alpha)==&lt;br /&gt;
*&amp;#039;&amp;#039;Live Video Still does not work&amp;#039;&amp;#039; due to a (new version of php?) problem with the sockets.&amp;lt;br/&amp;gt;&lt;br /&gt;
**ERROR: socket_sendto permission errors. &amp;lt;br/&amp;gt;&lt;br /&gt;
*&amp;#039;&amp;#039;ffmpeg libraries from fedora rpms do not work&amp;#039;&amp;#039; with zm. You have to install from source (yuck).&lt;br /&gt;
&lt;br /&gt;
This is how I got it installed...&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do all the following as sudo (or root)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; disable selinux&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/selinux/config&amp;lt;br/&amp;gt;&lt;br /&gt;
*change the word &amp;#039;enforcing&amp;#039; to &amp;#039;disabled&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;REBOOT&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf &lt;br /&gt;
* in the section - &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
**remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&lt;br /&gt;
**remove the &amp;#039;-Indexes&amp;#039; on the Options line on Line 17 )I don&amp;#039;t think the &amp;#039;-&amp;#039; is supposed to be there&lt;br /&gt;
**Comment out the Order and Allow lines and insert the new syntax &amp;#039;Require all granted&amp;#039; as a new line&lt;br /&gt;
* I also got a ScriptAlias error for the cgi-bin/zm alias so I commented the cgi-bin scriptAlias in the /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
  #F18     /etc/httpd/conf.d.zoneminder.conf&lt;br /&gt;
  Alias /zm &amp;quot;/usr/share/zoneminder/www&amp;quot;&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
    Options FollowSymLinks&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    # NEW format&lt;br /&gt;
    Require all granted&lt;br /&gt;
    # The code unfortunately uses short tags in many places&lt;br /&gt;
    php_value short_open_tag 1&lt;br /&gt;
  #Deny from all # DELETE THIS LINE&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
  ScriptAlias /cgi-bin &amp;quot;/usr/libexec/zoneminder/cgi-bin&amp;quot;&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/usr/libexec/zoneminder/cgi-bin&amp;quot;&amp;gt;&lt;br /&gt;
    Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    # NEW format&lt;br /&gt;
    Require all granted&lt;br /&gt;
    php_value short_open_tag 1&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start httpd:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 17==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 14==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/mysqld start&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/httpd start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/zoneminder start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 11, 12 and 13==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Easy Way&amp;#039;&amp;#039;&amp;#039; Adapted from a forum post by &amp;quot;hiredguntech&amp;quot; or just search the forum for &amp;quot;flowers for candy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Step-by-step installation of ZM v1.24.2 on Fedora-12.&lt;br /&gt;
&lt;br /&gt;
(1) load fc12 using the netinstall ISO (the CD wants to use dhcp and doesn&amp;#039;t work well with an assigned fixed IP) - turn off &amp;#039;office&amp;#039; and turn on &amp;#039;server&amp;#039; and &amp;#039;development&amp;#039;. Besure to include a large /var partition through custom partitioning and use localhost instead of what it suggests (domain.localhost ?). Also, if you&amp;#039;re using a capture card install it (them) in the system before starting the netinstall CD. Save these steps as a .txt file so the code can be cut and paste into the terminal with ease.&lt;br /&gt;
&lt;br /&gt;
[2] Remove evolution from task bar (right click... (not a requirement)). &lt;br /&gt;
&lt;br /&gt;
[3] Set screensaver to NOT require password and set it to 20 minutes or more (menu-system::preferences::screensaver). &lt;br /&gt;
&lt;br /&gt;
(4) Disable SELinux. (menu-system::Admin::SELinux Mgmnt; change system default enforcing mode to disabled).&lt;br /&gt;
&lt;br /&gt;
[5] Enable sudo for yourself. From a terminal (menu-Application::System Tools::Terminal), &lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;&amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039; ALL=(ALL) ALL&amp;#039; &amp;gt;&amp;gt; /etc/sudoers  (put YOUR user name from FC12 installation in place of &amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039;) &lt;br /&gt;
&lt;br /&gt;
(6) Set up the RPM Fusion Repository (in open terminal). &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit (closes terminal window)&lt;br /&gt;
&lt;br /&gt;
(7) Install the pre-requisites, (menu-System::Administration::Add/Remove Software) type in the search field the following package names and select each of the closest match (there will be &amp;#039;other&amp;#039; packages related or similar named - look for the right one, and check-it.) &lt;br /&gt;
&lt;br /&gt;
mysql-server &lt;br /&gt;
&lt;br /&gt;
mysql-devel &lt;br /&gt;
&lt;br /&gt;
pcre-devel &lt;br /&gt;
&lt;br /&gt;
ffmpeg &lt;br /&gt;
&lt;br /&gt;
ffmpeg-devel &lt;br /&gt;
&lt;br /&gt;
Hit the &amp;#039;Apply&amp;#039; button, accept any added packages, type root password, and let this stuff load. &lt;br /&gt;
&lt;br /&gt;
[8] Install any updates that are available, its the yellow icon up by the time.  &lt;br /&gt;
&lt;br /&gt;
(9) Enable the services: web and db. (menu-System::Administration::Services) and find the following: &lt;br /&gt;
&lt;br /&gt;
httpd &lt;br /&gt;
&lt;br /&gt;
mysqld &lt;br /&gt;
&lt;br /&gt;
for each of them hit the &amp;#039;enable button&amp;#039; so you can start them later. &lt;br /&gt;
&lt;br /&gt;
(10) Reboot. This allows all the services to start and settle in. &lt;br /&gt;
&lt;br /&gt;
(11) Now add Zoneminder (menu-System::Administration::Add/Remove Software) Type Zoneminder in the search field select it and apply.&lt;br /&gt;
&lt;br /&gt;
[13] &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; To edit as root: open a terminal (menu-Application::System Tools::Terminal), su to root, type &amp;#039;gedit &amp;lt;path/filename&amp;gt;&amp;#039;. Now you have sufficient permissions to edit &amp;amp; save as root. &lt;br /&gt;
&lt;br /&gt;
(14) Edit as root /etc/httpd/conf.d/zoneminder.conf to remove the &amp;#039;Deny from All&amp;#039; line. It even says &amp;#039;DELETE THIS LINE&amp;#039;, so it should be easy to find. Save it. &lt;br /&gt;
&lt;br /&gt;
(15) As root, [or with sudo] build the zm database (menu-Application::System Tools::Terminal).  &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
mysql mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &lt;br /&gt;
&lt;br /&gt;
mysqladmin reload &lt;br /&gt;
&lt;br /&gt;
mysql mysql &lt;br /&gt;
&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
\q &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(16) Enable zoneminder. (menu-System::Administration::Services) and find zoneminder. Enable it. You can start the service hear also, Or in a terminal:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
service zoneminder start &lt;br /&gt;
&lt;br /&gt;
[18] Last thing - edit the SECOND entry of short_open_tag down at line 229. Again as root (menu-Application::System Tools::Terminal), gedit /etc/php.ini&lt;br /&gt;
&lt;br /&gt;
Change short_open_tag from &amp;#039;off&amp;#039; to &amp;#039;on&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[19] reboot. open browser, type &amp;#039;localhost/zm&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[20] It may be necessary to change the ffmpeg path in options::images to get ffmpeg to make videos. Generally removing the /local from the existing path will fix this issue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Or (the original wiki walk through)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You should be able to just do &amp;quot;yum install zoneminder&amp;quot;, create the zm database,  find the zm_create.sql file (rpm -ql zoneminder) and import it to mysql, then start zoneminder.   Plus allow web access. Edit  /etc/httpd/conf.d/zoneminder.conf and comment out (#) or delete this line :-&lt;br /&gt;
&lt;br /&gt;
 Deny from all # DELETE THIS LINE&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
This didn&amp;#039;t work for me due to 2 problems.  First was php.ini section short_open_tag = Off, set to on&lt;br /&gt;
&lt;br /&gt;
 short_open_tag = On&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
The other problem was zm_create.sql had duplicate indexes reported using phpMyAdmin.  Removed all &amp;quot;INSERT INTO MonitorPresets&amp;quot; and &amp;quot;INSERT INTO MonitorPresets&amp;quot; in zm_create.sql and that imported cleanly. Alternatively just import from the command line mysql -u zmuser -p &amp;lt; zm_create.sql&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=50242&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Manual Install Version 1.24.2 with ffmpeg enabled&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Version 1.23.3 has always compiled ok on Fedora 9/10/11 but I had problems with version 1.24.2. &lt;br /&gt;
&lt;br /&gt;
Problems with compiling fixed by adding  #include &amp;lt;cstdio&amp;gt; to all .cpp files in src directory and removing ccache package (yum remove ccache)&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=55152&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=12515&amp;amp;sid=0da85eb2fc78917d7a78cf788603a320&lt;br /&gt;
&lt;br /&gt;
If using ffmpeg and ffmpeg-devel packages you may see problem compiling with libavutil.a . I could not get ffmpeg to compile so downloaded the Fedora source package and compiled it manually.&lt;br /&gt;
&lt;br /&gt;
 yumdownloader --source ffmpeg&lt;br /&gt;
&lt;br /&gt;
sudo rpm -Uvh ffmpeg-0.5-5.20091026svn.fc12.src.rpm&lt;br /&gt;
&lt;br /&gt;
Needed the following packages &lt;br /&gt;
&lt;br /&gt;
 sudo yum install dirac-devel faad2-devel gsm-devel imlib2-devel lame-devel libdc1394-devel libtheora-devel libvdpau-devel openjpeg-devel \&lt;br /&gt;
 schroedinger-devel speex-devel texi2html x264-devel xvidcore-devel yasm&lt;br /&gt;
&lt;br /&gt;
See http://fozzolog.fozzilinymoo.org/tech/2009/11/recompiling-ffmpeg-for-fedora-12-to-add-faac-support.html  (don&amp;#039;t need to add faac support, just follow procedure)&lt;br /&gt;
&lt;br /&gt;
My rpmbuild failed so from the BUILD/ffmpeg-20091026&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
 sudo make install-libs&lt;br /&gt;
&lt;br /&gt;
and configured ZoneMinder to use  /usr/local for FFMPEG&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost \&lt;br /&gt;
 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr -L/usr/lib/mysql&amp;quot; ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local&lt;br /&gt;
&lt;br /&gt;
==Fedora 8==&lt;br /&gt;
* Have packages for Apache and MySQL installed on the system.&lt;br /&gt;
* Install the zoneminder RPM package on the system&lt;br /&gt;
: Fedora Information for package zoneminder&lt;br /&gt;
: * http://koji.fedoraproject.org/koji/packageinfo?packageID=4691&lt;br /&gt;
* Configure zoneminder&lt;br /&gt;
* Make sure Apache and MySQL services are running&lt;br /&gt;
* Edit the zoneminder.conf apache configuration file to allow web connections&lt;br /&gt;
  vi /etc/httpd/conf.d/zoneminder.conf&lt;br /&gt;
* Build the MySQL database table for zoneminder&lt;br /&gt;
  mysql -p -u root mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &amp;gt; mysqladmin -p -u root reload&lt;br /&gt;
&lt;br /&gt;
The Fedora RPM creates /var/log/zoneminder, but the database scripts point logs to /tmp, rather than the new directory.&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Paths&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_PATH_LOGS = /var/log/zoneminder&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Debug&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_EXTRA_DEBUG_LOG = /var/log/zoneminder/zm_debug.log+&lt;br /&gt;
&lt;br /&gt;
* Install ffmpeg on Fedora.&lt;br /&gt;
Due to licensing the ffmpeg package is absent from Fedora.  It can be added from [[Fedora_Linux_Distribution_Reference#Livna:_Get_Important_Packages_Missing_From_Fedora|Livna]].&lt;br /&gt;
  wget http://rpm.livna.org/livna-release-8.rpm&lt;br /&gt;
  rpm -ih livna-release-8.rpm&lt;br /&gt;
  yum install ffmpeg&lt;br /&gt;
  yum install ffmpeg-devel&lt;br /&gt;
Which provides the following: ffmpeg-libs-0.4.9-0.41.20071011.lvn8, ffmpeg-0.4.9-0.41.20071011.lvn8, ffmpeg-devel-0.4.9-0.41.20071011.lvn8&lt;br /&gt;
&lt;br /&gt;
* Test ffmpeg&lt;br /&gt;
  ffmpeg -f image2 -i %03d-capture.jpg /tmp/movie.mpg&lt;br /&gt;
&lt;br /&gt;
==Fedora 7==&lt;br /&gt;
* Builds From source - see [[Fedora Core 6 Step-by-Step]] &amp;#039;&amp;#039;&amp;#039;AS WELL AS&amp;#039;&amp;#039;&amp;#039; [http://www.zoneminder.com/forums/viewtopic.php?t=9414 Fedora 7 forum topic]&lt;br /&gt;
*RPMs are Available in the &amp;#039;&amp;#039;&amp;#039;main Fedora 7 distribution&amp;#039;&amp;#039;&amp;#039;, and in the development &amp;#039;rawhide&amp;#039; tree.&lt;br /&gt;
**Its as easy as running: yum install zoneminder&lt;br /&gt;
**Take a look at [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 6==&lt;br /&gt;
*Build from source [[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
* RPMs are also available right now in &amp;#039;&amp;#039;&amp;#039;Fedora Extras&amp;#039;&amp;#039;&amp;#039; for Fedora Core 6.  &lt;br /&gt;
** [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 4==&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5559</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5559"/>
		<updated>2012-11-12T02:50:29Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added my httpd zoneminder.conf&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;
==Fedora 18 (alpha)==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Live Video Still does not work&amp;#039;&amp;#039;&amp;#039; due to a (new version of php?) problem with the sockets.&amp;lt;br/&amp;gt;&lt;br /&gt;
ERROR: socket_sendto permission errors. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is how I got it installed...&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do all the following as sudo (or root)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; disable selinux&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/selinux/config&amp;lt;br/&amp;gt;&lt;br /&gt;
*change the word &amp;#039;enforcing&amp;#039; to &amp;#039;disabled&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;REBOOT&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf &lt;br /&gt;
* in the section - &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
**remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&lt;br /&gt;
**remove the &amp;#039;-Indexes&amp;#039; on the Options line on Line 17 )I don&amp;#039;t think the &amp;#039;-&amp;#039; is supposed to be there&lt;br /&gt;
**Comment out the Order and Allow lines and insert the new syntax &amp;#039;Require all granted&amp;#039; as a new line&lt;br /&gt;
* I also got a ScriptAlias error for the cgi-bin/zm alias so I commented the cgi-bin scriptAlias in the /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
  #F18     /etc/httpd/conf.d.zoneminder.conf&lt;br /&gt;
  Alias /zm &amp;quot;/usr/share/zoneminder/www&amp;quot;&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
    Options FollowSymLinks&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    # NEW format&lt;br /&gt;
    Require all granted&lt;br /&gt;
    # The code unfortunately uses short tags in many places&lt;br /&gt;
    php_value short_open_tag 1&lt;br /&gt;
  #Deny from all # DELETE THIS LINE&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
  ScriptAlias /cgi-bin &amp;quot;/usr/libexec/zoneminder/cgi-bin&amp;quot;&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/usr/libexec/zoneminder/cgi-bin&amp;quot;&amp;gt;&lt;br /&gt;
    Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    # NEW format&lt;br /&gt;
    Require all granted&lt;br /&gt;
    php_value short_open_tag 1&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start httpd:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 17==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 14==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/mysqld start&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/httpd start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/zoneminder start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 11, 12 and 13==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Easy Way&amp;#039;&amp;#039;&amp;#039; Adapted from a forum post by &amp;quot;hiredguntech&amp;quot; or just search the forum for &amp;quot;flowers for candy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Step-by-step installation of ZM v1.24.2 on Fedora-12.&lt;br /&gt;
&lt;br /&gt;
(1) load fc12 using the netinstall ISO (the CD wants to use dhcp and doesn&amp;#039;t work well with an assigned fixed IP) - turn off &amp;#039;office&amp;#039; and turn on &amp;#039;server&amp;#039; and &amp;#039;development&amp;#039;. Besure to include a large /var partition through custom partitioning and use localhost instead of what it suggests (domain.localhost ?). Also, if you&amp;#039;re using a capture card install it (them) in the system before starting the netinstall CD. Save these steps as a .txt file so the code can be cut and paste into the terminal with ease.&lt;br /&gt;
&lt;br /&gt;
[2] Remove evolution from task bar (right click... (not a requirement)). &lt;br /&gt;
&lt;br /&gt;
[3] Set screensaver to NOT require password and set it to 20 minutes or more (menu-system::preferences::screensaver). &lt;br /&gt;
&lt;br /&gt;
(4) Disable SELinux. (menu-system::Admin::SELinux Mgmnt; change system default enforcing mode to disabled).&lt;br /&gt;
&lt;br /&gt;
[5] Enable sudo for yourself. From a terminal (menu-Application::System Tools::Terminal), &lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;&amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039; ALL=(ALL) ALL&amp;#039; &amp;gt;&amp;gt; /etc/sudoers  (put YOUR user name from FC12 installation in place of &amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039;) &lt;br /&gt;
&lt;br /&gt;
(6) Set up the RPM Fusion Repository (in open terminal). &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit (closes terminal window)&lt;br /&gt;
&lt;br /&gt;
(7) Install the pre-requisites, (menu-System::Administration::Add/Remove Software) type in the search field the following package names and select each of the closest match (there will be &amp;#039;other&amp;#039; packages related or similar named - look for the right one, and check-it.) &lt;br /&gt;
&lt;br /&gt;
mysql-server &lt;br /&gt;
&lt;br /&gt;
mysql-devel &lt;br /&gt;
&lt;br /&gt;
pcre-devel &lt;br /&gt;
&lt;br /&gt;
ffmpeg &lt;br /&gt;
&lt;br /&gt;
ffmpeg-devel &lt;br /&gt;
&lt;br /&gt;
Hit the &amp;#039;Apply&amp;#039; button, accept any added packages, type root password, and let this stuff load. &lt;br /&gt;
&lt;br /&gt;
[8] Install any updates that are available, its the yellow icon up by the time.  &lt;br /&gt;
&lt;br /&gt;
(9) Enable the services: web and db. (menu-System::Administration::Services) and find the following: &lt;br /&gt;
&lt;br /&gt;
httpd &lt;br /&gt;
&lt;br /&gt;
mysqld &lt;br /&gt;
&lt;br /&gt;
for each of them hit the &amp;#039;enable button&amp;#039; so you can start them later. &lt;br /&gt;
&lt;br /&gt;
(10) Reboot. This allows all the services to start and settle in. &lt;br /&gt;
&lt;br /&gt;
(11) Now add Zoneminder (menu-System::Administration::Add/Remove Software) Type Zoneminder in the search field select it and apply.&lt;br /&gt;
&lt;br /&gt;
[13] &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; To edit as root: open a terminal (menu-Application::System Tools::Terminal), su to root, type &amp;#039;gedit &amp;lt;path/filename&amp;gt;&amp;#039;. Now you have sufficient permissions to edit &amp;amp; save as root. &lt;br /&gt;
&lt;br /&gt;
(14) Edit as root /etc/httpd/conf.d/zoneminder.conf to remove the &amp;#039;Deny from All&amp;#039; line. It even says &amp;#039;DELETE THIS LINE&amp;#039;, so it should be easy to find. Save it. &lt;br /&gt;
&lt;br /&gt;
(15) As root, [or with sudo] build the zm database (menu-Application::System Tools::Terminal).  &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
mysql mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &lt;br /&gt;
&lt;br /&gt;
mysqladmin reload &lt;br /&gt;
&lt;br /&gt;
mysql mysql &lt;br /&gt;
&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
\q &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(16) Enable zoneminder. (menu-System::Administration::Services) and find zoneminder. Enable it. You can start the service hear also, Or in a terminal:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
service zoneminder start &lt;br /&gt;
&lt;br /&gt;
[18] Last thing - edit the SECOND entry of short_open_tag down at line 229. Again as root (menu-Application::System Tools::Terminal), gedit /etc/php.ini&lt;br /&gt;
&lt;br /&gt;
Change short_open_tag from &amp;#039;off&amp;#039; to &amp;#039;on&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[19] reboot. open browser, type &amp;#039;localhost/zm&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[20] It may be necessary to change the ffmpeg path in options::images to get ffmpeg to make videos. Generally removing the /local from the existing path will fix this issue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Or (the original wiki walk through)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You should be able to just do &amp;quot;yum install zoneminder&amp;quot;, create the zm database,  find the zm_create.sql file (rpm -ql zoneminder) and import it to mysql, then start zoneminder.   Plus allow web access. Edit  /etc/httpd/conf.d/zoneminder.conf and comment out (#) or delete this line :-&lt;br /&gt;
&lt;br /&gt;
 Deny from all # DELETE THIS LINE&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
This didn&amp;#039;t work for me due to 2 problems.  First was php.ini section short_open_tag = Off, set to on&lt;br /&gt;
&lt;br /&gt;
 short_open_tag = On&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
The other problem was zm_create.sql had duplicate indexes reported using phpMyAdmin.  Removed all &amp;quot;INSERT INTO MonitorPresets&amp;quot; and &amp;quot;INSERT INTO MonitorPresets&amp;quot; in zm_create.sql and that imported cleanly. Alternatively just import from the command line mysql -u zmuser -p &amp;lt; zm_create.sql&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=50242&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Manual Install Version 1.24.2 with ffmpeg enabled&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Version 1.23.3 has always compiled ok on Fedora 9/10/11 but I had problems with version 1.24.2. &lt;br /&gt;
&lt;br /&gt;
Problems with compiling fixed by adding  #include &amp;lt;cstdio&amp;gt; to all .cpp files in src directory and removing ccache package (yum remove ccache)&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=55152&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=12515&amp;amp;sid=0da85eb2fc78917d7a78cf788603a320&lt;br /&gt;
&lt;br /&gt;
If using ffmpeg and ffmpeg-devel packages you may see problem compiling with libavutil.a . I could not get ffmpeg to compile so downloaded the Fedora source package and compiled it manually.&lt;br /&gt;
&lt;br /&gt;
 yumdownloader --source ffmpeg&lt;br /&gt;
&lt;br /&gt;
sudo rpm -Uvh ffmpeg-0.5-5.20091026svn.fc12.src.rpm&lt;br /&gt;
&lt;br /&gt;
Needed the following packages &lt;br /&gt;
&lt;br /&gt;
 sudo yum install dirac-devel faad2-devel gsm-devel imlib2-devel lame-devel libdc1394-devel libtheora-devel libvdpau-devel openjpeg-devel \&lt;br /&gt;
 schroedinger-devel speex-devel texi2html x264-devel xvidcore-devel yasm&lt;br /&gt;
&lt;br /&gt;
See http://fozzolog.fozzilinymoo.org/tech/2009/11/recompiling-ffmpeg-for-fedora-12-to-add-faac-support.html  (don&amp;#039;t need to add faac support, just follow procedure)&lt;br /&gt;
&lt;br /&gt;
My rpmbuild failed so from the BUILD/ffmpeg-20091026&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
 sudo make install-libs&lt;br /&gt;
&lt;br /&gt;
and configured ZoneMinder to use  /usr/local for FFMPEG&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost \&lt;br /&gt;
 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr -L/usr/lib/mysql&amp;quot; ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local&lt;br /&gt;
&lt;br /&gt;
==Fedora 8==&lt;br /&gt;
* Have packages for Apache and MySQL installed on the system.&lt;br /&gt;
* Install the zoneminder RPM package on the system&lt;br /&gt;
: Fedora Information for package zoneminder&lt;br /&gt;
: * http://koji.fedoraproject.org/koji/packageinfo?packageID=4691&lt;br /&gt;
* Configure zoneminder&lt;br /&gt;
* Make sure Apache and MySQL services are running&lt;br /&gt;
* Edit the zoneminder.conf apache configuration file to allow web connections&lt;br /&gt;
  vi /etc/httpd/conf.d/zoneminder.conf&lt;br /&gt;
* Build the MySQL database table for zoneminder&lt;br /&gt;
  mysql -p -u root mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &amp;gt; mysqladmin -p -u root reload&lt;br /&gt;
&lt;br /&gt;
The Fedora RPM creates /var/log/zoneminder, but the database scripts point logs to /tmp, rather than the new directory.&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Paths&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_PATH_LOGS = /var/log/zoneminder&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Debug&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_EXTRA_DEBUG_LOG = /var/log/zoneminder/zm_debug.log+&lt;br /&gt;
&lt;br /&gt;
* Install ffmpeg on Fedora.&lt;br /&gt;
Due to licensing the ffmpeg package is absent from Fedora.  It can be added from [[Fedora_Linux_Distribution_Reference#Livna:_Get_Important_Packages_Missing_From_Fedora|Livna]].&lt;br /&gt;
  wget http://rpm.livna.org/livna-release-8.rpm&lt;br /&gt;
  rpm -ih livna-release-8.rpm&lt;br /&gt;
  yum install ffmpeg&lt;br /&gt;
  yum install ffmpeg-devel&lt;br /&gt;
Which provides the following: ffmpeg-libs-0.4.9-0.41.20071011.lvn8, ffmpeg-0.4.9-0.41.20071011.lvn8, ffmpeg-devel-0.4.9-0.41.20071011.lvn8&lt;br /&gt;
&lt;br /&gt;
* Test ffmpeg&lt;br /&gt;
  ffmpeg -f image2 -i %03d-capture.jpg /tmp/movie.mpg&lt;br /&gt;
&lt;br /&gt;
==Fedora 7==&lt;br /&gt;
* Builds From source - see [[Fedora Core 6 Step-by-Step]] &amp;#039;&amp;#039;&amp;#039;AS WELL AS&amp;#039;&amp;#039;&amp;#039; [http://www.zoneminder.com/forums/viewtopic.php?t=9414 Fedora 7 forum topic]&lt;br /&gt;
*RPMs are Available in the &amp;#039;&amp;#039;&amp;#039;main Fedora 7 distribution&amp;#039;&amp;#039;&amp;#039;, and in the development &amp;#039;rawhide&amp;#039; tree.&lt;br /&gt;
**Its as easy as running: yum install zoneminder&lt;br /&gt;
**Take a look at [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 6==&lt;br /&gt;
*Build from source [[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
* RPMs are also available right now in &amp;#039;&amp;#039;&amp;#039;Fedora Extras&amp;#039;&amp;#039;&amp;#039; for Fedora Core 6.  &lt;br /&gt;
** [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 4==&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5551</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5551"/>
		<updated>2012-10-01T03:58:15Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Fedora 18 (alpha) Still has NO live video&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;
==Fedora 18 (alpha)==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Live Video Still does not work&amp;#039;&amp;#039;&amp;#039; due to a (new version of php?) problem with the sockets.&amp;lt;br/&amp;gt;&lt;br /&gt;
ERROR: socket_sendto permission errors. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is how I got it installed...&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do all the following as sudo (or root)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; disable selinux&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/selinux/config&amp;lt;br/&amp;gt;&lt;br /&gt;
*change the word &amp;#039;enforcing&amp;#039; to &amp;#039;disabled&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REBOOT&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf &lt;br /&gt;
* in the section - &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
**remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&lt;br /&gt;
**remove the &amp;#039;-Indexes&amp;#039; on the Options line on Line 17 )I don&amp;#039;t think the &amp;#039;-&amp;#039; is supposed to be there&lt;br /&gt;
**Comment out the Order and Allow lines and insert the new syntax &amp;#039;Require all granted&amp;#039; as a new line&lt;br /&gt;
* I also got a ScriptAlias error for the cgi-bin/zm alias so I commented the cgi-bin scriptAlias in the /etc/httpd/conf/httpd.conf&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 17==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 14==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/mysqld start&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/httpd start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/zoneminder start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 11, 12 and 13==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Easy Way&amp;#039;&amp;#039;&amp;#039; Adapted from a forum post by &amp;quot;hiredguntech&amp;quot; or just search the forum for &amp;quot;flowers for candy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Step-by-step installation of ZM v1.24.2 on Fedora-12.&lt;br /&gt;
&lt;br /&gt;
(1) load fc12 using the netinstall ISO (the CD wants to use dhcp and doesn&amp;#039;t work well with an assigned fixed IP) - turn off &amp;#039;office&amp;#039; and turn on &amp;#039;server&amp;#039; and &amp;#039;development&amp;#039;. Besure to include a large /var partition through custom partitioning and use localhost instead of what it suggests (domain.localhost ?). Also, if you&amp;#039;re using a capture card install it (them) in the system before starting the netinstall CD. Save these steps as a .txt file so the code can be cut and paste into the terminal with ease.&lt;br /&gt;
&lt;br /&gt;
[2] Remove evolution from task bar (right click... (not a requirement)). &lt;br /&gt;
&lt;br /&gt;
[3] Set screensaver to NOT require password and set it to 20 minutes or more (menu-system::preferences::screensaver). &lt;br /&gt;
&lt;br /&gt;
(4) Disable SELinux. (menu-system::Admin::SELinux Mgmnt; change system default enforcing mode to disabled).&lt;br /&gt;
&lt;br /&gt;
[5] Enable sudo for yourself. From a terminal (menu-Application::System Tools::Terminal), &lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;&amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039; ALL=(ALL) ALL&amp;#039; &amp;gt;&amp;gt; /etc/sudoers  (put YOUR user name from FC12 installation in place of &amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039;) &lt;br /&gt;
&lt;br /&gt;
(6) Set up the RPM Fusion Repository (in open terminal). &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit (closes terminal window)&lt;br /&gt;
&lt;br /&gt;
(7) Install the pre-requisites, (menu-System::Administration::Add/Remove Software) type in the search field the following package names and select each of the closest match (there will be &amp;#039;other&amp;#039; packages related or similar named - look for the right one, and check-it.) &lt;br /&gt;
&lt;br /&gt;
mysql-server &lt;br /&gt;
&lt;br /&gt;
mysql-devel &lt;br /&gt;
&lt;br /&gt;
pcre-devel &lt;br /&gt;
&lt;br /&gt;
ffmpeg &lt;br /&gt;
&lt;br /&gt;
ffmpeg-devel &lt;br /&gt;
&lt;br /&gt;
Hit the &amp;#039;Apply&amp;#039; button, accept any added packages, type root password, and let this stuff load. &lt;br /&gt;
&lt;br /&gt;
[8] Install any updates that are available, its the yellow icon up by the time.  &lt;br /&gt;
&lt;br /&gt;
(9) Enable the services: web and db. (menu-System::Administration::Services) and find the following: &lt;br /&gt;
&lt;br /&gt;
httpd &lt;br /&gt;
&lt;br /&gt;
mysqld &lt;br /&gt;
&lt;br /&gt;
for each of them hit the &amp;#039;enable button&amp;#039; so you can start them later. &lt;br /&gt;
&lt;br /&gt;
(10) Reboot. This allows all the services to start and settle in. &lt;br /&gt;
&lt;br /&gt;
(11) Now add Zoneminder (menu-System::Administration::Add/Remove Software) Type Zoneminder in the search field select it and apply.&lt;br /&gt;
&lt;br /&gt;
[13] &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; To edit as root: open a terminal (menu-Application::System Tools::Terminal), su to root, type &amp;#039;gedit &amp;lt;path/filename&amp;gt;&amp;#039;. Now you have sufficient permissions to edit &amp;amp; save as root. &lt;br /&gt;
&lt;br /&gt;
(14) Edit as root /etc/httpd/conf.d/zoneminder.conf to remove the &amp;#039;Deny from All&amp;#039; line. It even says &amp;#039;DELETE THIS LINE&amp;#039;, so it should be easy to find. Save it. &lt;br /&gt;
&lt;br /&gt;
(15) As root, [or with sudo] build the zm database (menu-Application::System Tools::Terminal).  &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
mysql mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &lt;br /&gt;
&lt;br /&gt;
mysqladmin reload &lt;br /&gt;
&lt;br /&gt;
mysql mysql &lt;br /&gt;
&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
\q &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(16) Enable zoneminder. (menu-System::Administration::Services) and find zoneminder. Enable it. You can start the service hear also, Or in a terminal:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
service zoneminder start &lt;br /&gt;
&lt;br /&gt;
[18] Last thing - edit the SECOND entry of short_open_tag down at line 229. Again as root (menu-Application::System Tools::Terminal), gedit /etc/php.ini&lt;br /&gt;
&lt;br /&gt;
Change short_open_tag from &amp;#039;off&amp;#039; to &amp;#039;on&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[19] reboot. open browser, type &amp;#039;localhost/zm&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[20] It may be necessary to change the ffmpeg path in options::images to get ffmpeg to make videos. Generally removing the /local from the existing path will fix this issue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Or (the original wiki walk through)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You should be able to just do &amp;quot;yum install zoneminder&amp;quot;, create the zm database,  find the zm_create.sql file (rpm -ql zoneminder) and import it to mysql, then start zoneminder.   Plus allow web access. Edit  /etc/httpd/conf.d/zoneminder.conf and comment out (#) or delete this line :-&lt;br /&gt;
&lt;br /&gt;
 Deny from all # DELETE THIS LINE&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
This didn&amp;#039;t work for me due to 2 problems.  First was php.ini section short_open_tag = Off, set to on&lt;br /&gt;
&lt;br /&gt;
 short_open_tag = On&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
The other problem was zm_create.sql had duplicate indexes reported using phpMyAdmin.  Removed all &amp;quot;INSERT INTO MonitorPresets&amp;quot; and &amp;quot;INSERT INTO MonitorPresets&amp;quot; in zm_create.sql and that imported cleanly. Alternatively just import from the command line mysql -u zmuser -p &amp;lt; zm_create.sql&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=50242&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Manual Install Version 1.24.2 with ffmpeg enabled&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Version 1.23.3 has always compiled ok on Fedora 9/10/11 but I had problems with version 1.24.2. &lt;br /&gt;
&lt;br /&gt;
Problems with compiling fixed by adding  #include &amp;lt;cstdio&amp;gt; to all .cpp files in src directory and removing ccache package (yum remove ccache)&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=55152&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=12515&amp;amp;sid=0da85eb2fc78917d7a78cf788603a320&lt;br /&gt;
&lt;br /&gt;
If using ffmpeg and ffmpeg-devel packages you may see problem compiling with libavutil.a . I could not get ffmpeg to compile so downloaded the Fedora source package and compiled it manually.&lt;br /&gt;
&lt;br /&gt;
 yumdownloader --source ffmpeg&lt;br /&gt;
&lt;br /&gt;
sudo rpm -Uvh ffmpeg-0.5-5.20091026svn.fc12.src.rpm&lt;br /&gt;
&lt;br /&gt;
Needed the following packages &lt;br /&gt;
&lt;br /&gt;
 sudo yum install dirac-devel faad2-devel gsm-devel imlib2-devel lame-devel libdc1394-devel libtheora-devel libvdpau-devel openjpeg-devel \&lt;br /&gt;
 schroedinger-devel speex-devel texi2html x264-devel xvidcore-devel yasm&lt;br /&gt;
&lt;br /&gt;
See http://fozzolog.fozzilinymoo.org/tech/2009/11/recompiling-ffmpeg-for-fedora-12-to-add-faac-support.html  (don&amp;#039;t need to add faac support, just follow procedure)&lt;br /&gt;
&lt;br /&gt;
My rpmbuild failed so from the BUILD/ffmpeg-20091026&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
 sudo make install-libs&lt;br /&gt;
&lt;br /&gt;
and configured ZoneMinder to use  /usr/local for FFMPEG&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost \&lt;br /&gt;
 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr -L/usr/lib/mysql&amp;quot; ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local&lt;br /&gt;
&lt;br /&gt;
==Fedora 8==&lt;br /&gt;
* Have packages for Apache and MySQL installed on the system.&lt;br /&gt;
* Install the zoneminder RPM package on the system&lt;br /&gt;
: Fedora Information for package zoneminder&lt;br /&gt;
: * http://koji.fedoraproject.org/koji/packageinfo?packageID=4691&lt;br /&gt;
* Configure zoneminder&lt;br /&gt;
* Make sure Apache and MySQL services are running&lt;br /&gt;
* Edit the zoneminder.conf apache configuration file to allow web connections&lt;br /&gt;
  vi /etc/httpd/conf.d/zoneminder.conf&lt;br /&gt;
* Build the MySQL database table for zoneminder&lt;br /&gt;
  mysql -p -u root mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &amp;gt; mysqladmin -p -u root reload&lt;br /&gt;
&lt;br /&gt;
The Fedora RPM creates /var/log/zoneminder, but the database scripts point logs to /tmp, rather than the new directory.&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Paths&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_PATH_LOGS = /var/log/zoneminder&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Debug&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_EXTRA_DEBUG_LOG = /var/log/zoneminder/zm_debug.log+&lt;br /&gt;
&lt;br /&gt;
* Install ffmpeg on Fedora.&lt;br /&gt;
Due to licensing the ffmpeg package is absent from Fedora.  It can be added from [[Fedora_Linux_Distribution_Reference#Livna:_Get_Important_Packages_Missing_From_Fedora|Livna]].&lt;br /&gt;
  wget http://rpm.livna.org/livna-release-8.rpm&lt;br /&gt;
  rpm -ih livna-release-8.rpm&lt;br /&gt;
  yum install ffmpeg&lt;br /&gt;
  yum install ffmpeg-devel&lt;br /&gt;
Which provides the following: ffmpeg-libs-0.4.9-0.41.20071011.lvn8, ffmpeg-0.4.9-0.41.20071011.lvn8, ffmpeg-devel-0.4.9-0.41.20071011.lvn8&lt;br /&gt;
&lt;br /&gt;
* Test ffmpeg&lt;br /&gt;
  ffmpeg -f image2 -i %03d-capture.jpg /tmp/movie.mpg&lt;br /&gt;
&lt;br /&gt;
==Fedora 7==&lt;br /&gt;
* Builds From source - see [[Fedora Core 6 Step-by-Step]] &amp;#039;&amp;#039;&amp;#039;AS WELL AS&amp;#039;&amp;#039;&amp;#039; [http://www.zoneminder.com/forums/viewtopic.php?t=9414 Fedora 7 forum topic]&lt;br /&gt;
*RPMs are Available in the &amp;#039;&amp;#039;&amp;#039;main Fedora 7 distribution&amp;#039;&amp;#039;&amp;#039;, and in the development &amp;#039;rawhide&amp;#039; tree.&lt;br /&gt;
**Its as easy as running: yum install zoneminder&lt;br /&gt;
**Take a look at [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 6==&lt;br /&gt;
*Build from source [[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
* RPMs are also available right now in &amp;#039;&amp;#039;&amp;#039;Fedora Extras&amp;#039;&amp;#039;&amp;#039; for Fedora Core 6.  &lt;br /&gt;
** [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 4==&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5550</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=5550"/>
		<updated>2012-10-01T03:30:16Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added Fedora 18 Alpha changes&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;
==Fedora 18 (alpha)==&lt;br /&gt;
Do all the following as sudo (or root)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; disable selinux&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/selinux/config&amp;lt;br/&amp;gt;&lt;br /&gt;
*change the word &amp;#039;enforcing&amp;#039; to &amp;#039;disabled&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REBOOT&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf &lt;br /&gt;
* in the section - &amp;lt;Directory &amp;quot;/usr/share/zoneminder/www&amp;quot;&amp;gt;&lt;br /&gt;
**remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&lt;br /&gt;
**remove the &amp;#039;-Indexes&amp;#039; on the Options line on Line 17 )I don&amp;#039;t think the &amp;#039;-&amp;#039; is supposed to be there&lt;br /&gt;
**Comment out the Order and Allow lines and insert the new syntax &amp;#039;Require all granted&amp;#039; as a new line&lt;br /&gt;
* I also got a ScriptAlias error for the cgi-bin/zm alias so I commented the cgi-bin scriptAlias in the /etc/httpd/conf/httpd.conf&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 17==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start mysqld.service&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start httpd.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
systemctl start zoneminder.service&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 14==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;install packages:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
yum install mysql mysql-server zoneminder&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup mysql:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/mysqld start&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql_secure_installation # enable root password&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&amp;lt;br/&amp;gt;&lt;br /&gt;
mysql -u root -p&amp;lt;br/&amp;gt;&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;lt;br/&amp;gt;&lt;br /&gt;
use zm;&amp;lt;br/&amp;gt;&lt;br /&gt;
quit&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setup apache web server:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
vi /etc/httpd/conf.d/zoneminder.conf # remove the line &amp;quot;Deny from all # DELETE THIS LINE&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/httpd start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;start zoneminder&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
/etc/init.d/zoneminder start&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Fedora 11, 12 and 13==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Easy Way&amp;#039;&amp;#039;&amp;#039; Adapted from a forum post by &amp;quot;hiredguntech&amp;quot; or just search the forum for &amp;quot;flowers for candy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Step-by-step installation of ZM v1.24.2 on Fedora-12.&lt;br /&gt;
&lt;br /&gt;
(1) load fc12 using the netinstall ISO (the CD wants to use dhcp and doesn&amp;#039;t work well with an assigned fixed IP) - turn off &amp;#039;office&amp;#039; and turn on &amp;#039;server&amp;#039; and &amp;#039;development&amp;#039;. Besure to include a large /var partition through custom partitioning and use localhost instead of what it suggests (domain.localhost ?). Also, if you&amp;#039;re using a capture card install it (them) in the system before starting the netinstall CD. Save these steps as a .txt file so the code can be cut and paste into the terminal with ease.&lt;br /&gt;
&lt;br /&gt;
[2] Remove evolution from task bar (right click... (not a requirement)). &lt;br /&gt;
&lt;br /&gt;
[3] Set screensaver to NOT require password and set it to 20 minutes or more (menu-system::preferences::screensaver). &lt;br /&gt;
&lt;br /&gt;
(4) Disable SELinux. (menu-system::Admin::SELinux Mgmnt; change system default enforcing mode to disabled).&lt;br /&gt;
&lt;br /&gt;
[5] Enable sudo for yourself. From a terminal (menu-Application::System Tools::Terminal), &lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
echo &amp;#039;&amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039; ALL=(ALL) ALL&amp;#039; &amp;gt;&amp;gt; /etc/sudoers  (put YOUR user name from FC12 installation in place of &amp;#039;&amp;#039;&amp;#039;YourUserName&amp;#039;&amp;#039;&amp;#039;) &lt;br /&gt;
&lt;br /&gt;
(6) Set up the RPM Fusion Repository (in open terminal). &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit (closes terminal window)&lt;br /&gt;
&lt;br /&gt;
(7) Install the pre-requisites, (menu-System::Administration::Add/Remove Software) type in the search field the following package names and select each of the closest match (there will be &amp;#039;other&amp;#039; packages related or similar named - look for the right one, and check-it.) &lt;br /&gt;
&lt;br /&gt;
mysql-server &lt;br /&gt;
&lt;br /&gt;
mysql-devel &lt;br /&gt;
&lt;br /&gt;
pcre-devel &lt;br /&gt;
&lt;br /&gt;
ffmpeg &lt;br /&gt;
&lt;br /&gt;
ffmpeg-devel &lt;br /&gt;
&lt;br /&gt;
Hit the &amp;#039;Apply&amp;#039; button, accept any added packages, type root password, and let this stuff load. &lt;br /&gt;
&lt;br /&gt;
[8] Install any updates that are available, its the yellow icon up by the time.  &lt;br /&gt;
&lt;br /&gt;
(9) Enable the services: web and db. (menu-System::Administration::Services) and find the following: &lt;br /&gt;
&lt;br /&gt;
httpd &lt;br /&gt;
&lt;br /&gt;
mysqld &lt;br /&gt;
&lt;br /&gt;
for each of them hit the &amp;#039;enable button&amp;#039; so you can start them later. &lt;br /&gt;
&lt;br /&gt;
(10) Reboot. This allows all the services to start and settle in. &lt;br /&gt;
&lt;br /&gt;
(11) Now add Zoneminder (menu-System::Administration::Add/Remove Software) Type Zoneminder in the search field select it and apply.&lt;br /&gt;
&lt;br /&gt;
[13] &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; To edit as root: open a terminal (menu-Application::System Tools::Terminal), su to root, type &amp;#039;gedit &amp;lt;path/filename&amp;gt;&amp;#039;. Now you have sufficient permissions to edit &amp;amp; save as root. &lt;br /&gt;
&lt;br /&gt;
(14) Edit as root /etc/httpd/conf.d/zoneminder.conf to remove the &amp;#039;Deny from All&amp;#039; line. It even says &amp;#039;DELETE THIS LINE&amp;#039;, so it should be easy to find. Save it. &lt;br /&gt;
&lt;br /&gt;
(15) As root, [or with sudo] build the zm database (menu-Application::System Tools::Terminal).  &lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
su &lt;br /&gt;
&lt;br /&gt;
(enter root password) &lt;br /&gt;
&lt;br /&gt;
mysql mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &lt;br /&gt;
&lt;br /&gt;
mysqladmin reload &lt;br /&gt;
&lt;br /&gt;
mysql mysql &lt;br /&gt;
&lt;br /&gt;
grant select,insert,update,delete on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
\q &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
exit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(16) Enable zoneminder. (menu-System::Administration::Services) and find zoneminder. Enable it. You can start the service hear also, Or in a terminal:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;br /&gt;
service zoneminder start &lt;br /&gt;
&lt;br /&gt;
[18] Last thing - edit the SECOND entry of short_open_tag down at line 229. Again as root (menu-Application::System Tools::Terminal), gedit /etc/php.ini&lt;br /&gt;
&lt;br /&gt;
Change short_open_tag from &amp;#039;off&amp;#039; to &amp;#039;on&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[19] reboot. open browser, type &amp;#039;localhost/zm&amp;#039; &lt;br /&gt;
&lt;br /&gt;
[20] It may be necessary to change the ffmpeg path in options::images to get ffmpeg to make videos. Generally removing the /local from the existing path will fix this issue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Or (the original wiki walk through)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You should be able to just do &amp;quot;yum install zoneminder&amp;quot;, create the zm database,  find the zm_create.sql file (rpm -ql zoneminder) and import it to mysql, then start zoneminder.   Plus allow web access. Edit  /etc/httpd/conf.d/zoneminder.conf and comment out (#) or delete this line :-&lt;br /&gt;
&lt;br /&gt;
 Deny from all # DELETE THIS LINE&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
This didn&amp;#039;t work for me due to 2 problems.  First was php.ini section short_open_tag = Off, set to on&lt;br /&gt;
&lt;br /&gt;
 short_open_tag = On&lt;br /&gt;
&lt;br /&gt;
Restart/reload apache&lt;br /&gt;
&lt;br /&gt;
 sudo service httpd restart&lt;br /&gt;
&lt;br /&gt;
The other problem was zm_create.sql had duplicate indexes reported using phpMyAdmin.  Removed all &amp;quot;INSERT INTO MonitorPresets&amp;quot; and &amp;quot;INSERT INTO MonitorPresets&amp;quot; in zm_create.sql and that imported cleanly. Alternatively just import from the command line mysql -u zmuser -p &amp;lt; zm_create.sql&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=50242&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Manual Install Version 1.24.2 with ffmpeg enabled&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Version 1.23.3 has always compiled ok on Fedora 9/10/11 but I had problems with version 1.24.2. &lt;br /&gt;
&lt;br /&gt;
Problems with compiling fixed by adding  #include &amp;lt;cstdio&amp;gt; to all .cpp files in src directory and removing ccache package (yum remove ccache)&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=55152&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=12515&amp;amp;sid=0da85eb2fc78917d7a78cf788603a320&lt;br /&gt;
&lt;br /&gt;
If using ffmpeg and ffmpeg-devel packages you may see problem compiling with libavutil.a . I could not get ffmpeg to compile so downloaded the Fedora source package and compiled it manually.&lt;br /&gt;
&lt;br /&gt;
 yumdownloader --source ffmpeg&lt;br /&gt;
&lt;br /&gt;
sudo rpm -Uvh ffmpeg-0.5-5.20091026svn.fc12.src.rpm&lt;br /&gt;
&lt;br /&gt;
Needed the following packages &lt;br /&gt;
&lt;br /&gt;
 sudo yum install dirac-devel faad2-devel gsm-devel imlib2-devel lame-devel libdc1394-devel libtheora-devel libvdpau-devel openjpeg-devel \&lt;br /&gt;
 schroedinger-devel speex-devel texi2html x264-devel xvidcore-devel yasm&lt;br /&gt;
&lt;br /&gt;
See http://fozzolog.fozzilinymoo.org/tech/2009/11/recompiling-ffmpeg-for-fedora-12-to-add-faac-support.html  (don&amp;#039;t need to add faac support, just follow procedure)&lt;br /&gt;
&lt;br /&gt;
My rpmbuild failed so from the BUILD/ffmpeg-20091026&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
 sudo make install-libs&lt;br /&gt;
&lt;br /&gt;
and configured ZoneMinder to use  /usr/local for FFMPEG&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost \&lt;br /&gt;
 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr -L/usr/lib/mysql&amp;quot; ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local&lt;br /&gt;
&lt;br /&gt;
==Fedora 8==&lt;br /&gt;
* Have packages for Apache and MySQL installed on the system.&lt;br /&gt;
* Install the zoneminder RPM package on the system&lt;br /&gt;
: Fedora Information for package zoneminder&lt;br /&gt;
: * http://koji.fedoraproject.org/koji/packageinfo?packageID=4691&lt;br /&gt;
* Configure zoneminder&lt;br /&gt;
* Make sure Apache and MySQL services are running&lt;br /&gt;
* Edit the zoneminder.conf apache configuration file to allow web connections&lt;br /&gt;
  vi /etc/httpd/conf.d/zoneminder.conf&lt;br /&gt;
* Build the MySQL database table for zoneminder&lt;br /&gt;
  mysql -p -u root mysql &amp;lt; /usr/share/zoneminder/db/zm_create.sql &amp;gt; mysqladmin -p -u root reload&lt;br /&gt;
&lt;br /&gt;
The Fedora RPM creates /var/log/zoneminder, but the database scripts point logs to /tmp, rather than the new directory.&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Paths&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_PATH_LOGS = /var/log/zoneminder&lt;br /&gt;
* Click &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Debug&amp;#039;&amp;#039;&amp;#039; tab, and change &lt;br /&gt;
  ZM_EXTRA_DEBUG_LOG = /var/log/zoneminder/zm_debug.log+&lt;br /&gt;
&lt;br /&gt;
* Install ffmpeg on Fedora.&lt;br /&gt;
Due to licensing the ffmpeg package is absent from Fedora.  It can be added from [[Fedora_Linux_Distribution_Reference#Livna:_Get_Important_Packages_Missing_From_Fedora|Livna]].&lt;br /&gt;
  wget http://rpm.livna.org/livna-release-8.rpm&lt;br /&gt;
  rpm -ih livna-release-8.rpm&lt;br /&gt;
  yum install ffmpeg&lt;br /&gt;
  yum install ffmpeg-devel&lt;br /&gt;
Which provides the following: ffmpeg-libs-0.4.9-0.41.20071011.lvn8, ffmpeg-0.4.9-0.41.20071011.lvn8, ffmpeg-devel-0.4.9-0.41.20071011.lvn8&lt;br /&gt;
&lt;br /&gt;
* Test ffmpeg&lt;br /&gt;
  ffmpeg -f image2 -i %03d-capture.jpg /tmp/movie.mpg&lt;br /&gt;
&lt;br /&gt;
==Fedora 7==&lt;br /&gt;
* Builds From source - see [[Fedora Core 6 Step-by-Step]] &amp;#039;&amp;#039;&amp;#039;AS WELL AS&amp;#039;&amp;#039;&amp;#039; [http://www.zoneminder.com/forums/viewtopic.php?t=9414 Fedora 7 forum topic]&lt;br /&gt;
*RPMs are Available in the &amp;#039;&amp;#039;&amp;#039;main Fedora 7 distribution&amp;#039;&amp;#039;&amp;#039;, and in the development &amp;#039;rawhide&amp;#039; tree.&lt;br /&gt;
**Its as easy as running: yum install zoneminder&lt;br /&gt;
**Take a look at [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 6==&lt;br /&gt;
*Build from source [[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
* RPMs are also available right now in &amp;#039;&amp;#039;&amp;#039;Fedora Extras&amp;#039;&amp;#039;&amp;#039; for Fedora Core 6.  &lt;br /&gt;
** [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 4==&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ffmpeg&amp;diff=5476</id>
		<title>Ffmpeg</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ffmpeg&amp;diff=5476"/>
		<updated>2012-07-23T03:13:03Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added example FFMPEG_OUTPUT_OPTIONS&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ffmpeg is a set of video processing tools used by ZoneMinder to generate true video files from the frames captured and saved.  It has always been under heavy development.&lt;br /&gt;
&lt;br /&gt;
Under ffmpeg 0.4.8, the directions in the official ZoneMinder documentation are exactly right - use &amp;#039;./configure &amp;lt;extra options&amp;gt;&amp;#039; followed by &amp;#039;make&amp;#039;, &amp;#039;make install&amp;#039;, and &amp;#039;make installib&amp;#039; - to compile and install the software for use with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
Under the snapshots at least as old as 2008-09-25, the installlib make target has been removed.  Instead, it&amp;#039;s done in the configure stage with &amp;#039;./configure --enable-shared --enable-swscale --enable-gpl &amp;lt;extra options&amp;gt;&amp;#039;.  Without passing these extra options to configure, ZoneMinder will be unable to find the header files that it needs to compile correctly.&lt;br /&gt;
&lt;br /&gt;
I am unsure as to how common this problem is, but my Slackware box came with GNU make 3.80.  You can check your version with &amp;#039;make -L&amp;#039;.  The recent development snapshots of ffmpeg will choke with this version of make with a &amp;#039;virtual memory exhausted&amp;#039; error message.  The solution is to update the version of GNU make on your system to at least 3.81.  (This, in my opinion, is a bug in ffmpeg that should be remedied; thankfully, the solution is simple enough.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFMPEG Video Export Options ==&lt;br /&gt;
Ffmpeg is used in exporting events to downloadable video files. Exporting video is done using the [http://www.zoneminder.com/wiki/index.php?title=Special%3ASearch&amp;amp;search=zmvideo.pl&amp;amp;go=Go zmvideo.pl] script.&lt;br /&gt;
&lt;br /&gt;
You can control the options that get passed to ffmpeg during the export process using 2 config options found in the Images tab of the options dialog.&lt;br /&gt;
=== FFMPEG_INPUT_OPTIONS ===&lt;br /&gt;
usually leave this empty&lt;br /&gt;
=== FFMPEG_OUTPUT_OPTIONS ===&lt;br /&gt;
To obtain a good quality export x264 based mp4 video file - the following example works...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-r 30 -vcodec libx264 -threads 2 -b 2000k -minrate 800k -maxrate 5000k&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=2172</id>
		<title>Hardware Compatibility List</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=2172"/>
		<updated>2007-09-24T00:41:19Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added UVC supported V4L2 cameras&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder will work with almost any capture card that is supported by the linux kernel.&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Pico2000]] - 4 port card, one chip bt878, around 2 fps when using all channels&lt;br /&gt;
&lt;br /&gt;
[[Bt878_4chip_8inputs]] - I don&amp;#039;t know the name for it, 4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]] [http://www.ituner.com/spectra.htm]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] [http://www.linuxmedialabs.com]&lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Grand X Guard]] [http://www.grandtec.com/xguard.htm]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
Leadtek WinFast VC 100 - the cheapest bt878 model with no tuner on it, just Com/Svideo in.&lt;br /&gt;
&lt;br /&gt;
Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&lt;br /&gt;
&lt;br /&gt;
A note on the bt8x8-based TV-tuner cards: these usually have beside the tuner input, also a Composite and an S-Video input. You can hook up 2 analog cameras to these, and access from ZoneMinder both of them as individual cameras, at max 15Fps. You don&amp;#039;t need two separate TV cards for two cameras!&lt;br /&gt;
&lt;br /&gt;
== Analog Cameras ==&lt;br /&gt;
&lt;br /&gt;
Any regular composite or S-video camera connected via a supported capture card.  Some analog cameras feature camera control - ZM supports several of these camera&amp;#039;s Pan/Tilt/Zoom functions via serial port control, as well as camera Presets, Focus, Iris, etc.&lt;br /&gt;
*[[PicturetelControlScript | PictureTel PTZ2N]].&lt;br /&gt;
&lt;br /&gt;
== Network Cameras ==&lt;br /&gt;
For Network Cams to work they need to be able to stream MJPEG without the requirment of activex controls. If you see the requirement for the camera calls for IE then there is a good chance it may not work. The other option is to grab JPEG images if the camera supports that option which will work but at a lower frame rate.&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] (just about all recent models, including support for PTZ functions)&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] BL-C1, BLC-10, BL-C20, KX-HCM10 etc (including PTZ support)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] DCS-1000(W) and DCS-900 - plus other D-Link IP models (This have been hit and miss, not all work with ZM. A partial list of unsupported cameras are inside).&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] SNC-M1 and SNC-M3 wired and wireless - including PTZ support.  Possibly other Sony SNC-, RZ-,  and IP- series?&lt;br /&gt;
&lt;br /&gt;
* [[Grandtec]] [[Grandtec_WLAN_Camera|WLAN Camera]] WiFi or III - acceptable indoor quality, no infrared-filter (better nightvision) cheap!&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] AIC250W - Just remember to turn off PCRE processing in the Options &amp;gt; Network tab.  http://x.x.x.x/video.cgi gives 10 fps 640 x 480 mjpeg feed.  Same camera as D-Link DCS-900W / TrendNet IP-200&lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]] C54NETCAM - Just turn off PCRE processing in the Options &amp;gt; Network tab.  http://x.x.x.x/video.cgi gives 10-20 fps 640 x 480 mjpeg feed.  Seems to be the same camera as TrendNet IP-100&lt;br /&gt;
&lt;br /&gt;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] GS9603 IP Camera with Pan/Tilt, As well as the GS1600(H).&lt;br /&gt;
&lt;br /&gt;
*[[Trendnet]] TV-IP300 and the TV-IP400 / TV-IP400W with PTZ control support. &lt;br /&gt;
&lt;br /&gt;
*Intellinet IPCamera with the new firmware.&lt;br /&gt;
*Old Intellinet IPCamera (model MWNC-100) with this (http://www.zoneminder.com/forums/viewtopic.php?t=7500) protocol adapter. &lt;br /&gt;
&lt;br /&gt;
* Any network camera that allows access to single JPEG image grabs or multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
== Network Digitizers ==&lt;br /&gt;
&lt;br /&gt;
Like Network Cameras, these devices produce a video stream - but they accept an analog video input from a camera or other video source.&lt;br /&gt;
&lt;br /&gt;
*The [[IP9100 | Aviosys IP9100, Models A, B and Plus]] has four analog video inputs.  It produces a ZM compatible video stream from one of the inputs, which is selectable via an http GET command.  There might even be a control script for ZM that lets you select the active video input using &amp;#039;&amp;#039;ZM&amp;#039;s Camera Control Presets!&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3&lt;br /&gt;
&lt;br /&gt;
*[[Logitech QuickCam Express]], QuickCam Pro 3000, QuickCam Communicate STX&lt;br /&gt;
&lt;br /&gt;
*Logitech Quickcam Orbit/Sphere (experimental basic pan/tilt control has also published for testing and hacking [http://www.zoneminder.com/forums/viewtopic.php?t=9788])&lt;br /&gt;
&lt;br /&gt;
*Philips PCVC 730K, PCVC 740K&lt;br /&gt;
**http://www.zoneminder.com/forums/viewtopic.php?t=6645&amp;amp;highlight=zmu&lt;br /&gt;
&lt;br /&gt;
*Any OV511 based USB camera [http://alpha.dyndns.org/ov511/cameras.html]&lt;br /&gt;
&lt;br /&gt;
*Any Philips based USB camera [http://www.smcc.demon.nl/webcam]&lt;br /&gt;
&lt;br /&gt;
*Any CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
* Indirectly supports any [[Uvc | UVC/V4L2]] supported cam such as Logitech Quickcam Pro 5000 using [[Uvc | UVC Streaming]] .&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;Note that most USB cameras that can use Video4Linux, and so can be used by ZoneMinder, have older chipsets and can be hard to find new.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;Note that PWC drivers are not included in the kernel. Some distribution&amp;#039;s add them in and other may not. Here are some relevant links.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 [http://www.smcc.demon.nl/webcam/ Old Maintainer]&lt;br /&gt;
 [http://www.saillard.org/linux/pwc/ Current PWC Maintainer]&lt;br /&gt;
&lt;br /&gt;
== All other hardware as supported by Linux ==&lt;br /&gt;
To find out if your hardware is supported, check the HCL at [http://www.linuxquestions.org/hcl/ linuxquestions.org]&lt;br /&gt;
&lt;br /&gt;
[http://kmuto.jp/debian/hcl/ Debian]&lt;br /&gt;
&lt;br /&gt;
[http://fedoraproject.org/wiki/HCL Fedora]  [http://fedora-linux.nl/wiki/index.php/HCL Fedora Unofficial HCL]&lt;br /&gt;
&lt;br /&gt;
[http://www.mandriva.com/hardware Mandriva]&lt;br /&gt;
&lt;br /&gt;
[https://hardware.redhat.com/hwcert/index.cgi RedHat]&lt;br /&gt;
&lt;br /&gt;
[http://en.opensuse.org/Hardware Suse]&lt;br /&gt;
&lt;br /&gt;
[http://doc.gwos.org/index.php/HCL Ubuntu]&lt;br /&gt;
&lt;br /&gt;
OEM  source for various [http://www.sz-dvr.com DVR card]s&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Uvc&amp;diff=2171</id>
		<title>Uvc</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Uvc&amp;diff=2171"/>
		<updated>2007-09-23T23:23:56Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Updated the streamer commandline for V2 changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
This page describes how to get a camera that uses the new UVC V4L2 drivers to work in ZoneMinder.&lt;br /&gt;
This document does not describe in detail how to install the required software, just what is required. Please consult your linux distrobution&amp;#039;s package install documentation.&lt;br /&gt;
&lt;br /&gt;
==Camera&amp;#039;s found to work using this method==&lt;br /&gt;
&lt;br /&gt;
Below is a list of cameras found to work using this method.&lt;br /&gt;
If you get a camera working with this method, please add the camera details here.&lt;br /&gt;
&lt;br /&gt;
# Logitech Orbit Sphere (new version) USB device ID: 046d:08c2&lt;br /&gt;
# Logitech Quickcam Pro 5000 USB device ID: 046d:08c5&lt;br /&gt;
&lt;br /&gt;
==Required Software==&lt;br /&gt;
&lt;br /&gt;
# Linux UVC drivers http://linux-uvc.berlios.de/&lt;br /&gt;
# UVC_streamer http://www.naaa.de/uvc_streamer.htm&lt;br /&gt;
# Web Browser that allows you to view streams (Firefox works well) http://www.firefox.com/&lt;br /&gt;
# Working install of ZoneMinder&lt;br /&gt;
&lt;br /&gt;
==Procedure==&lt;br /&gt;
&lt;br /&gt;
===Kernel Drivers===&lt;br /&gt;
&lt;br /&gt;
Download and install the UVC kernel drivers&lt;br /&gt;
&lt;br /&gt;
===UVC Streamer===&lt;br /&gt;
&lt;br /&gt;
# Download and install the UVC Streamer software &lt;br /&gt;
## utar/gz the downloaded archive and type &amp;#039;make&amp;#039;  this will compile an executable called &amp;#039;mjpg_streamer&amp;#039; &lt;br /&gt;
## no &amp;#039;make install&amp;#039; is needed (or available in the makefile). &lt;br /&gt;
#Just run the compiled mjpg_streamer from the current dir &lt;br /&gt;
## this will gather and run the webcam with its defaults&lt;br /&gt;
## run &amp;#039;mjpg_streamer --help&amp;#039;  for help&lt;br /&gt;
* If your ZM setup does not have enough buffer memory... you might need to start the streamer software with the following options &amp;#039;-f 1 -r 320x240 -b&amp;#039;&lt;br /&gt;
**This sets the 320x240 resolution at 6 fps, or else ZoneMinder might not get the stream.&lt;br /&gt;
&lt;br /&gt;
 mjpg_streamer -i &amp;quot;input_uvc.so -r 320x240 -f 6&amp;quot; -o &amp;quot;output_http.so -p 8080&amp;quot;  -b&lt;br /&gt;
&lt;br /&gt;
or for the original release version 1&lt;br /&gt;
&lt;br /&gt;
 uvc_stream -f 1 -r 320x240 -b&lt;br /&gt;
&lt;br /&gt;
Check if the stream works. Use firefox and point it to the ip address and port of the machine that runs the streamer (default for UVC_streamer is 8080). If you use firefox on the same machine where the streamer runs, you can use localhost.&lt;br /&gt;
&lt;br /&gt;
http://localhost:8080&lt;br /&gt;
&lt;br /&gt;
If your setup is working, then you will see a stream of the camera.&lt;br /&gt;
&lt;br /&gt;
===ZoneMinder===&lt;br /&gt;
&lt;br /&gt;
# Browse to the ZoneMinder control panel.&lt;br /&gt;
# Define a new Monitor, and use the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under &amp;#039;General&amp;#039; tab:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Source type: remote&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under &amp;#039;Source&amp;#039; tab:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Remote host Name: &amp;lt;ip of host with camera&amp;gt; or if on same host than zoneminder use localhost&lt;br /&gt;
&lt;br /&gt;
Remote host port: 8080 (or if you used another port with uvc_stream put it in here)&lt;br /&gt;
&lt;br /&gt;
Remote Host path: ANYTHING - i just used /file.jpg&lt;br /&gt;
&lt;br /&gt;
Capture witdth: 320&lt;br /&gt;
&lt;br /&gt;
Capture height: 240&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save, and your UVC camera is ready to use.&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Uvc&amp;diff=2170</id>
		<title>Uvc</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Uvc&amp;diff=2170"/>
		<updated>2007-09-23T22:59:29Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: added a bit more help on the streamer compile&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
This page describes how to get a camera that uses the new UVC V4L2 drivers to work in ZoneMinder.&lt;br /&gt;
This document does not describe in detail how to install the required software, just what is required. Please consult your linux distrobution&amp;#039;s package install documentation.&lt;br /&gt;
&lt;br /&gt;
==Camera&amp;#039;s found to work using this method==&lt;br /&gt;
&lt;br /&gt;
Below is a list of cameras found to work using this method.&lt;br /&gt;
If you get a camera working with this method, please add the camera details here.&lt;br /&gt;
&lt;br /&gt;
# Logitech Orbit Sphere (new version) USB device ID: 046d:08c2&lt;br /&gt;
# Logitech Quickcam Pro 5000 USB device ID: 046d:08c5&lt;br /&gt;
&lt;br /&gt;
==Required Software==&lt;br /&gt;
&lt;br /&gt;
# Linux UVC drivers http://linux-uvc.berlios.de/&lt;br /&gt;
# UVC_streamer http://www.naaa.de/uvc_streamer.htm&lt;br /&gt;
# Web Browser that allows you to view streams (Firefox works well) http://www.firefox.com/&lt;br /&gt;
# Working install of ZoneMinder&lt;br /&gt;
&lt;br /&gt;
==Procedure==&lt;br /&gt;
&lt;br /&gt;
===Kernel Drivers===&lt;br /&gt;
&lt;br /&gt;
Download and install the UVC kernel drivers&lt;br /&gt;
&lt;br /&gt;
===UVC Streamer===&lt;br /&gt;
&lt;br /&gt;
# Download and install the UVC Streamer software &lt;br /&gt;
## utar/gz the downloaded archive and type &amp;#039;make&amp;#039;  this will compile an executable called &amp;#039;mjpg_streamer&amp;#039; &lt;br /&gt;
## no &amp;#039;make install&amp;#039; is needed (or available in the makefile). &lt;br /&gt;
#Just run the compiled mjpg_streamer from the current dir or link it into /usr/local/bin&lt;br /&gt;
## this will gather and run the webcam with its defaults&lt;br /&gt;
* If your ZM setup does not have enough buffer memory... you might need to start the streamer software with the following options &amp;#039;-f 1 -r 320x240 -b&amp;#039;&lt;br /&gt;
**This sets the 320x240 resolution, or else ZoneMinder will not get the stream.&lt;br /&gt;
&lt;br /&gt;
 mjpg_streamer -f 1 -r 320x240 -b&lt;br /&gt;
&lt;br /&gt;
or for the original release version 1&lt;br /&gt;
&lt;br /&gt;
 uvc_stream -f 1 -r 320x240 -b&lt;br /&gt;
&lt;br /&gt;
Check if the stream works. Use firefox and point it to the ip address and port of the machine that runs the streamer (default for UVC_streamer is 8080). If you use firefox on the same machine where the streamer runs, you can use localhost.&lt;br /&gt;
&lt;br /&gt;
http://localhost:8080&lt;br /&gt;
&lt;br /&gt;
If your setup is working, then you will see a stream of the camera.&lt;br /&gt;
&lt;br /&gt;
===ZoneMinder===&lt;br /&gt;
&lt;br /&gt;
# Browse to the ZoneMinder control panel.&lt;br /&gt;
# Define a new Monitor, and use the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under &amp;#039;General&amp;#039; tab:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Source type: remote&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under &amp;#039;Source&amp;#039; tab:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Remote host Name: &amp;lt;ip of host with camera&amp;gt; or if on same host than zoneminder use localhost&lt;br /&gt;
&lt;br /&gt;
Remote host port: 8080 (or if you used another port with uvc_stream put it in here)&lt;br /&gt;
&lt;br /&gt;
Remote Host path: ANYTHING - i just used /file.jpg&lt;br /&gt;
&lt;br /&gt;
Capture witdth: 320&lt;br /&gt;
&lt;br /&gt;
Capture height: 240&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save, and your UVC camera is ready to use.&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Uvc&amp;diff=2169</id>
		<title>Uvc</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Uvc&amp;diff=2169"/>
		<updated>2007-09-23T22:44:39Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added Logitech Quickcam Pro 5000&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
This page describes how to get a camera that uses the new UVC V4L2 drivers to work in ZoneMinder.&lt;br /&gt;
This document does not describe in detail how to install the required software, just what is required. Please consult your linux distrobution&amp;#039;s package install documentation.&lt;br /&gt;
&lt;br /&gt;
==Camera&amp;#039;s found to work using this method==&lt;br /&gt;
&lt;br /&gt;
Below is a list of cameras found to work using this method.&lt;br /&gt;
If you get a camera working with this method, please add the camera details here.&lt;br /&gt;
&lt;br /&gt;
# Logitech Orbit Sphere (new version) USB device ID: 046d:08c2&lt;br /&gt;
# Logitech Quickcam Pro 5000 USB device ID: 046d:08c5&lt;br /&gt;
&lt;br /&gt;
==Required Software==&lt;br /&gt;
&lt;br /&gt;
# Linux UVC drivers http://linux-uvc.berlios.de/&lt;br /&gt;
# UVC_streamer http://www.naaa.de/uvc_streamer.htm&lt;br /&gt;
# Web Browser that allows you to view streams (Firefox works well) http://www.firefox.com/&lt;br /&gt;
# Working install of ZoneMinder&lt;br /&gt;
&lt;br /&gt;
==Procedure==&lt;br /&gt;
&lt;br /&gt;
===Kernel Drivers===&lt;br /&gt;
&lt;br /&gt;
Download and install the UVC kernel drivers&lt;br /&gt;
&lt;br /&gt;
===UVC Streamer===&lt;br /&gt;
&lt;br /&gt;
# Download and install the UVC Streamer software&lt;br /&gt;
# Once compiled, start the streamer software with the following options &amp;#039;-f 1 -r 320x240 -b&amp;#039;&lt;br /&gt;
You must select the 320x240 resolution, or else ZoneMinder will not get the stream.&lt;br /&gt;
&lt;br /&gt;
 uvc_stream -f 1 -r 320x240 -b&lt;br /&gt;
&lt;br /&gt;
Check if the stream works. Use firefox and point it to the ip address and port of the machine that runs the streamer (default for UVC_streamer is 8080). If you use firefox on the same machine where the streamer runs, you can use localhost.&lt;br /&gt;
&lt;br /&gt;
http://localhost:8080&lt;br /&gt;
&lt;br /&gt;
If your setup is working, then you will see a stream of the camera.&lt;br /&gt;
&lt;br /&gt;
===ZoneMinder===&lt;br /&gt;
&lt;br /&gt;
# Browse to the ZoneMinder control panel.&lt;br /&gt;
# Define a new Monitor, and use the following settings:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under &amp;#039;General&amp;#039; tab:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Source type: remote&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under &amp;#039;Source&amp;#039; tab:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Remote host Name: &amp;lt;ip of host with camera&amp;gt; or if on same host than zoneminder use localhost&lt;br /&gt;
&lt;br /&gt;
Remote host port: 8080 (or if you used another port with uvc_stream put it in here)&lt;br /&gt;
&lt;br /&gt;
Remote Host path: ANYTHING - i just used /file.jpg&lt;br /&gt;
&lt;br /&gt;
Capture witdth: 320&lt;br /&gt;
&lt;br /&gt;
Capture height: 240&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save, and your UVC camera is ready to use.&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=General_Notes&amp;diff=2086</id>
		<title>General Notes</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=General_Notes&amp;diff=2086"/>
		<updated>2007-08-28T21:19:24Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Capture Card Issues Black Screen Video Devices&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;
&lt;br /&gt;
To install Cambozola for use in zm, Download the cambozola.jar file from the Downloads page or directly from the charliemouse website. If you download from charliemouse you will need to extract the one file (cambozola.jar) from the archive. Place cambozola.jar in the ZM root web directory (so if your web pages for ZM is installed at /var/www/html/zm the file should go there as well). Now all thats left to be done is to enable it in ZM goto options and under the web tab check that cambozola is enabled. Thats it, you&amp;#039;r done.&lt;br /&gt;
&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;
==== Black Screen bttv Video Devices ====&lt;br /&gt;
* Black Screen in ZM when using 2.6.21.5 kernel &amp;#039;&amp;#039;&amp;#039;but&amp;#039;&amp;#039;&amp;#039; works with TVTime&lt;br /&gt;
** http://www.zoneminder.com/forums/viewtopic.php?t=10108 describes why a V4L2 app has to init the devices 1st before a V4L1 app. &lt;br /&gt;
** A script to workaround this is available at http://www.zoneminder.com/forums/viewtopic.php?t=9414&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;
In Ubuntu and other modern distributions you can install MySQL administrator GUI.&lt;br /&gt;
&lt;br /&gt;
the default login is :-&amp;lt;br&amp;gt;&lt;br /&gt;
Server Hostname ---- localhost&amp;lt;br&amp;gt;Username ---- Root&amp;lt;br&amp;gt;Password ----- (Blank, no password)&lt;br /&gt;
&lt;br /&gt;
In here, there is backup and restore functions. The backup can also be scheduled.&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;
Also remember you may need to increase your &amp;#039;shared memory&amp;#039;. See the FAQ for details&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;
==External Triggering==&lt;br /&gt;
====zmtrigger.pl====&lt;br /&gt;
Some discussion on using external events (X10 for example) to trigger your ZM camera:  &lt;br /&gt;
    http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=&lt;br /&gt;
&lt;br /&gt;
(Could use your help here)&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;br /&gt;
&lt;br /&gt;
==Zone Configurations and Fine Tunings==&lt;br /&gt;
&lt;br /&gt;
* This section needs alot of work.  Please contribute as much as you can!&lt;br /&gt;
&lt;br /&gt;
Once you have Zoneminder up and running and all your cameras recording events, it then becomes important to fine tune your zones so that you record all of the events that are important to you, and just as important, NOT record events that are not important.&lt;br /&gt;
&lt;br /&gt;
There are many parameters to be adjusted.  So many, in fact, that it is easy to change just a few parameters, and create a config that does not do what you want at all.  It is all so confusing.  Here, we will attempt to document some basic configs, and explain in some detail the effects that each parameter will have and how each parameter relates to the other parameters.&lt;br /&gt;
&lt;br /&gt;
The Documentation page offers some help in understanding how these parameters are related and important.  You can view the online documentation here:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/fileadmin/downloads/README.html#_Toc151468571  Zone Config Documentation]&lt;br /&gt;
&lt;br /&gt;
[[Reference Image Blend Percentage aka Vapor Trails]]&lt;br /&gt;
&lt;br /&gt;
[[Zone Parameter Explanations version 1.21]]&lt;br /&gt;
&lt;br /&gt;
[[Zone Parameter Explanations version 1.22]]&lt;br /&gt;
&lt;br /&gt;
[[Zone Analysis Pseudo Algorithm]]&lt;br /&gt;
&lt;br /&gt;
[[Zone Configuration Basics]]&lt;br /&gt;
&lt;br /&gt;
[[Zone Configuration Advanced]]&lt;br /&gt;
&lt;br /&gt;
[[Special Situation Configs]]&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=2070</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=2070"/>
		<updated>2007-07-12T05:01:17Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: typo fix&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, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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;
&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;
&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;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&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. &lt;br /&gt;
&lt;br /&gt;
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;
&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;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the RedHat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above, reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and check that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why 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? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&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 intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
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;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&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;
== 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;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&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;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&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 and/or /var/log/syslog&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=2069</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=2069"/>
		<updated>2007-07-12T04:58:10Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added extra info on getting shared memory setup.&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, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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;
&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;
&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;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&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. &lt;br /&gt;
&lt;br /&gt;
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;
&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;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the Redhat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and checkk that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why 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? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&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 intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
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;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&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;
== 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;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&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;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&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 and/or /var/log/syslog&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=2062</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=2062"/>
		<updated>2007-07-10T16:31:13Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: Added Fedora distro inclussion&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;
==Fedora 7==&lt;br /&gt;
* Builds From source - see [[Fedora Core 6 Step-by-Step]] &amp;#039;&amp;#039;&amp;#039;AS WELL AS&amp;#039;&amp;#039;&amp;#039; [http://www.zoneminder.com/forums/viewtopic.php?t=9414 Fedora 7 forum topic]&lt;br /&gt;
*RPMs are Available in the &amp;#039;&amp;#039;&amp;#039;main Fedora 7 distribution&amp;#039;&amp;#039;&amp;#039;, and in the development &amp;#039;rawhide&amp;#039; tree.&lt;br /&gt;
**Its as easy as running: yum install zoneminder&lt;br /&gt;
**Take a look at [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 6==&lt;br /&gt;
*Build from source [[Fedora Core 6 Step-by-Step]]&lt;br /&gt;
&lt;br /&gt;
* RPMs are also available right now in &amp;#039;&amp;#039;&amp;#039;Fedora Extras&amp;#039;&amp;#039;&amp;#039; for Fedora Core 6.  &lt;br /&gt;
** [http://www.zoneminder.com/forums/viewtopic.php?t=9674 The Announcement post in the forums]&lt;br /&gt;
&lt;br /&gt;
==Fedora Core 4==&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>Tgutwin</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Utilities&amp;diff=1903</id>
		<title>Utilities</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Utilities&amp;diff=1903"/>
		<updated>2007-03-05T04:28:39Z</updated>

		<summary type="html">&lt;p&gt;Tgutwin: MythZoneMinder&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;br /&gt;
&lt;br /&gt;
[http://www.mythtv.org/wiki/index.php/MythZoneMinder MythZoneMinder] - a ZoneMinder plugin for MythTV to enable viewing ZM status, monitors, and events.&lt;/div&gt;</summary>
		<author><name>Tgutwin</name></author>
	</entry>
</feed>