<?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=Knnniggett</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=Knnniggett"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Knnniggett"/>
	<updated>2026-05-03T15:20:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=15101</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=15101"/>
		<updated>2018-03-07T02:10:38Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==ZoneMinder 1.31 or Newer==&lt;br /&gt;
Please follow the steps shown on our readthedocs site:&lt;br /&gt;
http://zoneminder.readthedocs.io/en/latest/installationguide/dedicateddrive.html&lt;br /&gt;
&lt;br /&gt;
==ZoneMinder 1.30.4 or Older==&lt;br /&gt;
Note: Here is a reliable method to mount a drive or external share using systemd in Ubuntu or Debian:&lt;br /&gt;
https://wiki.zoneminder.com/Common_Issues_with_Zoneminder_Installation_on_Ubuntu#Use_Systemd_to_Mount_Internal_Drive_or_NAS&lt;br /&gt;
This can also be done in Centos or Red Hat distros...&lt;br /&gt;
&lt;br /&gt;
On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may want to change the storage location - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;service zoneminder stop&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;, or &amp;quot;systemctl stop zoneminder&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data corruption&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian and Ubuntu, these are under /var/cache/zoneminder. In CentOS and Fedora, these are under /var/lib/zoneminder. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;If you wish to copy the data across, MOVE the events and images directories to /newdrive/zoneminder  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder until this entire process is completed. Doing so will cause all your events to be lost!&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive/zoneminder. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/zoneminder/events&lt;br /&gt;
&lt;br /&gt;
mv /var/lib/zoneminder/events/* /var/lib/zoneminder/events_old/&lt;br /&gt;
-- or --&lt;br /&gt;
rm -rf /var/lib/zoneminder/events/&lt;br /&gt;
&lt;br /&gt;
Add these lines in fstab to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /newdrive ext3 defaults 0 2&lt;br /&gt;
 /newdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /newdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or in some cases,&lt;br /&gt;
&lt;br /&gt;
 /newdrive/zoneminder/images /var/lib/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /newdrive/zoneminder/events /var/lib/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Ensure ZoneMinder can write to the new destination by changing the owner and group to that of the web server user account. Debian based distros typically use &amp;quot;www-data&amp;quot; as the web server user account while many rpm based distros use &amp;quot;apache&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
 chown -R apache:apache /newdrive/zoneminder&lt;br /&gt;
&lt;br /&gt;
6. Finally, mount /newdrive and test your fstab entries (&amp;quot;mount -a&amp;quot;). Restart zoneminder ( &amp;quot;service zoneminder start&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;, or &amp;quot;systemctl start zoneminder&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;br /&gt;
&lt;br /&gt;
FREQUENTLY ASKED QUESTIONS&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
Why can&amp;#039;t I just symlink the newdrive to the events folder?&lt;br /&gt;
Answer: &lt;br /&gt;
Because it does not work in every case. Many rpm and deb packages need the file folders set up exactly the way they were when the first zoneminder package was installed. Changing that around can cause package upgrades to fail, or worse you could lose all your data!&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
I noticed that there is an events folder under /usr/share/zoneminder/www, can I mount my dedicated hard drive or volume to that folder?&lt;br /&gt;
Answer:&lt;br /&gt;
This will not work in every case either and should be avoided. The events and images folders under /usr/share/zoneminder/www are actually symbolic links that point to the real folders under /var/lib/zoneminder (or /var/cache/zoneminder).  Altering this in any way has the same affect as the answer to the first question.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=14782</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=14782"/>
		<updated>2017-08-15T17:05:27Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Network Digitizer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ZoneMinder Wiki is community based. That means the list below is only as good as those who chose to maintain it. Did you find something outdated? Did you get a camera working, which is not shown in the list below? Please consider adding or improving this list.&lt;br /&gt;
&lt;br /&gt;
== IP Network Cameras ==&lt;br /&gt;
Most modern IP cameras are ONVIF compliant, which means most modern IP Camera should work with ZoneMinder. There are some caveats to this general rule. Cameras which (only) send an encrypted stream will not work with any third party recording software. Some &amp;quot;cloud&amp;quot; cameras fit into this category. You should verify one can adjust camera parameters such as frame rate, resolution, contrast, etc within the camera&amp;#039;s web portal. This, in itself, is not a show stopper, but it will make your experience a lot easier.&lt;br /&gt;
&lt;br /&gt;
The following list of IP cameras is not exhaustive. If your camera is not listed, it does not mean it will not work with ZoneMinder. Rather it likely means no one has taken the time to add it to the list. Please consider adding your camera to this list once you get it working.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amcrest QCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Android]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[COT Pro]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[DBPower]] (H.264 Model, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Digoo]] At least M1Q, probably more. &lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[EyeSpy247]] (Branded Sercomm RC8021)&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, IN-5907HD, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Keekoon]] KK002 (KK001 and 3 are probably the same)&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Lilin]] LR7022&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Netcat]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Pelco]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Revotech]] I6032W-P&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Sricam]]&lt;br /&gt;
&lt;br /&gt;
* [[TMEZON]] Some&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&lt;br /&gt;
&lt;br /&gt;
== IP Video Encoder ==&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. An easy way to find these are to search for video encoders or video servers, e.g. 8 channel video encoder, or 2 channel video server.  Note that analog video encoders are becoming obsolete, as HD analog video encoders become the norm.&lt;br /&gt;
&lt;br /&gt;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Single Board Computers ==&lt;br /&gt;
&lt;br /&gt;
Single board computers such as the Raspberry Pi, Odroid, Beagleboard, and many others. Can function as ZM server (standalone or external) and/or as a [https://wiki.zoneminder.com/How_to_share_an_USB_camera_from_a_remote_ZM_server_to_another_ZM_Server camera].&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi - Raspbian]]&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi 2 - Fedora]]&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi 2 - Raspbian]]&lt;br /&gt;
&lt;br /&gt;
* [[Odroid - XU4 - Ubuntu Mate]]&lt;br /&gt;
&lt;br /&gt;
* [[Beaglebone Black - Devuan Jessie]]&lt;br /&gt;
&lt;br /&gt;
* [[Dedicated SBC Camera Monitor]] Beaglebone w/Devuan Jessie as video monitor.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=14781</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=14781"/>
		<updated>2017-08-15T17:04:20Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* IP Network Cameras */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ZoneMinder Wiki is community based. That means the list below is only as good as those who chose to maintain it. Did you find something outdated? Did you get a camera working, which is not shown in the list below? Please consider adding or improving this list.&lt;br /&gt;
&lt;br /&gt;
== IP Network Cameras ==&lt;br /&gt;
Most modern IP cameras are ONVIF compliant, which means most modern IP Camera should work with ZoneMinder. There are some caveats to this general rule. Cameras which (only) send an encrypted stream will not work with any third party recording software. Some &amp;quot;cloud&amp;quot; cameras fit into this category. You should verify one can adjust camera parameters such as frame rate, resolution, contrast, etc within the camera&amp;#039;s web portal. This, in itself, is not a show stopper, but it will make your experience a lot easier.&lt;br /&gt;
&lt;br /&gt;
The following list of IP cameras is not exhaustive. If your camera is not listed, it does not mean it will not work with ZoneMinder. Rather it likely means no one has taken the time to add it to the list. Please consider adding your camera to this list once you get it working.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amcrest QCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Android]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[COT Pro]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[DBPower]] (H.264 Model, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Digoo]] At least M1Q, probably more. &lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[EyeSpy247]] (Branded Sercomm RC8021)&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, IN-5907HD, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Keekoon]] KK002 (KK001 and 3 are probably the same)&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Lilin]] LR7022&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Netcat]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Pelco]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Revotech]] I6032W-P&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Sricam]]&lt;br /&gt;
&lt;br /&gt;
* [[TMEZON]] Some&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&lt;br /&gt;
&lt;br /&gt;
== Network Digitizer ==&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. An easy way to find these are to search for video encoders or video servers, e.g. 8 channel video encoder, or 2 channel video server.  Note that analog video encoders are becoming obsolete, as HD analog video encoders become the norm.&lt;br /&gt;
&lt;br /&gt;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Single Board Computers ==&lt;br /&gt;
&lt;br /&gt;
Single board computers such as the Raspberry Pi, Odroid, Beagleboard, and many others. Can function as ZM server (standalone or external) and/or as a [https://wiki.zoneminder.com/How_to_share_an_USB_camera_from_a_remote_ZM_server_to_another_ZM_Server camera].&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi - Raspbian]]&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi 2 - Fedora]]&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi 2 - Raspbian]]&lt;br /&gt;
&lt;br /&gt;
* [[Odroid - XU4 - Ubuntu Mate]]&lt;br /&gt;
&lt;br /&gt;
* [[Beaglebone Black - Devuan Jessie]]&lt;br /&gt;
&lt;br /&gt;
* [[Dedicated SBC Camera Monitor]] Beaglebone w/Devuan Jessie as video monitor.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=14780</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=14780"/>
		<updated>2017-08-15T17:01:46Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ZoneMinder Wiki is community based. That means the list below is only as good as those who chose to maintain it. Did you find something outdated? Did you get a camera working, which is not shown in the list below? Please consider adding or improving this list.&lt;br /&gt;
&lt;br /&gt;
== IP Network Cameras ==&lt;br /&gt;
Most modern IP cameras are ONVIF compliant, which means most modern IP Camera should work with ZoneMinder. There are some caveats to this general rule. Cameras which (only) send an encrypted stream will not work with any third party recording software. Some &amp;quot;cloud&amp;quot; cameras fit into this category. While not a show stopper, you should verify one can adjust camera parameters such as frame rate, resolution, contrast, etc within the camera&amp;#039;s web portal.&lt;br /&gt;
&lt;br /&gt;
The following list of IP cameras is not exhaustive. If your camera is not listed, it does not mean it will not work with ZoneMinder. Rather it likely means no one has taken the time to add it to the list. Please consider adding your camera to this list once you get it working.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amcrest QCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Android]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[COT Pro]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[DBPower]] (H.264 Model, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Digoo]] At least M1Q, probably more. &lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[EyeSpy247]] (Branded Sercomm RC8021)&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, IN-5907HD, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Keekoon]] KK002 (KK001 and 3 are probably the same)&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Lilin]] LR7022&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Netcat]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Pelco]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Revotech]] I6032W-P&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Sricam]]&lt;br /&gt;
&lt;br /&gt;
* [[TMEZON]] Some&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&lt;br /&gt;
&lt;br /&gt;
== Network Digitizer ==&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. An easy way to find these are to search for video encoders or video servers, e.g. 8 channel video encoder, or 2 channel video server.  Note that analog video encoders are becoming obsolete, as HD analog video encoders become the norm.&lt;br /&gt;
&lt;br /&gt;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Single Board Computers ==&lt;br /&gt;
&lt;br /&gt;
Single board computers such as the Raspberry Pi, Odroid, Beagleboard, and many others. Can function as ZM server (standalone or external) and/or as a [https://wiki.zoneminder.com/How_to_share_an_USB_camera_from_a_remote_ZM_server_to_another_ZM_Server camera].&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi - Raspbian]]&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi 2 - Fedora]]&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi 2 - Raspbian]]&lt;br /&gt;
&lt;br /&gt;
* [[Odroid - XU4 - Ubuntu Mate]]&lt;br /&gt;
&lt;br /&gt;
* [[Beaglebone Black - Devuan Jessie]]&lt;br /&gt;
&lt;br /&gt;
* [[Dedicated SBC Camera Monitor]] Beaglebone w/Devuan Jessie as video monitor.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=14779</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=14779"/>
		<updated>2017-08-11T20:48:20Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installation Instructions ===&lt;br /&gt;
To install ZoneMinder on RHEL, CentOS, and compatible clones, please refer to the instructions shown on our readthedocs site.&lt;br /&gt;
[https://zoneminder.readthedocs.io/en/latest/installationguide/redhat.html Redhat - ZoneMinder Documentation]&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions which predate rpm installations from zmrepo or rpmfusion. They are kept solely for reference. &lt;br /&gt;
[[CentOS/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14778</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14778"/>
		<updated>2017-08-11T20:47:38Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installation Instructions ===&lt;br /&gt;
To install ZoneMinder on Fedora, please refer to the instructions shown on our readthedocs site.&lt;br /&gt;
[https://zoneminder.readthedocs.io/en/latest/installationguide/redhat.html Redhat - ZoneMinder Documentation]&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions, which predate rpm installations from zmrepo or rpmfusion. These instructions are kept solely for reference. &lt;br /&gt;
[[Fedora/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=14777</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=14777"/>
		<updated>2017-08-10T13:50:28Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installation Instructions ===&lt;br /&gt;
To install ZoneMinder on RHEL, CentOS, and compatible clones, please refer to the instructions shown on our readthedocs site.&lt;br /&gt;
[https://zoneminder.readthedocs.io/en/stable/installationguide/redhat.html Redhat - ZoneMinder Documentation]&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions which predate rpm installations from zmrepo or rpmfusion. They are kept solely for reference. &lt;br /&gt;
[[CentOS/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14776</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14776"/>
		<updated>2017-08-10T13:48:33Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installation Instructions ===&lt;br /&gt;
To install ZoneMinder on Fedora, please refer to the instructions shown on our readthedocs site.&lt;br /&gt;
[https://zoneminder.readthedocs.io/en/stable/installationguide/redhat.html Redhat - ZoneMinder Documentation]&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions, which predate rpm installations from zmrepo or rpmfusion. These instructions are kept solely for reference. &lt;br /&gt;
[[Fedora/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14775</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14775"/>
		<updated>2017-08-10T13:48:22Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installation Instructions ===&lt;br /&gt;
To install ZoneMinder on Fedora, please refer to the instructions shown on our readthedocs site.&lt;br /&gt;
[https://zoneminder.readthedocs.io/en/stable/installationguide/redhat.html Redhat - ZoneMinder Documentation]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions, which predate rpm installations from zmrepo or rpmfusion. These instructions are kept solely for reference. &lt;br /&gt;
[[Fedora/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=14774</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=14774"/>
		<updated>2017-08-10T01:56:26Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The intent of this walk through is to install a very base/bare bones installation of CentOS that runs only ZoneMinder. This would be for a dedicated ZoneMinder server with no GUI or any unnecessary services running. The reason for the very light-weight installation is to make the majority of system resources available to ZoneMinder, not the OS. With this installation, memory is reduced to around 140-160MB, and CPU usage is practically nonexistent. The CentOS base installation is very easy to install and doesn’t take too much time as long as you have some type of broadband connection. There are many ways to install CentOS, but this article covers only two, because they are related.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;All CLI operations/commands in this How-To are done as root, in the /root directory. The reasoning is that this system would be in a secure environment to begin with. However, if you need to add a user to run these services to better secure the system, then you can, but keep in mind that some items must run as root.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on CentOS.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. It also includes all dependencies that are not found in the default CentOS repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
The development team strictly uses CentOS, but these packages should work on Red Hat Enterprise Linux and Scientific Linux. The rpms in zmrepo are intended to work with &amp;#039;&amp;#039;default installations&amp;#039;&amp;#039; of these Linux distributions.  Modified versions are not guaranteed to work. Continue to the Disclaimer below for details.&lt;br /&gt;
&lt;br /&gt;
Please report any issues with RHEL and SL, as we have no way of pro-actively discovering them.&lt;br /&gt;
&lt;br /&gt;
==== Disclaimer ====&lt;br /&gt;
This could also be appropriately called &amp;#039;&amp;#039;&amp;#039;Who should not Use&amp;#039;&amp;#039;&amp;#039; zmrepo. &lt;br /&gt;
&lt;br /&gt;
The goal behind CentOS is that of an enterprise operating system. Stability is prioritized over the latest and greatest version of a particular package. Fortunately, bug fixes are backported. Consequently, you should &amp;#039;&amp;#039;never&amp;#039;&amp;#039; replace the core packages in CentOS! If you truly think that you &amp;quot;have to have&amp;quot; some package that is newer than what is found in the default repository then you should consider using a different Linux distro.&lt;br /&gt;
&lt;br /&gt;
The CentOS maintainers have a great write-up that describes this in much more detail [http://wiki.centos.org/PackageManagement/SourceInstalls here].  Pay close attention to the all the do&amp;#039;s, dont&amp;#039;s, and &amp;quot;this will break&amp;quot; comments.&lt;br /&gt;
&lt;br /&gt;
Zmrepo extends this same philosophy onto ZoneMinder. While ZoneMinder requires many dependencies to work, zmrepo will not overwrite any core packages.  It only adds packages that, otherwise, would not be available.&lt;br /&gt;
&lt;br /&gt;
One other case is worth mentioning. This repository is intended &amp;#039;&amp;#039;only&amp;#039;&amp;#039; for those who have installed RHEL/CentOS/SL using the &amp;#039;&amp;#039;&amp;#039;official installation media for that distribution&amp;#039;&amp;#039;&amp;#039;!  This means that these rpms are not intended to work with third parties that release their own spin of CentOS, which contain their own third party application preinstalled.  Third parties are allowed to modify the original distribution in any way, which means we can&amp;#039;t guarantee the rpms in zmrepo will be compatible.  &lt;br /&gt;
&lt;br /&gt;
For example, if you installed &amp;quot;CentOS&amp;quot; using an installation disk from an Astericks vendor, then the rpms in zmrepo are known not to work.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view the installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Centos7 following installation of the ZoneMinder rpm.&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions which predate rpm installations from zmrepo or rpmfusion. They are kept solely for reference. &lt;br /&gt;
[[CentOS/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS/Archived&amp;diff=14773</id>
		<title>CentOS/Archived</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS/Archived&amp;diff=14773"/>
		<updated>2017-08-10T01:55:56Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: Created page with &amp;quot;== CentOS 5.6 &amp;amp; ZoneMinder 1.25.0 == This guide is for CentOS v5.6 (&amp;lt;b&amp;gt;Notes for using this guide with CentOS 6 are in chapter 2.&amp;lt;/b&amp;gt;) with ZoneMinder v1.25.0 which are the ne...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== CentOS 5.6 &amp;amp; ZoneMinder 1.25.0 ==&lt;br /&gt;
This guide is for CentOS v5.6 (&amp;lt;b&amp;gt;Notes for using this guide with CentOS 6 are in chapter 2.&amp;lt;/b&amp;gt;) with ZoneMinder v1.25.0 which are the newest released versions as of this update (Summer 2011).  If you are attempting to install newer versions of either using this guide, you will have to adjust file and directory names denoted below. &lt;br /&gt;
&lt;br /&gt;
=== Step One - Get CentOS ===&lt;br /&gt;
You can download the “.iso” file(s) for CentOS from http://www.centos.org/&amp;lt;br/&amp;gt;&lt;br /&gt;
Alternatively download the net-install version of CentOS which is basically just the first CD.&lt;br /&gt;
Here is one location to download the net-install version:&amp;lt;br/&amp;gt;&lt;br /&gt;
Download i386: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://mirror.centos.org/centos/5/isos/&lt;br /&gt;
&lt;br /&gt;
=== Step Two - Installation Source ===&lt;br /&gt;
Regardless of which method you use, the next few steps are the same.&amp;lt;br/&amp;gt;&lt;br /&gt;
Begin by booting your system up with either cd/dvd.&amp;lt;br/&amp;gt;&lt;br /&gt;
Choose the options that best fit your environment until you reach the “Installation Method”. &lt;br /&gt;
&lt;br /&gt;
[[Image:centosnetinstal-http.png]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;#039;&amp;#039;&amp;#039;HTTP&amp;#039;&amp;#039;&amp;#039; ONLY if you are using the net-install method.  Otherwise, you probably want to choose &amp;#039;&amp;#039;&amp;#039;Local CDROM&amp;#039;&amp;#039;&amp;#039;. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using the net-install method then enter:&amp;lt;br/&amp;gt;&lt;br /&gt;
Website Name: &amp;#039;&amp;#039;&amp;#039;mirror.centos.org&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for i386) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/i386&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for 64 bit) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/x86_64&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Step Three - Installation Packages ===&lt;br /&gt;
On the first screen, un-check &amp;quot;Desktop - Gnome&amp;quot; then check &amp;quot;Server&amp;quot; (not Server-GUI)&amp;lt;br/&amp;gt;&lt;br /&gt;
Make sure that you have &amp;quot;Customize now&amp;quot; selected at the bottom. (do not check &amp;quot;Packages from CentOS Extras&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-packages1.png]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Next&amp;quot; to continue&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once presented with the custom package selection, un-check/check the following:&lt;br /&gt;
 Applications = Check only &amp;quot;Editors&amp;quot; and &amp;quot;Text Based Internet&amp;quot;&lt;br /&gt;
 Development = Check only &amp;quot;Development Libraries&amp;quot; and &amp;quot;Development Tools&amp;quot;&lt;br /&gt;
 Servers = Un-check everything&lt;br /&gt;
 Base System = Check only &amp;quot;Base&amp;quot; (you can check Administration Tools and System Tools if you need them, but they are not necessary)&lt;br /&gt;
&lt;br /&gt;
[[Image:Centosinstall-packages2.png]]&lt;br /&gt;
&lt;br /&gt;
Now let the system finish the installation.&lt;br /&gt;
&lt;br /&gt;
[[Image:centosisntall-end.png]]&lt;br /&gt;
&lt;br /&gt;
=== Step Four - Configuration ===&lt;br /&gt;
After the first reboot, the setup screen should appear. If not, log into the system and type &amp;quot;setup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup1.png]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Firewall Configuration&amp;quot; and set the &amp;quot;Security Level&amp;quot; and &amp;quot;SELinux&amp;quot; to &amp;quot;Disabled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup2.png]]&lt;br /&gt;
&lt;br /&gt;
Next, we are going to disable a number of system services. Go back to the setup screen and select &amp;quot;System Services&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Un-Check:&lt;br /&gt;
 apmd&lt;br /&gt;
 bluetooth&lt;br /&gt;
 cups&lt;br /&gt;
 hidd&lt;br /&gt;
 ip6tables&lt;br /&gt;
 iptables&lt;br /&gt;
 netfs&lt;br /&gt;
 nfslock&lt;br /&gt;
 pcscd&lt;br /&gt;
 portmap&lt;br /&gt;
After disabling the services, select &amp;quot;Disable Now and On Boot&amp;quot;, exit the setup tool, and log into the system if you haven&amp;#039;t already.&lt;br /&gt;
*Screen is a simple program that allows you to run commands from a &amp;quot;Hosted&amp;quot; command line interface. This helps if you loose your connection to the server for any reason in that it enables you to resume (screen -r) right where you left off. Often times, I will start a large update/upgrade, leave it for the day, then come back and see where it&amp;#039;s at later. Screen allows you to do that without having to be connected.&lt;br /&gt;
*Install Screen&lt;br /&gt;
 yum install screen&lt;br /&gt;
*To start a screen session just type&lt;br /&gt;
 screen&lt;br /&gt;
*If you get disconnected and need to resume your session of screen simply type&lt;br /&gt;
 screen -r&lt;br /&gt;
&lt;br /&gt;
=== Step Five - Installing ZoneMinder 1.25.0 ===&lt;br /&gt;
First, we need to download files and prepare the system&lt;br /&gt;
*Add the RPM Forge repository to CentOS. This will allow the installation of a number of services/applications later without having to manually install them.&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i386 CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the needed files, ZoneMinder 1.25.0 and the Cambozola addon&lt;br /&gt;
 wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 wget http://www.zoneminder.com/sites/zoneminder.com/downloads/cambozola.jar&lt;br /&gt;
*Now let&amp;#039;s install all the services and programs that will be needed (&amp;#039;&amp;#039;If you encounter any dependency errors using yum, try running &amp;#039;&amp;#039;&amp;#039;yum clean all&amp;#039;&amp;#039;&amp;#039; then re-try the install command(s).&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
*tip: Copy/paste two lines at a time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum -y install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc \&lt;br /&gt;
pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel ImageMagick&lt;br /&gt;
&lt;br /&gt;
yum -y install libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools \&lt;br /&gt;
perl-Date-Manip perl-LWP-UserAgent-Determined&lt;br /&gt;
&lt;br /&gt;
yum -y install perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Sys-Mmap \&lt;br /&gt;
perl-Module-Load subversion git yasm bzip2 bzip2-devel bzip2-libs lbzip2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now let&amp;#039;s update everything within the new CentOS install&lt;br /&gt;
 yum -y update&lt;br /&gt;
*At this point, it might be useful to reboot your system. Oddly, sometimes things don&amp;#039;t work right unless you reboot after all the updates&lt;br /&gt;
 reboot   -or-   shutdown -r now&lt;br /&gt;
*After rebooting, log into your system&lt;br /&gt;
==== Install ffmpeg ====&lt;br /&gt;
*Now we need to make sure we use the latest &amp;quot;tested&amp;quot; version of &amp;quot;ffmpeg&amp;quot;. This is the latest version of ffmpeg that the ZoneMinder developers have tested with.  Download, compile and install ffmpeg:&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone git://git.videolan.org/ffmpeg.git&lt;br /&gt;
cd ffmpeg&lt;br /&gt;
./configure --enable-gpl --enable-shared --enable-pthreads&lt;br /&gt;
make &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The following commands must be done as &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install &lt;br /&gt;
make install-libs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
edit /etc/ld.so.conf and add the line &amp;quot;/usr/local/lib&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ldconfig -v&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Next, run &amp;#039;ffmpeg&amp;#039; from the command line. Make sure you do not get any errors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If &amp;#039;ffmpeg&amp;#039; runs correctly, you&amp;#039;ll see something similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg version N-32260-gaebb56e, Copyright (c) 2000-2011 the FFmpeg developers&lt;br /&gt;
  built on Aug 31 2011 21:41:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)&lt;br /&gt;
  configuration: --enable-shared --enable-swscale --enable-gpl --enable-pthreads&lt;br /&gt;
  libavutil    51. 14. 0 / 51. 14. 0&lt;br /&gt;
  libavcodec   53. 12. 0 / 53. 12. 0&lt;br /&gt;
  libavformat  53. 10. 0 / 53. 10. 0&lt;br /&gt;
  libavdevice  53.  3. 0 / 53.  3. 0&lt;br /&gt;
  libavfilter   2. 37. 0 /  2. 37. 0&lt;br /&gt;
  libswscale    2.  0. 0 /  2.  0. 0&lt;br /&gt;
  libpostproc  51.  2. 0 / 51.  2. 0&lt;br /&gt;
Hyper fast Audio and Video encoder&lt;br /&gt;
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&lt;br /&gt;
&lt;br /&gt;
Use -h to get full help or, even better, run &amp;#039;man ffmpeg&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enable services ====&lt;br /&gt;
*Turn everything on.  These commands must be run as root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 chkconfig httpd on &lt;br /&gt;
 chkconfig mysqld on &lt;br /&gt;
 chkconfig ntpd on &lt;br /&gt;
 service httpd start &lt;br /&gt;
 service mysqld start &lt;br /&gt;
 service ntpd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Install Zoneminder ====&lt;br /&gt;
*Next, we need to extract the contents of the ZoneMinder &amp;quot;tar&amp;quot; file, then jump into its directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd /root/  # Or your work directory for this installation&lt;br /&gt;
 tar -zxvf ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 cd ZoneMinder-1.25.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now we are going to configure ZoneMinder with some additional parameters. What is listed are the default CentOS directory locations.&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin&lt;br /&gt;
&lt;br /&gt;
Note: It seems for Zoneminder to build with newer versions of ffmpeg, (certainly 0.6.3) you&amp;#039;ll need to append CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; to the end of the&lt;br /&gt;
./configure line thus:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
There is a section in the FAQ &amp;#039;&amp;#039;&amp;quot;When running configure, I get a lot of messages about not being able to compile the ffmpeg libraries&amp;quot;&amp;#039;&amp;#039; about this [[http://www.zoneminder.com/wiki/index.php/FAQ]].&lt;br /&gt;
&lt;br /&gt;
Worth mentioning here is the section in the FAQ under the heading &amp;quot;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;quot; [[http://www.zoneminder.com/wiki/index.php/FAQ]]. This descibes how you can possibly reduce CPU load by half by &lt;br /&gt;
changing the system&amp;#039;s jpeg libraries and building Zoneminder with processor specific instructions.  &lt;br /&gt;
Since CentOS 6.4 CentOS now comes with libjpeg_turbo as the standard JPEG library leading to a more optimised Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default ZM_DB_HOST=localhost, ZM_DB_NAME=zm, ZM_DB_USER=zmuser, and ZM_DB_PASS=zmpass.&lt;br /&gt;
*Change &amp;quot;zmuser&amp;quot; (if you want) with the user that you will use within MySQL to access the ZoneMinder database&lt;br /&gt;
*Change &amp;quot;zmpass&amp;quot; with the password you will be using with the &amp;quot;zmuser&amp;quot; account&lt;br /&gt;
So if you wish to change it, use a command like:&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 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass&lt;br /&gt;
&lt;br /&gt;
*if you get the configure &amp;quot;error zm requires libmysqlclient.a&amp;quot; with 64 bit CentOS add the following to the end of your configure statement&lt;br /&gt;
  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
e.g. For CentOS 5.6 64-bit with support for ffmpeg.  The whole command must be executed on one line.  Make sure to change the &amp;#039;&amp;#039;&amp;#039;zmpass&amp;#039;&amp;#039;&amp;#039; to a password that matches your installation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;make install&amp;#039;&amp;#039;&amp;#039; after running the configuration steps above.&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 # Run the next command as root&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Configure MySQL ====&lt;br /&gt;
*Need to add a password for the root user of MySQL&lt;br /&gt;
*Create the zm database&lt;br /&gt;
*Create the zm database user with permissions and password&lt;br /&gt;
 mysql&lt;br /&gt;
 mysql&amp;gt; SET PASSWORD FOR root@localhost=PASSWORD(&amp;#039;new_root_password&amp;#039;);&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&amp;gt;Query OK, 1 row affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; CREATE USER &amp;#039;your_zm_user&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;your_zm_password_from_above&amp;#039;;&lt;br /&gt;
Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost;&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.02 sec)&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
&amp;gt;Bye&lt;br /&gt;
*Import the tables into the zm database&lt;br /&gt;
 cd /root/ZoneMinder-1.25.0 &lt;br /&gt;
 mysql -u root -p zm &amp;lt; db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
==== Finalize Installation of ZoneMinder ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All remaining CLI commands need to be run as root.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Make ZoneMinder startup automatically after a reboot&lt;br /&gt;
 # from the ZoneMinder-1.25 source directory&lt;br /&gt;
 cp scripts/zm /etc/init.d/&lt;br /&gt;
 chmod +x /etc/init.d/zm&lt;br /&gt;
 chkconfig zm on&lt;br /&gt;
*Add the Cambozola Java web interface&lt;br /&gt;
 cp cambozola.jar /var/www/html/zm/&lt;br /&gt;
*Make sure you have permission to view it from apache:&lt;br /&gt;
 chown apache:apache /var/www/html/zm/cambozola.jar&lt;br /&gt;
*Start ZoneMinder&lt;br /&gt;
 service zm start&lt;br /&gt;
&lt;br /&gt;
Note: You may get an error when you try to start Zoneminder using the &amp;#039;zm&amp;#039; startup script as per this forum post: [[http://www.zoneminder.com/forums/viewtopic.php?f=21&amp;amp;t=17827]] .&lt;br /&gt;
The reason for this was the default &amp;#039;zm&amp;#039; startup script was formatted with DOS line endings. If you get the errors as detailed in the above post then the fix is to convert the &lt;br /&gt;
&amp;#039;zm&amp;#039; file to use UNIX style line endings. You can do this in the Vim text editor whilst editing the &amp;#039;zm&amp;#039; file thus: &amp;#039;:set fileformat=unix&amp;#039; then save the file &amp;#039;:wq&amp;#039;. You can also &lt;br /&gt;
use the utility dos2unix to convert the file. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
* tick the box for support for the Cambozola addon within your ZoneMinder installation: http://ip-address/zm (Options-&amp;gt;Images&amp;amp;nbsp;tab-&amp;gt;OPT_CAMBOZOLA)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now have fun and add your cameras to ZoneMinder knowing you now have a very stable and streamlined OS to run it on.&lt;br /&gt;
&lt;br /&gt;
== CentOS 6 Notes ==&lt;br /&gt;
&lt;br /&gt;
The installation for CentOS 6 is pretty much the same.&lt;br /&gt;
Download CentOS 6 minimal installation ISO (CentOS-6.0-i386-minimal.iso – 257MB).  Burn to CD and install. We only want to be running in console text mode not GUI graphics mode. During installation configure network and tick to enable network adapter.&lt;br /&gt;
* Login as root and update the base install:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum -y update&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install required packages, other useful packages, and their dependencies&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum groupinstall core&lt;br /&gt;
yum groupinstall base&lt;br /&gt;
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring \&lt;br /&gt;
nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver \&lt;br /&gt;
sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel \&lt;br /&gt;
bison-devel ncurses zlib zlib-devel openssl openssl-devel gnutls-devel php-process perl-Time-HiRes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
To remove various configure/make errors in Centos 6.2, you may also want to install:&amp;lt;pre&amp;gt;&lt;br /&gt;
bzip2-libs ffmpeg-devel ffmpeg-php perl-Net-SFTP-Foreign perl-Expect perl-LWPx-ParanoidAgent.x86_64&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we continue from step four (4).&lt;br /&gt;
==== Installation of ZoneMinder ====&lt;br /&gt;
* In step five (5) the correct RPM Forge repository is:&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i686 CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In step five (5) the command that seems to configure zoneminder correctly is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/html/zm \&lt;br /&gt;
 --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache \&lt;br /&gt;
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
For Centos 6.2, I used the following configure string for success:&amp;lt;pre&amp;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 ZM_DB_NAME=zm ZM_DB_USER=&amp;lt;zm user&amp;gt; ZM_DB_PASS=&amp;lt;zm user passwd&amp;gt; ZM_SSL_LIB=openssl  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; --with-ffmpeg=/usr/share/ffmpeg  CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting FFmpeg Errors Building ZoneMinder ====&lt;br /&gt;
Using the git version of FFmpeg can cause the ZoneMinder make process to fail with unresolved symbols in ffmpeg. To remedy this, use version 0.6.5 of FFmpeg with the same configure instructions as the normal install above.&lt;br /&gt;
FFmpeg 0.6.5: http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.bz2&lt;br /&gt;
==== Troubleshooting Blank Page ====&lt;br /&gt;
If everything went ok but when accessing zoneminder&amp;#039;s web page at http://localhost/zm, the page is blank this means that there is a problem with PHP short tags. Edit setting short_open_tag in php.ini (/etc/php.ini) and change it to On.&lt;br /&gt;
* Restart apache server with:&lt;br /&gt;
&amp;lt;pre&amp;gt;service httpd restart&amp;lt;/pre&amp;gt; and you should be up and running.&lt;br /&gt;
==== Trouble shooting full drive with CentOS 6 ====&lt;br /&gt;
The default drive structure has chaned from that of CentOS 5 having the full drive allocated to the /root partition. CentOS 6 by default makes a logical volume &amp;#039;LVM&amp;#039; of 10% your drives space for the /root partition and the remaining drive as the /home partion with the exception of the swap and boot partitions.&lt;br /&gt;
&lt;br /&gt;
The will cause Zoneminder to fill the /root partition as the /var/www/html/zm/events directory is by default located here, you can use the system-config-lvm utility to re-adjust this partition balance if your system has been installed with the default partition structure.&lt;br /&gt;
&lt;br /&gt;
It is best to install CentOS 6 with a custom partition layout that is the same as CentOS 5 structure, you can also if using a single physical had drive do with out the LVM drives and create an EXT4 /root partion along with the standard /boot and /swap partitions.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[== &amp;#039;&amp;#039;&amp;#039;P.S.&amp;#039;&amp;#039;&amp;#039; ==]] aspcicc@jumpy.it&lt;br /&gt;
(Update: This does not appear to be required any more.)&lt;br /&gt;
&lt;br /&gt;
Hi! and thanks for your guide.. i want to add a little correction that have made me crazy to resolve, when I poweroff or reboot system i obtain an error related to mysql database and i have    understood that the problem was because mysqld is stopped before zoneminder to be more specific there isn&amp;#039;t a link under rc0.d (halt) and rc6.d (reboot) to zoneminder that for this lack is simply killed by killall. To resolve this problem you need to add at the start of zm (under /etc/init.d) the line&lt;br /&gt;
&lt;br /&gt;
 &amp;#039; # chkconfig: 345 99 01 &amp;#039;  (without &amp;#039; of course)&lt;br /&gt;
&lt;br /&gt;
and then run &lt;br /&gt;
chkconfig --level 345 zm on&lt;br /&gt;
chkconfig --level 06 zm off&lt;br /&gt;
&lt;br /&gt;
So the link to shutdown zm is created under rc0.d and rc6.d and zoneminder is started at the end of poweron and stopped at the beginning of the poweroff&lt;br /&gt;
&lt;br /&gt;
For information about priority starting and stopping processes see: http://www.netadmintools.com/art94.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Added Dependency: ImageMagick&lt;br /&gt;
&lt;br /&gt;
Removed Dependency: perl-Time-HiRes, which causes a conflict with the default perl package.&lt;br /&gt;
&lt;br /&gt;
Also, mysql seems to install with no password for the root user, and the zm DB create script creates the database on the fly, which means that the database create command needs to have the &amp;quot;-p zm&amp;quot; removed from the command line.&lt;br /&gt;
&lt;br /&gt;
Could someone verify that this is correct, to make sure it&amp;#039;s not just something I missed?&lt;br /&gt;
&lt;br /&gt;
Thanks! &lt;br /&gt;
terry@cnysupport.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Struggling to get x264 and ffmpeg working?  I used the latest SVN versions not the Centos packages.  But I was getting&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I followed these instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /etc/ld.so.conf.d&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* add another file:  custom-libs.conf&lt;br /&gt;
* inside, put :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/local/lib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* save the file&lt;br /&gt;
* run ldconfig&lt;br /&gt;
&amp;lt;pre&amp;gt;ldconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BeeryGaz&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== Failed monitors or ZM refusing to start ====&lt;br /&gt;
A problem that took me some time to figure out on two installations was SElinux.&lt;br /&gt;
SElinux stops Zoneminder from accessing some system parts or doing some functions so will cause various errors or simply drive you nuts trying to figure out.&lt;br /&gt;
&lt;br /&gt;
Look at the following page on how to disable SElinux or use permissive mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some of the errors that I was getting with a fresh install on CentOS 6 was&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2013-02-16 16:13:10.828590	zmwatch	14898	ERR	Can&amp;#039;t open memory map file &amp;#039;/dev/shm/zm.mmap.1&amp;#039;: No such file or directory	zmwatch.pl	&lt;br /&gt;
2013-02-16 16:13:10.736988	zmfix	15317	ERR	Can&amp;#039;t stat /dev/video0: Permission denied	zmfix.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== ZoneMinder 1.26.x ==&lt;br /&gt;
&lt;br /&gt;
Zoneminder after a long period of none development is now being developed by the community, these notes are to try and help with the installation of the new release on CentOS 5 and CentOS 6.&lt;br /&gt;
All testing has been done on a CentOS 6.4 fresh install server.&lt;br /&gt;
&lt;br /&gt;
=== Cmake installation notes ===&lt;br /&gt;
&lt;br /&gt;
Compiling of Zoneminder can now be done with the &amp;#039;Cmake&amp;#039; command in replacement of the ./configure command this should automatically configure the build with the minimum of parameters. The &amp;#039;Cmake&amp;#039; command at time of writing produced a partially working installation with the main files installed into /usr/local/bin/zoneminder and associated folders, different from the above guides.&lt;br /&gt;
&lt;br /&gt;
The webfiles require to be linked via a zoneminder.conf file located with in the /disto/redhat directory inside the build directory that requires to be coped to the /etc/httpd/conf.d directory, this will need to be edited to the correct location of the webfiles and remove the local only command as indicated with in the file.&lt;br /&gt;
&lt;br /&gt;
The Cmake install failed to use my BTTV capture card producing various errors with a potential solution given here &amp;lt;pre&amp;gt;http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21709&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ./configure compile ===&lt;br /&gt;
&lt;br /&gt;
To install via the traditional ./configure method you first need to run the ./bootstrap.sh file to generate the required configure file, the install can then progress as the above installation guides.&lt;br /&gt;
&lt;br /&gt;
This method has produced a fully working installation at time of writing.&lt;br /&gt;
&lt;br /&gt;
== pt_BR Instructions ==&lt;br /&gt;
&lt;br /&gt;
Here is a good walkthrough install of zoneminder in CentOS using the rpm package method. It is intended to Portuguese  (pt or pt_BR) audience.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://dulimind.blogspot.com.br/2015/02/zoneminder-no-centos-6-metodo-facil-com.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14772</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=14772"/>
		<updated>2017-08-10T01:54:04Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &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;
&amp;#039;&amp;#039;&amp;#039;&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 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;
What follows is the official way to install the latest version of ZoneMinder a recent version of Fedora.&lt;br /&gt;
&lt;br /&gt;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view the installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Fedora following installation of the ZoneMinder rpm.&lt;br /&gt;
&lt;br /&gt;
==== Archived Installation Instructions ====&lt;br /&gt;
What follows is a link to old installation instructions which predate rpm installations from zmrepo or rpmfusion. They are kept solely for reference. &lt;br /&gt;
[[Fedora/Archived]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora/Archived&amp;diff=14771</id>
		<title>Fedora/Archived</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora/Archived&amp;diff=14771"/>
		<updated>2017-08-10T01:51:36Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: Created page with &amp;quot;==Fedora 18 (alpha)== *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; **ERROR: socket_sendto permission errors.  *Make sure...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=14769</id>
		<title>Supported distributions</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=14769"/>
		<updated>2017-08-10T01:41:32Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Based on either known supported versions in zmrepo, official packages and PPA&lt;br /&gt;
&lt;br /&gt;
[[Fedora]]&lt;br /&gt;
&lt;br /&gt;
[[CentOS]] (includes RHEL, SL, and some clones)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]]&lt;br /&gt;
&lt;br /&gt;
* TIP: for specific distro install guides, check great articles available under [[contents#Distribution-specific guides]];&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=14768</id>
		<title>Supported distributions</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=14768"/>
		<updated>2017-08-10T01:41:18Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Based on either known supported versions in zmrepo, official packages and PPA&lt;br /&gt;
&lt;br /&gt;
[[Fedora]]&lt;br /&gt;
&lt;br /&gt;
[[CentOS]] (includes RHEL, SL, and some clones)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Debian]] 8&lt;br /&gt;
&lt;br /&gt;
* TIP: for specific distro install guides, check great articles available under [[contents#Distribution-specific guides]];&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=14167</id>
		<title>Supported distributions</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Supported_distributions&amp;diff=14167"/>
		<updated>2016-11-09T13:10:08Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Based on either known supported versions in zmrepo, official packages and PPA&lt;br /&gt;
&lt;br /&gt;
[[Fedora]] 23 &amp;amp; 24&lt;br /&gt;
&lt;br /&gt;
[[CentOS]] 6 &amp;amp; 7 (includes RHEL, SL, and some clones)&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu]] 14.04, 15.04, 15.10&lt;br /&gt;
&lt;br /&gt;
[[Debian]] 8&lt;br /&gt;
&lt;br /&gt;
* TIP: for specific distro install guides, check great articles available under [[contents#Distribution-specific guides]];&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7478</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7478"/>
		<updated>2016-03-03T00:25:36Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Create the Monitor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
== Helpful Tools ==&lt;br /&gt;
The ONVIF Device Manager is a free, Windows only based tool which is very helpful in developing ZoneMinder support for cameras which support the Onvif standard.&lt;br /&gt;
https://sourceforge.net/projects/onvifdm/&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Be advised, this camera ships with a hard coded ip address of 192.168.1.10. DHCP is turned off. One cannot change this from the camera&amp;#039;s web portal. Instead, install the included CMS software onto a Windows machine. Find the Device Manager, and add the device to the CMS sofware. When adding the device, you will have the opportunity to change the ip address of the camera. Be advised, you cannot change the password at this point, even though it may look like you can (you will just get an error). Once the camera has been added to the CMS sofware and appears in the hardware tree on the left, double click it to get the camera to load. Then right click it, and select &amp;quot;Device Config&amp;quot;. This will bring up the camera&amp;#039;s configuration screens. To avoid lag and other unnecessary problems, it is highly advised to lower the frame to 5 fps.&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has just recently made it into the source code. &lt;br /&gt;
If you do not have this control script already installed, you will need to import the information from here: https://github.com/ZoneMinder/ZoneMinder/blob/master/scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7477</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7477"/>
		<updated>2016-03-03T00:24:17Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Create the Monitor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
== Helpful Tools ==&lt;br /&gt;
The ONVIF Device Manager is a free, Windows only based tool which is very helpful in developing ZoneMinder support for cameras which support the Onvif standard.&lt;br /&gt;
https://sourceforge.net/projects/onvifdm/&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Be advised, this camera ships with a hard coded ip address of 192.168.1.10. DHCP is turned off. One cannot change this from the camera&amp;#039;s web portal. Instead, install the included CMS software onto a Windows machine. Find the Device Manager, and add the device to the CMS sofware. When adding the device, you will have the opportunity to change the ip address of the camera. Be advised, you cannot change the password at this point, even though it may look like you can (you will just get an error). Once the camera has been added to the CMS sofware and appears in the hardware tree on the left, double click it to get the camera to load. Then right click it, and select &amp;quot;Device Config&amp;quot;. This will bring up the camera&amp;#039;s configuration screens. To avoid lag and other unnecessary problems, it is highly advised to lower the frame to 5 fps.&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from here: https://github.com/ZoneMinder/ZoneMinder/blob/master/scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7465</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7465"/>
		<updated>2016-02-24T17:26:51Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Netcat Outdoor PTZ Camera with 20x Optical Zoom */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
== Helpful Tools ==&lt;br /&gt;
The ONVIF Device Manager is a free, Windows only based tool which is very helpful in developing ZoneMinder support for cameras which support the Onvif standard.&lt;br /&gt;
https://sourceforge.net/projects/onvifdm/&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Be advised, this camera ships with a hard coded ip address of 192.168.1.10. DHCP is turned off. One cannot change this from the camera&amp;#039;s web portal. Instead, install the included CMS software onto a Windows machine. Find the Device Manager, and add the device to the CMS sofware. When adding the device, you will have the opportunity to change the ip address of the camera. Be advised, you cannot change the password at this point, even though it may look like you can (you will just get an error). Once the camera has been added to the CMS sofware and appears in the hardware tree on the left, double click it to get the camera to load. Then right click it, and select &amp;quot;Device Config&amp;quot;. This will bring up the camera&amp;#039;s configuration screens. To avoid lag and other unnecessary problems, it is highly advised to lower the frame to 5 fps.&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7464</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7464"/>
		<updated>2016-02-24T17:26:38Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Netcat Outdoor PTZ Camera with 20x Optical Zoom */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
== Helpful Tools ==&lt;br /&gt;
The ONVIF Device Manager is a free, Windows only based tool which is very helpful in developing ZoneMinder support for cameras which support the Onvif standard.&lt;br /&gt;
https://sourceforge.net/projects/onvifdm/&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Be advised, this camera ships with a hard coded ip address of 192.168.1.10. DHCP is turned off. One cannot change this from the camera&amp;#039;s web portal. Instead, install the included CMS software onto a Windows machine. Find the Device Manager, and add the device to the CMS sofware. When adding the device, you will have the opportunity to change the ip address of the camera. Be advised, you cannot change the password at this point, even though it may look like you can (you will just get an error). Once the camera has been added to the CMS sofware and appears in the hardware tree on the left, double click it to get the camera to load. Then right click it, and select &amp;quot;Device Config&amp;quot;. This will bring up the camera&amp;#039;s configuration screens. To avoid lag and other unnecessary problems, it is highly advised to lower the frame to 5 fps.&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7463</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7463"/>
		<updated>2016-02-24T17:18:23Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Helpful Tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
== Helpful Tools ==&lt;br /&gt;
The ONVIF Device Manager is a free, Windows only based tool which is very helpful in developing ZoneMinder support for cameras which support the Onvif standard.&lt;br /&gt;
https://sourceforge.net/projects/onvifdm/&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7462</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7462"/>
		<updated>2016-02-24T17:18:08Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Netcat IP Cameras */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
== Helpful Tools ==&lt;br /&gt;
The ONVIF Device Manager is a free, Windows only based tool which is very helpful in developing ZoneMinder for cameras which support the Onvif standard.&lt;br /&gt;
https://sourceforge.net/projects/onvifdm/&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7461</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7461"/>
		<updated>2016-02-24T17:15:29Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Create the Monitor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
&amp;#039;&amp;#039;sudo zmcamtool.pl --import netcat.sql&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7460</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7460"/>
		<updated>2016-02-24T17:14:35Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Create the Monitor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
sudo zmcamtool.pl --import netcat.sql&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=7459</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=7459"/>
		<updated>2016-02-24T17:13:38Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Network 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.  You may find additional details about supported hardware in the part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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 requirement 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;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Android]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Netcat]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Pelco]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&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;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
* Video cameras &amp;amp; safes for antitheft purpose on the website http://www.infosafe.fr&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, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi - Raspbian ==&lt;br /&gt;
&lt;br /&gt;
ZM 1.25 is already in Raspbian.  Newer development packages are available.&lt;br /&gt;
&lt;br /&gt;
You will want libjpeg-turbo from the following repository by adding to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deb http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
deb-src http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
&lt;br /&gt;
Add gpg by&lt;br /&gt;
&lt;br /&gt;
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -&lt;br /&gt;
&lt;br /&gt;
apt-get install libturbojpeg8 libturbojpeg8-dev&lt;br /&gt;
&lt;br /&gt;
If using the Pi camera, you will need to enable it in raspi-config as well as loading the v4l2 kernel module by adding the following to your /etc/modules&lt;br /&gt;
&lt;br /&gt;
bcm2835-v4l2&lt;br /&gt;
&lt;br /&gt;
Although the camera will can capture high res, you don&amp;#039;t have enough RAM currently to do so.  Especially if you have the early 256MB model.  So ust stick to 640x480.  &lt;br /&gt;
&lt;br /&gt;
You should be able to get around 20fps, but if you do anything involving the CPU you will get underruns.&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi 2 - Fedora ==&lt;br /&gt;
&lt;br /&gt;
The latest version of ZoneMinder is available for the Raspberry Pi 2 when running Fedora. &lt;br /&gt;
Browse to the zmrepo site for installation instructions: https://zmrepo.zoneminder.com/&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7458</id>
		<title>Netcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Netcat&amp;diff=7458"/>
		<updated>2016-02-24T17:12:15Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: Created page with &amp;quot;== Netcat IP Cameras == Netcat is one of many Chinese IP camera vendors.  http://www.netcatcctv.com/English/index.html  Like many other Chinese cameras, if your camera looks s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Netcat IP Cameras ==&lt;br /&gt;
Netcat is one of many Chinese IP camera vendors. &lt;br /&gt;
http://www.netcatcctv.com/English/index.html&lt;br /&gt;
&lt;br /&gt;
Like many other Chinese cameras, if your camera looks similar but goes by a different name, then try the programming steps below. &lt;br /&gt;
It may work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Netcat Outdoor PTZ Camera with 20x Optical Zoom == &lt;br /&gt;
[[File:2015518112320.jpg|right]]&lt;br /&gt;
Netcat sells several varieties of PTZ cameras. These instructions are based around model PT-PTZ2084. See the photo on the right.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the Monitor ==&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General:&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/user=admin&amp;amp;password={admin password}&amp;amp;channel=1&amp;amp;stream=0.sdp?&lt;br /&gt;
:Remote Method: RTP/RTSP&lt;br /&gt;
:Options: Empty&lt;br /&gt;
:Target colorspace: 32 bit color&lt;br /&gt;
:Capture Width: 1920&lt;br /&gt;
:Capture Height: 1090&lt;br /&gt;
;Control&lt;br /&gt;
:Controllable: Tick&lt;br /&gt;
:Control Type: Netcat ONVIF&lt;br /&gt;
:Control Device: Empty&lt;br /&gt;
:Control Address: {ip address}:8899&lt;br /&gt;
:Auto Stop Timeout: 1.00&lt;br /&gt;
&lt;br /&gt;
NOTE: As of this writing, the Netcat ONVIF control script has not made it into the source code. &lt;br /&gt;
If you do not have this control script installed, you will need to import the information from this commit: https://github.com/knnniggett/ZoneMinder/commit/7a42a8c3f96dfffdc360b297d6b26157b8bd5b97&lt;br /&gt;
&lt;br /&gt;
First copy the control script, Netcat.pm, onto your filesystem into the folder with the rest of your control scripts.&lt;br /&gt;
Next, save the sql statement shown in the commit to a file, call it netcat.sql, and then use zmcamtool to import it into your system:&lt;br /&gt;
sudo zmcamtool.pl --import netcat.sql&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:2015518112320.jpg&amp;diff=7457</id>
		<title>File:2015518112320.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:2015518112320.jpg&amp;diff=7457"/>
		<updated>2016-02-24T16:47:17Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: netcat ptz camera&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;netcat ptz camera&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=7397</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=7397"/>
		<updated>2016-02-19T16:54:11Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Network 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.  You may find additional details about supported hardware in the part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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 requirement 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;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Pelco]] IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&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;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
* Video cameras &amp;amp; safes for antitheft purpose on the website http://www.infosafe.fr&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, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi - Raspbian ==&lt;br /&gt;
&lt;br /&gt;
ZM 1.25 is already in Raspbian.  Newer development packages are available.&lt;br /&gt;
&lt;br /&gt;
You will want libjpeg-turbo from the following repository by adding to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deb http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
deb-src http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
&lt;br /&gt;
Add gpg by&lt;br /&gt;
&lt;br /&gt;
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -&lt;br /&gt;
&lt;br /&gt;
apt-get install libturbojpeg8 libturbojpeg8-dev&lt;br /&gt;
&lt;br /&gt;
If using the Pi camera, you will need to enable it in raspi-config as well as loading the v4l2 kernel module by adding the following to your /etc/modules&lt;br /&gt;
&lt;br /&gt;
bcm2835-v4l2&lt;br /&gt;
&lt;br /&gt;
Although the camera will can capture high res, you don&amp;#039;t have enough RAM currently to do so.  Especially if you have the early 256MB model.  So ust stick to 640x480.  &lt;br /&gt;
&lt;br /&gt;
You should be able to get around 20fps, but if you do anything involving the CPU you will get underruns.&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi 2 - Fedora ==&lt;br /&gt;
&lt;br /&gt;
The latest version of ZoneMinder is available for the Raspberry Pi 2 when running Fedora. &lt;br /&gt;
Browse to the zmrepo site for installation instructions: https://zmrepo.zoneminder.com/&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=7396</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=7396"/>
		<updated>2016-02-19T16:53:47Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Network 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.  You may find additional details about supported hardware in the part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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 requirement 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;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Pelco]] Pelco IP Cameras&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&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;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
* Video cameras &amp;amp; safes for antitheft purpose on the website http://www.infosafe.fr&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, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi - Raspbian ==&lt;br /&gt;
&lt;br /&gt;
ZM 1.25 is already in Raspbian.  Newer development packages are available.&lt;br /&gt;
&lt;br /&gt;
You will want libjpeg-turbo from the following repository by adding to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deb http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
deb-src http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
&lt;br /&gt;
Add gpg by&lt;br /&gt;
&lt;br /&gt;
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -&lt;br /&gt;
&lt;br /&gt;
apt-get install libturbojpeg8 libturbojpeg8-dev&lt;br /&gt;
&lt;br /&gt;
If using the Pi camera, you will need to enable it in raspi-config as well as loading the v4l2 kernel module by adding the following to your /etc/modules&lt;br /&gt;
&lt;br /&gt;
bcm2835-v4l2&lt;br /&gt;
&lt;br /&gt;
Although the camera will can capture high res, you don&amp;#039;t have enough RAM currently to do so.  Especially if you have the early 256MB model.  So ust stick to 640x480.  &lt;br /&gt;
&lt;br /&gt;
You should be able to get around 20fps, but if you do anything involving the CPU you will get underruns.&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi 2 - Fedora ==&lt;br /&gt;
&lt;br /&gt;
The latest version of ZoneMinder is available for the Raspberry Pi 2 when running Fedora. &lt;br /&gt;
Browse to the zmrepo site for installation instructions: https://zmrepo.zoneminder.com/&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Pelco&amp;diff=7395</id>
		<title>Pelco</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Pelco&amp;diff=7395"/>
		<updated>2016-02-19T16:53:03Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: Created page with &amp;quot;== Pelco Developer Network == The following page provides helpful technical information for Pelco cameras: http://pdn.pelco.com/content/rtp-video-streaming-over-http  == Sarix...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pelco Developer Network ==&lt;br /&gt;
The following page provides helpful technical information for Pelco cameras:&lt;br /&gt;
http://pdn.pelco.com/content/rtp-video-streaming-over-http&lt;br /&gt;
&lt;br /&gt;
== Sarix IE10 ==&lt;br /&gt;
These settings will likely work for all Sarix IE series cameras.&lt;br /&gt;
&lt;br /&gt;
From the Zoneminder console, click &amp;quot;Add New Monitor&amp;quot; and enter the following: &lt;br /&gt;
&lt;br /&gt;
;General (tab)&lt;br /&gt;
:Name: {give the camera a name}&lt;br /&gt;
:Source Type: ffmpeg&lt;br /&gt;
:Function: {select an appropriate function from the dropdown}&lt;br /&gt;
:Enabled: Tick&lt;br /&gt;
:Maximum FPS: Empty&lt;br /&gt;
:Alarm Maximum FPS: Empty&lt;br /&gt;
;Source (tab)&lt;br /&gt;
:Source Path: rtsp://{ip address}:554/stream1&lt;br /&gt;
:Remote Method: RTP/Unicast&lt;br /&gt;
:Target Colorspace: 32 (only use 24 on old cpu&amp;#039;s with no SSE instruction set)&lt;br /&gt;
:Capture Width: 1280&lt;br /&gt;
:Capture Height: 1026&lt;br /&gt;
&lt;br /&gt;
VLC reports the image is 1026 pixels high, rather than 1024. That is not a typo.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=7394</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=7394"/>
		<updated>2016-02-19T16:40:26Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder will work with almost any capture card that is supported by the linux kernel.  You may find additional details about supported hardware in the part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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 requirement 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;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&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;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
* Video cameras &amp;amp; safes for antitheft purpose on the website http://www.infosafe.fr&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, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi - Raspbian ==&lt;br /&gt;
&lt;br /&gt;
ZM 1.25 is already in Raspbian.  Newer development packages are available.&lt;br /&gt;
&lt;br /&gt;
You will want libjpeg-turbo from the following repository by adding to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deb http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
deb-src http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
&lt;br /&gt;
Add gpg by&lt;br /&gt;
&lt;br /&gt;
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -&lt;br /&gt;
&lt;br /&gt;
apt-get install libturbojpeg8 libturbojpeg8-dev&lt;br /&gt;
&lt;br /&gt;
If using the Pi camera, you will need to enable it in raspi-config as well as loading the v4l2 kernel module by adding the following to your /etc/modules&lt;br /&gt;
&lt;br /&gt;
bcm2835-v4l2&lt;br /&gt;
&lt;br /&gt;
Although the camera will can capture high res, you don&amp;#039;t have enough RAM currently to do so.  Especially if you have the early 256MB model.  So ust stick to 640x480.  &lt;br /&gt;
&lt;br /&gt;
You should be able to get around 20fps, but if you do anything involving the CPU you will get underruns.&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi 2 - Fedora ==&lt;br /&gt;
&lt;br /&gt;
The latest version of ZoneMinder is available for the Raspberry Pi 2 when running Fedora. &lt;br /&gt;
Browse to the zmrepo site for installation instructions: https://zmrepo.zoneminder.com/&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=7393</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=7393"/>
		<updated>2016-02-19T16:39:38Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder will work with almost any capture card that is supported by the linux kernel.  You may find additional details about supported hardware in the part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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 requirement 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;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&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;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
* Video cameras &amp;amp; safes for antitheft purpose on the website http://www.infosafe.fr&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, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi ==&lt;br /&gt;
&lt;br /&gt;
ZM 1.25 is already in Raspbian.  Newer development packages are available.&lt;br /&gt;
&lt;br /&gt;
You will want libjpeg-turbo from the following repository by adding to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deb http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
deb-src http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
&lt;br /&gt;
Add gpg by&lt;br /&gt;
&lt;br /&gt;
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -&lt;br /&gt;
&lt;br /&gt;
apt-get install libturbojpeg8 libturbojpeg8-dev&lt;br /&gt;
&lt;br /&gt;
If using the Pi camera, you will need to enable it in raspi-config as well as loading the v4l2 kernel module by adding the following to your /etc/modules&lt;br /&gt;
&lt;br /&gt;
bcm2835-v4l2&lt;br /&gt;
&lt;br /&gt;
Although the camera will can capture high res, you don&amp;#039;t have enough RAM currently to do so.  Especially if you have the early 256MB model.  So ust stick to 640x480.  &lt;br /&gt;
&lt;br /&gt;
You should be able to get around 20fps, but if you do anything involving the CPU you will get underruns.&lt;br /&gt;
&lt;br /&gt;
The latest version of ZoneMinder is available for the Raspberry Pi 2 when running Fedora. &lt;br /&gt;
Browse to the zmrepo site for installation instructions: https://zmrepo.zoneminder.com/&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=7286</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=7286"/>
		<updated>2016-01-30T23:36:35Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &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;
&amp;#039;&amp;#039;&amp;#039;&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;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view the installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Fedora following installation of the ZoneMinder rpm.&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=6970</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=6970"/>
		<updated>2015-09-28T12:32:02Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may want to change the storage location - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;service zoneminder stop&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;, or &amp;quot;systemctl stop zoneminder&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian and Ubuntu, these are under /var/cache/zoneminder. In CentOS and Fedora, these are under /var/lib/zoneminder. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder until this entire process is completed. Doing so will cause all your events to be lost!&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /var/lib/zoneminder/events /var/lib/zoneminder/events_old&lt;br /&gt;
-- or --&lt;br /&gt;
rm -rf /var/lib/zoneminder/events&lt;br /&gt;
&lt;br /&gt;
Add these lines in fstab to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or in some cases,&lt;br /&gt;
&lt;br /&gt;
 /otherdrive/zoneminder/images /var/lib/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/lib/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Ensure ZoneMinder can write to the new destination by changing the owner and group to that of the web server user account. Debian based distros typically use &amp;quot;www-data&amp;quot; as the web server user account while many rpm based distros use &amp;quot;apache&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
 chown -R apache:apache /otherdrive/zoneminder&lt;br /&gt;
&lt;br /&gt;
6. Finally, restart zoneminder ( &amp;quot;service zoneminder start&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;, or &amp;quot;systemctl start zoneminder&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;br /&gt;
&lt;br /&gt;
FREQUENTLY ASKED QUESTIONS&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
Why can&amp;#039;t I just symlink the newdrive to the events folder?&lt;br /&gt;
Answer: &lt;br /&gt;
Because it does not work in every case. Many rpm and deb packages need the file folders set up exactly the way they were when the first zoneminder package was installed. Changing that around can cause package upgrades to fail, or worse you could lose all your data!&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
I noticed that there is an events folder under /usr/share/zoneminder/www, can I mount my dedicated hard drive or volume to that folder?&lt;br /&gt;
Answer:&lt;br /&gt;
This will not work in every case either and should be avoided. The events and images folders under /usr/share/zoneminder/www are actually symbolic links that point to the real folders under /var/lib/zoneminder (or /var/cache/zoneminder).  Altering this in any way has the same affect as the answer to the first question.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=6933</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=6933"/>
		<updated>2015-08-18T12:37:42Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Network 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.  You may find additional details about supported hardware in the part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Geovision GV250 - bt878a chip]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] &lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Howell-Tempest  VC 878B-Q]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
[[Tungson TE-8008]]&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;
[[LinkDelight CCTV H.264 4CH DVR Card]]&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] &lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] &lt;br /&gt;
[[ Bluecherry - BC-H16480A]] &lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[UDP Technology NCP3200v2]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
[[Rapid OS]]&lt;br /&gt;
&lt;br /&gt;
[[KesCom PG104]]&lt;br /&gt;
&lt;br /&gt;
[[IEI Technology Corp. IVC-268G-R20]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&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;
&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]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - This card is supplied with D-sub to 8 BNC connector and uses the bt878 chip for each input allowing full frame rates and quality. See [[Kodicom 8800]] for more information.&lt;br /&gt;
&lt;br /&gt;
Geovision GV250 bt878a single chip 4 inputs - This capture Card is supplied with 4 video inputs but with NO audio channel&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&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 generate a video stream without the requirement of activex controls. If the requirements state Internet Explorer is the only supported browser, then the camera may not work. The other option is to grab JPEG images (snapshots), if the camera supports that option, which will work but at a lower frame rate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Help us keep this list accurate.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The hardware compatibility list is maintained by you, the community. If you see something that is no longer up to date, please consider revising it. Naturally, be respectful with your edits. Those before you have put in a lot of effort into this documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Maintaining PTZ Control Scripts is particularly important.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
It is important to understand that many of the control scripts were written for older versions of ZoneMinder and may require changes to work with the most recent version. When reviewing control scripts, look at the date it was created (see the history tab at the top). If that date is not recent then the script may not work with the latest version. When in doubt, ask in the user forum.&lt;br /&gt;
&lt;br /&gt;
If you discover the control script in this WiKi has already been added to ZoneMinder, then please update the WiKi to reflect that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Consider adding your script to ZoneMinder.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If you are willing to do the work, we will gladly add new control scripts to ZoneMinder, as long as they have been tested to work properly. This requires submitting a pull request on our github site with the control script and the necessary sql bits to make it show up in the console. Once the control script has been added to the source tree, it will be maintained by the developers and will (should?) always work for you. This is really the best option as it avoids the endless maintenance required to keep the WiKi up to date.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[7Links]](TM Trade Mark)&lt;br /&gt;
&lt;br /&gt;
* [[A-mtk]]&lt;br /&gt;
&lt;br /&gt;
* [[Abus]]  some&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[AirLive AirCam OD325HD]]&lt;br /&gt;
&lt;br /&gt;
* [[Amovision AM-Q630M]]&lt;br /&gt;
&lt;br /&gt;
* [[Anran VGB101-IP]]&lt;br /&gt;
&lt;br /&gt;
* [[Apexis]] most if not all (only tested some)&lt;br /&gt;
&lt;br /&gt;
* [[ArecontVision]] (AV3130M, probably other too)&lt;br /&gt;
&lt;br /&gt;
* [[Astak Mole]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[Brickcom]] These have been tested&lt;br /&gt;
&lt;br /&gt;
* [[B-QTECH]] H.264 Camera&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Dahua]] (IPC-HDB3200C, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[EasyN]] (Mini Speed Dome 1BF)&lt;br /&gt;
&lt;br /&gt;
* [[Edimax]] only tested some&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Generic]] Only tested one &lt;br /&gt;
&lt;br /&gt;
* [[Geovision]] (GV-FE420, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Grandstream]] Grandstream (GXV-3672-FHD &amp;amp; GXV-3672-FHD-36 &amp;amp; GXV3611_HD tested)&lt;br /&gt;
&lt;br /&gt;
* [[Hikvision]] Some&lt;br /&gt;
&lt;br /&gt;
* [[hootoo]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
* [[Instar]] (IN-2905, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[InternetEye]] M6840&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Loftek]] Sentinel PTZ&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Messoa]] (NCR870, probably others)&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Rovio]]&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Swann]] Some&lt;br /&gt;
&lt;br /&gt;
* [[TP-LINK]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Vstar T7833WIP HD Dome Network Camera]]&lt;br /&gt;
&lt;br /&gt;
* [[Wanscam]] FR4020A2 (Foscam clone)&lt;br /&gt;
&lt;br /&gt;
* [[x-vision]] Xvision cameras by y3k (some)&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] (Sharx Ip) Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Zecumate]] JPT3815W&lt;br /&gt;
&lt;br /&gt;
* [[ZoneWay ZW-NC863M-P Megapixel IP]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* [[PLANET]] some   &lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
*[[Logitech 700 series]] some&lt;br /&gt;
&lt;br /&gt;
*[[Ubiqiti]] some&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Compro]] IP70. MPEG4 only, some reliability issues and general poor firmware quality.&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;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&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;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
Useful link: Flash&amp;#039;s IP Camera Database, with Zoneminder compatibility guide:   http://digdilem.org/cameras&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;
* [[Synectics E100]] encoder&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;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
* [[Bosch VIP X1 Single-channel]] video encoder [http://products.boschsecuritysystems.eu/en/EMEA/products/bxp/SKU15449253232961378955-CATMda7ec5dc0edf5b1a0b8cb619e2e11308]&lt;br /&gt;
&lt;br /&gt;
* Video cameras &amp;amp; safes for antitheft purpose on the website http://www.infosafe.fr&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, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: Advent AWC213, Creative Labs VF0420, [[Logitech QuickCam Express]], Logitech HD C270, QuickCam Pro 3000, [[QuickCam Pro 4000]],  QuickCam Communicate STX/Deluxe, [[Logitech Webcam Pro 9000]], and [[Webcam C250]]&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]] &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 CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
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:&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;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&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 [http://www.zoneminder.com/forums/viewforum.php?f=10 HCL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Plug Computers ==&lt;br /&gt;
Guruplug Server Plus -&amp;gt; How to install Zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi ==&lt;br /&gt;
&lt;br /&gt;
ZM 1.25 is already in Raspbian.  Newer development packages are available.&lt;br /&gt;
&lt;br /&gt;
You will want libjpeg-turbo from the following repository by adding to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deb http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
deb-src http://zarrenspry.info/repos/apt/raspbian testing main&lt;br /&gt;
&lt;br /&gt;
Add gpg by&lt;br /&gt;
&lt;br /&gt;
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -&lt;br /&gt;
&lt;br /&gt;
apt-get install libturbojpeg8 libturbojpeg8-dev&lt;br /&gt;
&lt;br /&gt;
If using the Pi camera, you will need to enable it in raspi-config as well as loading the v4l2 kernel module by adding the following to your /etc/modules.  You will also need to assign more than 128M to the GPU.&lt;br /&gt;
&lt;br /&gt;
bcm2835-v4l2&lt;br /&gt;
&lt;br /&gt;
Although the camera will can capture high res, you don&amp;#039;t have enough RAM currently to do so.  Especially if you have the early 256MB model.  So just stick to 640x480.  &lt;br /&gt;
&lt;br /&gt;
You should be able to get around 20fps, but if you do anything involving the CPU you will get underruns.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6845</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6845"/>
		<updated>2015-05-27T12:42:34Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&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;
&amp;#039;&amp;#039;&amp;#039;&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;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Today, those two versions are Fedora 22 and 21. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view the installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Fedora following installation of the ZoneMinder rpm.&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6844</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6844"/>
		<updated>2015-05-27T12:42:24Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The intent of this walk through is to install a very base/bare bones installation of CentOS that runs only ZoneMinder. This would be for a dedicated ZoneMinder server with no GUI or any unnecessary services running. The reason for the very light-weight installation is to make the majority of system resources available to ZoneMinder, not the OS. With this installation, memory is reduced to around 140-160MB, and CPU usage is practically nonexistent. The CentOS base installation is very easy to install and doesn’t take too much time as long as you have some type of broadband connection. There are many ways to install CentOS, but this article covers only two, because they are related.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;All CLI operations/commands in this How-To are done as root, in the /root directory. The reasoning is that this system would be in a secure environment to begin with. However, if you need to add a user to run these services to better secure the system, then you can, but keep in mind that some items must run as root.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on CentOS.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. It also includes all dependencies that are not found in the default CentOS repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
The development team strictly uses CentOS, but these packages should work on Red Hat Enterprise Linux and Scientific Linux. The rpms in zmrepo are intended to work with &amp;#039;&amp;#039;default installations&amp;#039;&amp;#039; of these Linux distributions.  Modified versions are not guaranteed to work. Continue to the Disclaimer below for details.&lt;br /&gt;
&lt;br /&gt;
Please report any issues with RHEL and SL, as we have no way of pro-actively discovering them.&lt;br /&gt;
&lt;br /&gt;
==== Disclaimer ====&lt;br /&gt;
This could also be appropriately called &amp;#039;&amp;#039;&amp;#039;Who should not Use&amp;#039;&amp;#039;&amp;#039; zmrepo. &lt;br /&gt;
&lt;br /&gt;
The goal behind CentOS is that of an enterprise operating system. Stability is prioritized over the latest and greatest version of a particular package. Fortunately, bug fixes are backported. Consequently, you should &amp;#039;&amp;#039;never&amp;#039;&amp;#039; replace the core packages in CentOS! If you truly think that you &amp;quot;have to have&amp;quot; some package that is newer than what is found in the default repository then you should consider using a different Linux distro.&lt;br /&gt;
&lt;br /&gt;
The CentOS maintainers have a great write-up that describes this in much more detail [http://wiki.centos.org/PackageManagement/SourceInstalls here].  Pay close attention to the all the do&amp;#039;s, dont&amp;#039;s, and &amp;quot;this will break&amp;quot; comments.&lt;br /&gt;
&lt;br /&gt;
Zmrepo extends this same philosophy onto ZoneMinder. While ZoneMinder requires many dependencies to work, zmrepo will not overwrite any core packages.  It only adds packages that, otherwise, would not be available.&lt;br /&gt;
&lt;br /&gt;
One other case is worth mentioning. This repository is intended &amp;#039;&amp;#039;only&amp;#039;&amp;#039; for those who have installed RHEL/CentOS/SL using the &amp;#039;&amp;#039;&amp;#039;official installation media for that distribution&amp;#039;&amp;#039;&amp;#039;!  This means that these rpms are not intended to work with third parties that release their own spin of CentOS, which contain their own third party application preinstalled.  Third parties are allowed to modify the original distribution in any way, which means we can&amp;#039;t guarantee the rpms in zmrepo will be compatible.  &lt;br /&gt;
&lt;br /&gt;
For example, if you installed &amp;quot;CentOS&amp;quot; using an installation disk from an Astericks vendor, then the rpms in zmrepo are known not to work.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view the installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Centos7 following installation of the ZoneMinder rpm.&lt;br /&gt;
&lt;br /&gt;
== CentOS 5.6 &amp;amp; ZoneMinder 1.25.0 ==&lt;br /&gt;
This guide is for CentOS v5.6 (&amp;lt;b&amp;gt;Notes for using this guide with CentOS 6 are in chapter 2.&amp;lt;/b&amp;gt;) with ZoneMinder v1.25.0 which are the newest released versions as of this update (Summer 2011).  If you are attempting to install newer versions of either using this guide, you will have to adjust file and directory names denoted below. &lt;br /&gt;
&lt;br /&gt;
=== Step One - Get CentOS ===&lt;br /&gt;
You can download the “.iso” file(s) for CentOS from http://www.centos.org/&amp;lt;br/&amp;gt;&lt;br /&gt;
Alternatively download the net-install version of CentOS which is basically just the first CD.&lt;br /&gt;
Here is one location to download the net-install version:&amp;lt;br/&amp;gt;&lt;br /&gt;
Download i386: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://mirror.centos.org/centos/5/isos/&lt;br /&gt;
&lt;br /&gt;
=== Step Two - Installation Source ===&lt;br /&gt;
Regardless of which method you use, the next few steps are the same.&amp;lt;br/&amp;gt;&lt;br /&gt;
Begin by booting your system up with either cd/dvd.&amp;lt;br/&amp;gt;&lt;br /&gt;
Choose the options that best fit your environment until you reach the “Installation Method”. &lt;br /&gt;
&lt;br /&gt;
[[Image:centosnetinstal-http.png]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;#039;&amp;#039;&amp;#039;HTTP&amp;#039;&amp;#039;&amp;#039; ONLY if you are using the net-install method.  Otherwise, you probably want to choose &amp;#039;&amp;#039;&amp;#039;Local CDROM&amp;#039;&amp;#039;&amp;#039;. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using the net-install method then enter:&amp;lt;br/&amp;gt;&lt;br /&gt;
Website Name: &amp;#039;&amp;#039;&amp;#039;mirror.centos.org&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for i386) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/i386&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for 64 bit) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/x86_64&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Step Three - Installation Packages ===&lt;br /&gt;
On the first screen, un-check &amp;quot;Desktop - Gnome&amp;quot; then check &amp;quot;Server&amp;quot; (not Server-GUI)&amp;lt;br/&amp;gt;&lt;br /&gt;
Make sure that you have &amp;quot;Customize now&amp;quot; selected at the bottom. (do not check &amp;quot;Packages from CentOS Extras&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-packages1.png]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Next&amp;quot; to continue&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once presented with the custom package selection, un-check/check the following:&lt;br /&gt;
 Applications = Check only &amp;quot;Editors&amp;quot; and &amp;quot;Text Based Internet&amp;quot;&lt;br /&gt;
 Development = Check only &amp;quot;Development Libraries&amp;quot; and &amp;quot;Development Tools&amp;quot;&lt;br /&gt;
 Servers = Un-check everything&lt;br /&gt;
 Base System = Check only &amp;quot;Base&amp;quot; (you can check Administration Tools and System Tools if you need them, but they are not necessary)&lt;br /&gt;
&lt;br /&gt;
[[Image:Centosinstall-packages2.png]]&lt;br /&gt;
&lt;br /&gt;
Now let the system finish the installation.&lt;br /&gt;
&lt;br /&gt;
[[Image:centosisntall-end.png]]&lt;br /&gt;
&lt;br /&gt;
=== Step Four - Configuration ===&lt;br /&gt;
After the first reboot, the setup screen should appear. If not, log into the system and type &amp;quot;setup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup1.png]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Firewall Configuration&amp;quot; and set the &amp;quot;Security Level&amp;quot; and &amp;quot;SELinux&amp;quot; to &amp;quot;Disabled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup2.png]]&lt;br /&gt;
&lt;br /&gt;
Next, we are going to disable a number of system services. Go back to the setup screen and select &amp;quot;System Services&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Un-Check:&lt;br /&gt;
 apmd&lt;br /&gt;
 bluetooth&lt;br /&gt;
 cups&lt;br /&gt;
 hidd&lt;br /&gt;
 ip6tables&lt;br /&gt;
 iptables&lt;br /&gt;
 netfs&lt;br /&gt;
 nfslock&lt;br /&gt;
 pcscd&lt;br /&gt;
 portmap&lt;br /&gt;
After disabling the services, select &amp;quot;Disable Now and On Boot&amp;quot;, exit the setup tool, and log into the system if you haven&amp;#039;t already.&lt;br /&gt;
*Screen is a simple program that allows you to run commands from a &amp;quot;Hosted&amp;quot; command line interface. This helps if you loose your connection to the server for any reason in that it enables you to resume (screen -r) right where you left off. Often times, I will start a large update/upgrade, leave it for the day, then come back and see where it&amp;#039;s at later. Screen allows you to do that without having to be connected.&lt;br /&gt;
*Install Screen&lt;br /&gt;
 yum install screen&lt;br /&gt;
*To start a screen session just type&lt;br /&gt;
 screen&lt;br /&gt;
*If you get disconnected and need to resume your session of screen simply type&lt;br /&gt;
 screen -r&lt;br /&gt;
&lt;br /&gt;
=== Step Five - Installing ZoneMinder 1.25.0 ===&lt;br /&gt;
First, we need to download files and prepare the system&lt;br /&gt;
*Add the RPM Forge repository to CentOS. This will allow the installation of a number of services/applications later without having to manually install them.&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i386 CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the needed files, ZoneMinder 1.25.0 and the Cambozola addon&lt;br /&gt;
 wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 wget http://www.zoneminder.com/sites/zoneminder.com/downloads/cambozola.jar&lt;br /&gt;
*Now let&amp;#039;s install all the services and programs that will be needed (&amp;#039;&amp;#039;If you encounter any dependency errors using yum, try running &amp;#039;&amp;#039;&amp;#039;yum clean all&amp;#039;&amp;#039;&amp;#039; then re-try the install command(s).&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
*tip: Copy/paste two lines at a time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum -y install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc \&lt;br /&gt;
pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel ImageMagick&lt;br /&gt;
&lt;br /&gt;
yum -y install libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools \&lt;br /&gt;
perl-Date-Manip perl-LWP-UserAgent-Determined&lt;br /&gt;
&lt;br /&gt;
yum -y install perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Sys-Mmap \&lt;br /&gt;
perl-Module-Load subversion git yasm bzip2 bzip2-devel bzip2-libs lbzip2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now let&amp;#039;s update everything within the new CentOS install&lt;br /&gt;
 yum -y update&lt;br /&gt;
*At this point, it might be useful to reboot your system. Oddly, sometimes things don&amp;#039;t work right unless you reboot after all the updates&lt;br /&gt;
 reboot   -or-   shutdown -r now&lt;br /&gt;
*After rebooting, log into your system&lt;br /&gt;
==== Install ffmpeg ====&lt;br /&gt;
*Now we need to make sure we use the latest &amp;quot;tested&amp;quot; version of &amp;quot;ffmpeg&amp;quot;. This is the latest version of ffmpeg that the ZoneMinder developers have tested with.  Download, compile and install ffmpeg:&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone git://git.videolan.org/ffmpeg.git&lt;br /&gt;
cd ffmpeg&lt;br /&gt;
./configure --enable-gpl --enable-shared --enable-pthreads&lt;br /&gt;
make &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The following commands must be done as &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install &lt;br /&gt;
make install-libs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
edit /etc/ld.so.conf and add the line &amp;quot;/usr/local/lib&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ldconfig -v&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Next, run &amp;#039;ffmpeg&amp;#039; from the command line. Make sure you do not get any errors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If &amp;#039;ffmpeg&amp;#039; runs correctly, you&amp;#039;ll see something similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg version N-32260-gaebb56e, Copyright (c) 2000-2011 the FFmpeg developers&lt;br /&gt;
  built on Aug 31 2011 21:41:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)&lt;br /&gt;
  configuration: --enable-shared --enable-swscale --enable-gpl --enable-pthreads&lt;br /&gt;
  libavutil    51. 14. 0 / 51. 14. 0&lt;br /&gt;
  libavcodec   53. 12. 0 / 53. 12. 0&lt;br /&gt;
  libavformat  53. 10. 0 / 53. 10. 0&lt;br /&gt;
  libavdevice  53.  3. 0 / 53.  3. 0&lt;br /&gt;
  libavfilter   2. 37. 0 /  2. 37. 0&lt;br /&gt;
  libswscale    2.  0. 0 /  2.  0. 0&lt;br /&gt;
  libpostproc  51.  2. 0 / 51.  2. 0&lt;br /&gt;
Hyper fast Audio and Video encoder&lt;br /&gt;
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&lt;br /&gt;
&lt;br /&gt;
Use -h to get full help or, even better, run &amp;#039;man ffmpeg&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enable services ====&lt;br /&gt;
*Turn everything on.  These commands must be run as root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 chkconfig httpd on &lt;br /&gt;
 chkconfig mysqld on &lt;br /&gt;
 chkconfig ntpd on &lt;br /&gt;
 service httpd start &lt;br /&gt;
 service mysqld start &lt;br /&gt;
 service ntpd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Install Zoneminder ====&lt;br /&gt;
*Next, we need to extract the contents of the ZoneMinder &amp;quot;tar&amp;quot; file, then jump into its directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd /root/  # Or your work directory for this installation&lt;br /&gt;
 tar -zxvf ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 cd ZoneMinder-1.25.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now we are going to configure ZoneMinder with some additional parameters. What is listed are the default CentOS directory locations.&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin&lt;br /&gt;
&lt;br /&gt;
Note: It seems for Zoneminder to build with newer versions of ffmpeg, (certainly 0.6.3) you&amp;#039;ll need to append CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; to the end of the&lt;br /&gt;
./configure line thus:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
There is a section in the FAQ &amp;#039;&amp;#039;&amp;quot;When running configure, I get a lot of messages about not being able to compile the ffmpeg libraries&amp;quot;&amp;#039;&amp;#039; about this [[http://www.zoneminder.com/wiki/index.php/FAQ]].&lt;br /&gt;
&lt;br /&gt;
Worth mentioning here is the section in the FAQ under the heading &amp;quot;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;quot; [[http://www.zoneminder.com/wiki/index.php/FAQ]]. This descibes how you can possibly reduce CPU load by half by &lt;br /&gt;
changing the system&amp;#039;s jpeg libraries and building Zoneminder with processor specific instructions.  &lt;br /&gt;
Since CentOS 6.4 CentOS now comes with libjpeg_turbo as the standard JPEG library leading to a more optimised Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default ZM_DB_HOST=localhost, ZM_DB_NAME=zm, ZM_DB_USER=zmuser, and ZM_DB_PASS=zmpass.&lt;br /&gt;
*Change &amp;quot;zmuser&amp;quot; (if you want) with the user that you will use within MySQL to access the ZoneMinder database&lt;br /&gt;
*Change &amp;quot;zmpass&amp;quot; with the password you will be using with the &amp;quot;zmuser&amp;quot; account&lt;br /&gt;
So if you wish to change it, use a command like:&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 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass&lt;br /&gt;
&lt;br /&gt;
*if you get the configure &amp;quot;error zm requires libmysqlclient.a&amp;quot; with 64 bit CentOS add the following to the end of your configure statement&lt;br /&gt;
  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
e.g. For CentOS 5.6 64-bit with support for ffmpeg.  The whole command must be executed on one line.  Make sure to change the &amp;#039;&amp;#039;&amp;#039;zmpass&amp;#039;&amp;#039;&amp;#039; to a password that matches your installation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;make install&amp;#039;&amp;#039;&amp;#039; after running the configuration steps above.&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 # Run the next command as root&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Configure MySQL ====&lt;br /&gt;
*Need to add a password for the root user of MySQL&lt;br /&gt;
*Create the zm database&lt;br /&gt;
*Create the zm database user with permissions and password&lt;br /&gt;
 mysql&lt;br /&gt;
 mysql&amp;gt; SET PASSWORD FOR root@localhost=PASSWORD(&amp;#039;new_root_password&amp;#039;);&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&amp;gt;Query OK, 1 row affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; CREATE USER &amp;#039;your_zm_user&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;your_zm_password_from_above&amp;#039;;&lt;br /&gt;
Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost;&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.02 sec)&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
&amp;gt;Bye&lt;br /&gt;
*Import the tables into the zm database&lt;br /&gt;
 cd /root/ZoneMinder-1.25.0 &lt;br /&gt;
 mysql -u root -p zm &amp;lt; db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
==== Finalize Installation of ZoneMinder ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All remaining CLI commands need to be run as root.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Make ZoneMinder startup automatically after a reboot&lt;br /&gt;
 # from the ZoneMinder-1.25 source directory&lt;br /&gt;
 cp scripts/zm /etc/init.d/&lt;br /&gt;
 chmod +x /etc/init.d/zm&lt;br /&gt;
 chkconfig zm on&lt;br /&gt;
*Add the Cambozola Java web interface&lt;br /&gt;
 cp cambozola.jar /var/www/html/zm/&lt;br /&gt;
*Make sure you have permission to view it from apache:&lt;br /&gt;
 chown apache:apache /var/www/html/zm/cambozola.jar&lt;br /&gt;
*Start ZoneMinder&lt;br /&gt;
 service zm start&lt;br /&gt;
&lt;br /&gt;
Note: You may get an error when you try to start Zoneminder using the &amp;#039;zm&amp;#039; startup script as per this forum post: [[http://www.zoneminder.com/forums/viewtopic.php?f=21&amp;amp;t=17827]] .&lt;br /&gt;
The reason for this was the default &amp;#039;zm&amp;#039; startup script was formatted with DOS line endings. If you get the errors as detailed in the above post then the fix is to convert the &lt;br /&gt;
&amp;#039;zm&amp;#039; file to use UNIX style line endings. You can do this in the Vim text editor whilst editing the &amp;#039;zm&amp;#039; file thus: &amp;#039;:set fileformat=unix&amp;#039; then save the file &amp;#039;:wq&amp;#039;. You can also &lt;br /&gt;
use the utility dos2unix to convert the file. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
* tick the box for support for the Cambozola addon within your ZoneMinder installation: http://ip-address/zm (Options-&amp;gt;Images&amp;amp;nbsp;tab-&amp;gt;OPT_CAMBOZOLA)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now have fun and add your cameras to ZoneMinder knowing you now have a very stable and streamlined OS to run it on.&lt;br /&gt;
&lt;br /&gt;
== CentOS 6 Notes ==&lt;br /&gt;
&lt;br /&gt;
The installation for CentOS 6 is pretty much the same.&lt;br /&gt;
Download CentOS 6 minimal installation ISO (CentOS-6.0-i386-minimal.iso – 257MB).  Burn to CD and install. We only want to be running in console text mode not GUI graphics mode. During installation configure network and tick to enable network adapter.&lt;br /&gt;
* Login as root and update the base install:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum -y update&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install required packages, other useful packages, and their dependencies&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum groupinstall core&lt;br /&gt;
yum groupinstall base&lt;br /&gt;
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring \&lt;br /&gt;
nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver \&lt;br /&gt;
sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel \&lt;br /&gt;
bison-devel ncurses zlib zlib-devel openssl openssl-devel gnutls-devel php-process perl-Time-HiRes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
To remove various configure/make errors in Centos 6.2, you may also want to install:&amp;lt;pre&amp;gt;&lt;br /&gt;
bzip2-libs ffmpeg-devel ffmpeg-php perl-Net-SFTP-Foreign perl-Expect perl-LWPx-ParanoidAgent.x86_64&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we continue from step four (4).&lt;br /&gt;
==== Installation of ZoneMinder ====&lt;br /&gt;
* In step five (5) the correct RPM Forge repository is:&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i686 CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In step five (5) the command that seems to configure zoneminder correctly is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/html/zm \&lt;br /&gt;
 --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache \&lt;br /&gt;
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
For Centos 6.2, I used the following configure string for success:&amp;lt;pre&amp;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 ZM_DB_NAME=zm ZM_DB_USER=&amp;lt;zm user&amp;gt; ZM_DB_PASS=&amp;lt;zm user passwd&amp;gt; ZM_SSL_LIB=openssl  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; --with-ffmpeg=/usr/share/ffmpeg  CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting FFmpeg Errors Building ZoneMinder ====&lt;br /&gt;
Using the git version of FFmpeg can cause the ZoneMinder make process to fail with unresolved symbols in ffmpeg. To remedy this, use version 0.6.5 of FFmpeg with the same configure instructions as the normal install above.&lt;br /&gt;
FFmpeg 0.6.5: http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.bz2&lt;br /&gt;
==== Troubleshooting Blank Page ====&lt;br /&gt;
If everything went ok but when accessing zoneminder&amp;#039;s web page at http://localhost/zm, the page is blank this means that there is a problem with PHP short tags. Edit setting short_open_tag in php.ini (/etc/php.ini) and change it to On.&lt;br /&gt;
* Restart apache server with:&lt;br /&gt;
&amp;lt;pre&amp;gt;service httpd restart&amp;lt;/pre&amp;gt; and you should be up and running.&lt;br /&gt;
==== Trouble shooting full drive with CentOS 6 ====&lt;br /&gt;
The default drive structure has chaned from that of CentOS 5 having the full drive allocated to the /root partition. CentOS 6 by default makes a logical volume &amp;#039;LVM&amp;#039; of 10% your drives space for the /root partition and the remaining drive as the /home partion with the exception of the swap and boot partitions.&lt;br /&gt;
&lt;br /&gt;
The will cause Zoneminder to fill the /root partition as the /var/www/html/zm/events directory is by default located here, you can use the system-config-lvm utility to re-adjust this partition balance if your system has been installed with the default partition structure.&lt;br /&gt;
&lt;br /&gt;
It is best to install CentOS 6 with a custom partition layout that is the same as CentOS 5 structure, you can also if using a single physical had drive do with out the LVM drives and create an EXT4 /root partion along with the standard /boot and /swap partitions.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[== &amp;#039;&amp;#039;&amp;#039;P.S.&amp;#039;&amp;#039;&amp;#039; ==]] aspcicc@jumpy.it&lt;br /&gt;
(Update: This does not appear to be required any more.)&lt;br /&gt;
&lt;br /&gt;
Hi! and thanks for your guide.. i want to add a little correction that have made me crazy to resolve, when I poweroff or reboot system i obtain an error related to mysql database and i have    understood that the problem was because mysqld is stopped before zoneminder to be more specific there isn&amp;#039;t a link under rc0.d (halt) and rc6.d (reboot) to zoneminder that for this lack is simply killed by killall. To resolve this problem you need to add at the start of zm (under /etc/init.d) the line&lt;br /&gt;
&lt;br /&gt;
 &amp;#039; # chkconfig: 345 99 01 &amp;#039;  (without &amp;#039; of course)&lt;br /&gt;
&lt;br /&gt;
and then run &lt;br /&gt;
chkconfig --level 345 zm on&lt;br /&gt;
chkconfig --level 06 zm off&lt;br /&gt;
&lt;br /&gt;
So the link to shutdown zm is created under rc0.d and rc6.d and zoneminder is started at the end of poweron and stopped at the beginning of the poweroff&lt;br /&gt;
&lt;br /&gt;
For information about priority starting and stopping processes see: http://www.netadmintools.com/art94.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Added Dependency: ImageMagick&lt;br /&gt;
&lt;br /&gt;
Removed Dependency: perl-Time-HiRes, which causes a conflict with the default perl package.&lt;br /&gt;
&lt;br /&gt;
Also, mysql seems to install with no password for the root user, and the zm DB create script creates the database on the fly, which means that the database create command needs to have the &amp;quot;-p zm&amp;quot; removed from the command line.&lt;br /&gt;
&lt;br /&gt;
Could someone verify that this is correct, to make sure it&amp;#039;s not just something I missed?&lt;br /&gt;
&lt;br /&gt;
Thanks! &lt;br /&gt;
terry@cnysupport.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Struggling to get x264 and ffmpeg working?  I used the latest SVN versions not the Centos packages.  But I was getting&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I followed these instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /etc/ld.so.conf.d&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* add another file:  custom-libs.conf&lt;br /&gt;
* inside, put :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/local/lib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* save the file&lt;br /&gt;
* run ldconfig&lt;br /&gt;
&amp;lt;pre&amp;gt;ldconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BeeryGaz&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== Failed monitors or ZM refusing to start ====&lt;br /&gt;
A problem that took me some time to figure out on two installations was SElinux.&lt;br /&gt;
SElinux stops Zoneminder from accessing some system parts or doing some functions so will cause various errors or simply drive you nuts trying to figure out.&lt;br /&gt;
&lt;br /&gt;
Look at the following page on how to disable SElinux or use permissive mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some of the errors that I was getting with a fresh install on CentOS 6 was&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2013-02-16 16:13:10.828590	zmwatch	14898	ERR	Can&amp;#039;t open memory map file &amp;#039;/dev/shm/zm.mmap.1&amp;#039;: No such file or directory	zmwatch.pl	&lt;br /&gt;
2013-02-16 16:13:10.736988	zmfix	15317	ERR	Can&amp;#039;t stat /dev/video0: Permission denied	zmfix.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== ZoneMinder 1.26.x ==&lt;br /&gt;
&lt;br /&gt;
Zoneminder after a long period of none development is now being developed by the community, these notes are to try and help with the installation of the new release on CentOS 5 and CentOS 6.&lt;br /&gt;
All testing has been done on a CentOS 6.4 fresh install server.&lt;br /&gt;
&lt;br /&gt;
=== Cmake installation notes ===&lt;br /&gt;
&lt;br /&gt;
Compiling of Zoneminder can now be done with the &amp;#039;Cmake&amp;#039; command in replacement of the ./configure command this should automatically configure the build with the minimum of parameters. The &amp;#039;Cmake&amp;#039; command at time of writing produced a partially working installation with the main files installed into /usr/local/bin/zoneminder and associated folders, different from the above guides.&lt;br /&gt;
&lt;br /&gt;
The webfiles require to be linked via a zoneminder.conf file located with in the /disto/redhat directory inside the build directory that requires to be coped to the /etc/httpd/conf.d directory, this will need to be edited to the correct location of the webfiles and remove the local only command as indicated with in the file.&lt;br /&gt;
&lt;br /&gt;
The Cmake install failed to use my BTTV capture card producing various errors with a potential solution given here &amp;lt;pre&amp;gt;http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21709&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ./configure compile ===&lt;br /&gt;
&lt;br /&gt;
To install via the traditional ./configure method you first need to run the ./bootstrap.sh file to generate the required configure file, the install can then progress as the above installation guides.&lt;br /&gt;
&lt;br /&gt;
This method has produced a fully working installation at time of writing.&lt;br /&gt;
&lt;br /&gt;
== pt_BR Instructions ==&lt;br /&gt;
&lt;br /&gt;
Here is a good walkthrough install of zoneminder in CentOS using the rpm package method. It is intended to Portuguese  (pt or pt_BR) audience.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://dulimind.blogspot.com.br/2015/02/zoneminder-no-centos-6-metodo-facil-com.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6843</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6843"/>
		<updated>2015-05-27T12:40:39Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Supported Versions */&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;
&amp;#039;&amp;#039;&amp;#039;&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;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Today, those two versions are Fedora 22 and 21. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Fedora following installation of the ZoneMinder rpm.&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6842</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6842"/>
		<updated>2015-05-27T12:40:13Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&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;
&amp;#039;&amp;#039;&amp;#039;&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;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Today, those two versions are Fedora 21 and 20. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation====&lt;br /&gt;
&lt;br /&gt;
Please navigate to http://zmrepo.zoneminder.com/ and select your distro from the drop-down to view installation instructions.&lt;br /&gt;
&lt;br /&gt;
Remember to follow the steps documented in README.Fedora following installation of the ZoneMinder rpm.&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Main_Documentation&amp;diff=6835</id>
		<title>Main Documentation</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Main_Documentation&amp;diff=6835"/>
		<updated>2015-05-14T15:01:00Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Please Note: This documentation is not yet fully updated for changes in versions from 1.23.0 or 1.24. Updates will be applied as soon as possible.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* You may also find specific installation and setup guides under [[Contents#Distribution-specific_guides]] and a french translated doc under [[Media:ZoneMinderWikifr-v2.pdf]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Welcome to ZoneMinder, the all-in-one Linux GPL&amp;#039;d security camera solution.&lt;br /&gt;
&lt;br /&gt;
A while back my garage was burgled and all my power tools were stolen! I realized shortly after that if I&amp;#039;d just had a camera overlooking the door then at least I&amp;#039;d have know exactly when and who did the dirty deed. And so ZoneMinder was born. It&amp;#039;s still relatively new but hopefully it has developed into something that can be genuinely useful and prevent similar incidents or even perhaps bring some perpetrators to justice.&lt;br /&gt;
&lt;br /&gt;
PROPOSED ADDITION&lt;br /&gt;
&amp;#039;&amp;#039;Most commercial &amp;quot;security systems&amp;quot; are designed as a monitoring system that also records.  Recording quality can vary from bad to unusable, locating the relevant video can range from challenging to impractical, and exporting can often only be done with the manual present.  ZoneMinder was designed primarily to record, and allow easy searches and exporting.  Recordings are of the best possible quality, easy to filter and find, and simple to export using any system with a web browser.  It also monitors.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is designed around a series of independent components that only function when necessary limiting any wasted resource and maximising the efficiency of your machine. A fairly ancient Pentium II PC should be able to track one camera per device at up to 25 frames per second with this dropping by half approximately for each additional camera on the same device. Additional cameras on other devices do not interact so can maintain this frame rate. Even monitoring several cameras still will not overload the CPU as frame processing is designed to synchronise with capture and not stall it.&lt;br /&gt;
&lt;br /&gt;
As well as being fast ZoneMinder is designed to be friendly and even more than that, actually useful. As well as the fast video interface core it also comes with a user friendly and comprehensive PHP based web interface allowing you to control and monitor your cameras from home, at work, on the road, or even a web enabled cell phone. It supports variable web capabilities based on available bandwidth. The web interface also allows you to view events that your cameras have captured and archive them or review them time and again, or delete the ones you no longer wish to keep. The web pages directly interact with the core daemons ensuring full co-operation at all times. ZoneMinder can even be installed as a system service ensuring it is right there if your computer has to reboot for any reason.&lt;br /&gt;
&lt;br /&gt;
The core of ZoneMinder is the capture and analysis of images and there is a highly configurable set of parameters that allow you to ensure that you can eliminate false positives whilst ensuring that anything you don&amp;#039;t want to miss will be captured and saved. ZoneMinder allows you to define a set of &amp;#039;zones&amp;#039; for each camera of varying sensitivity and functionality. This allows you to eliminate regions that you don&amp;#039;t wish to track or define areas that will alarm if various thresholds are exceeded in conjunction with other zones.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is fresh off the keyboard and so comes with no warranty whatsoever, please try it, send your feedback and if you get anything useful out of it let me know.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is free but if you do get ZoneMinder up and running and find it useful then please feel free to visit http://www.zoneminder.com/donate.html where &amp;#039;&amp;#039;&amp;#039;any donations will be appreciated&amp;#039;&amp;#039;&amp;#039; and will help to fund future improvements to ZoneMinder. This would be especially relevant if you use ZoneMinder as part of your business, or to protect your property.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
ZoneMinder needs a couple of things to work. If you are installing a package (Debian, Ubuntu, or RedHat) the package should install all of the needed core components.  However, you may want to install several optional components (such as ffmpeg) as well.  If you are installing from a LiveCD, it will install all of the needed components, but they may not be the latest version.  If you compile it from source, ordinarily the ‘configure’ script will check for the presence of required (and optional) components but it is useful to be prepared beforehand.&lt;br /&gt;
&lt;br /&gt;
Firstly, it uses MySQL so you&amp;#039;ll need that. In order to compile you need to make sure you have a development installation and not just a runtime; this is because it needs to use the MySQL header files. If you are running an RPM based distribution then it’s probably worth installing all the pure MySQL rpm files to be sure you have the right ones.  If you are installing the .deb file, it will install it for you.  If you already have a MySQL install, be aware that changes you have made to security or configuration may cause problems.&lt;br /&gt;
&lt;br /&gt;
Next it does things with JPEGs so you&amp;#039;ll need at least libjpeg.a which I think come as standard nowadays with most distributions. Users have reported varying degrees of success with other jpeg libraries such as jpeg-mmx but these are not officially supported. If you plan to use network cameras then the Perl Compatible Regular Expression library (libpcre.a) can prove useful but is not always essential. ZoneMinder also uses the netpbm utilities in a very limited way to generate thumbnails under certain circumstances though this can be modified.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder can generate MPEG videos if necessary, for this you&amp;#039;ll need either ffmpeg (recommended) or the Berkeley MPEG encoder (mpeg_encode). If you don&amp;#039;t have either, don&amp;#039;t worry, as the options will be hidden and you&amp;#039;ll not really miss too much. Some of the authentication uses openssl MD5 functions, if you get a grumble about these during configuration all it will mean is that authentication won’t be used for streaming. The web interface uses PHP and so you need that in your apache or other web server as well, make sure MySQL support is available either statically or as a module. There are also various perl modules that you may need that vary depending on which options you choose on installation, for more details see later in this document.&lt;br /&gt;
&lt;br /&gt;
Finally, there is quite a bit of image streaming in the package. So if you don&amp;#039;t have FireFox  or another browser that supports image streaming natively I recommend you get the excellent Cambozola java applet from http://www.charliemouse.com:8080/code/cambozola/ which will let you view the image stream in Internet Explorer and others. Otherwise you&amp;#039;re limited to just refreshing still images or mpeg based streams, if you have compatible plugins.  As upgraded version have occasionally caused problems, a known working version of Cambozola is also in the [http://www.zoneminder.com/downloads.html Downloads] section of the ZoneMinder website.&lt;br /&gt;
&lt;br /&gt;
Hardware-wise, ZoneMinder has been used with various video and USB cameras with the V4L interface. It will also work with most Network or IP cameras. I don&amp;#039;t have a lot of cameras myself so I&amp;#039;ve not had chance to test it with a huge range personally. However, there are many other people who have used many other products, and there is a list of devices that are definitely known to work on the web site. Please enter you camera on the [[Supported_hardware|Wiki list]] on zoneminder.com if your camera works and is not listed. You do need to have Video4Linux installed. In terms of computer hardware, there are no hard and fast requirements. You may get a system that works with one or two cameras going on an old P200 but you will be able to support more cameras, at a higher frame rate, with faster machines with more RAM. More guidance is available on the web forums.&lt;br /&gt;
&lt;br /&gt;
==Components==&lt;br /&gt;
ZoneMinder is not a single monolithic application but is formed from several components. These components primarily include executable compiled binaries which do the main video processing work, perl scripts which usually perform helper and/or external interface tasks and php web scripts which are used for the web interface.&lt;br /&gt;
&lt;br /&gt;
A brief description of each of the principle components follows.&lt;br /&gt;
&lt;br /&gt;
; zmc : This is the ZoneMinder Capture daemon. This binary&amp;#039;s job is to sit on a video device and suck frames off it as fast as possible, this should run at more or less constant speed.&lt;br /&gt;
; zma : This is the ZoneMinder Analysis daemon. This is the component that goes through the captured frames and checks them for motion which might generate an alarm or event. It generally keeps up with the Capture daemon but if very busy may skip some frames to prevent it falling behind.&lt;br /&gt;
; zmf : This is the ZoneMinder Frame daemon. This is an optional daemon that can run in concert with the Analysis daemon and whose function it is to actually write captured frames to disk. This frees up the Analysis daemon to do more analysis (!) and so keep up with the Capture daemon better. If it isn’t running or dies then the Analysis daemon just writes them itself.&lt;br /&gt;
; zms : This is the ZoneMinder Streaming server. The web interface connects with this to get real-time or historical streamed images. It runs only when a live monitor stream or event stream is actually being viewed and dies when the event finishes or the associate web page is closed. If you find you have several zms processes running when nothing is being viewed then it is likely you need a patch for apache (see the Troubleshooting section). A non-parsed header version of zms, called nph-zms, is also installed and may be used instead depending on your web server configuration.&lt;br /&gt;
; zmu : This is the ZoneMinder Utility. It&amp;#039;s basically a handy command line interface to several useful functions. It’s not really meant to be used by anyone except the web page (there&amp;#039;s only limited &amp;#039;help&amp;#039; in it so far) but can be if necessary, especially for debugging video problems.&lt;br /&gt;
; zmfix : This is a small binary that exists only to ensure that the video device files can be read by the main capture daemons. It is often the case that these device files are set to be accessible by root only on boot. This binary runs setuid and ensures that they have appropriate permissions. This is not a daemon and runs only on system start and then exits. &amp;#039;&amp;#039;&amp;#039;Note that ZoneMinder 1.26.5 was the last release with this utility.&amp;#039;&amp;#039;&amp;#039; Running zmfix setuid was a security risk is no longer needed because most modern Linux distros assign local devices to the &amp;quot;video&amp;quot; group. Simply assign the account the capture daemons run under (usually apache or www-data) to the video group.  &lt;br /&gt;
&lt;br /&gt;
As well as this there are the web PHP files in the web directory and some perl scripts in the scripts directory. These scripts all have some configuration at the top of the files which should be viewed and amended if necessary and are as follows.&lt;br /&gt;
&lt;br /&gt;
; zmpkg.pl : This is the ZoneMinder Package Control script. This is used by the web interface and service scripts to control the execution of the system as a whole.&lt;br /&gt;
; zmdc.pl : This is the ZoneMinder Daemon Control script. This is used by the web interface and the zmpkg.pl script to control and maintain the execution of the capture and analysis daemons, amongst others. You should not need to run this script yourself.&lt;br /&gt;
; zmfilter.pl : This script controls the execution of saved filters and will be started and stopped by the web interface based on whether there are filters that have been defined to be autonomous. This script is also responsible for the automatic uploading of events to a 3rd party server.&lt;br /&gt;
&lt;br /&gt;
; zmaudit.pl : This script is used to check the consistency of the event file system and database. It can delete orphaned events, i.e. ones that appear in one location and not the other as well as checking that all the various event related tables are in line. It can be run interactively or in batch mode either from the command line or a cron job or similar. In the zmconfig.pl there is an option to specify fast event deletes where the web interface only deletes the event entry from the database itself. If this is set then it is this script that tidies up the rest.&lt;br /&gt;
&lt;br /&gt;
; zmwatch.pl : This is a simple script purely designed to keep an eye on the capture daemons and restart them if they lockup. It has been known for sync problems in the video drivers to cause this so this script makes sure that nothing important gets missed.&lt;br /&gt;
; zmupdate.pl : Currently this script is responsible for checking whether a new version of ZoneMinder is available and other miscellaneous actions related to upgrades and migrations. It is also intended to be a ‘one stop shop’ for any upgrades and will execute everything necessary to update your installation to a new version.&lt;br /&gt;
; zmvideo.pl : This script is used from the web interface to generate video files in various formats in a common way. You can also use it from the command line in certain circumstances but this is not usually necessary.&lt;br /&gt;
; zmx10.pl : This is an optional script that can be used to initiate and monitor X10 Home Automation style events and interface with an alarm system either by the generation of X10 signals on ZoneMinder events or by initiating ZoneMinder monitoring and capture on receipt of X10 signals from elsewhere, for instance the triggering of an X10 PIR. For example I have several cameras that don’t do motion detection until I arm my alarm system whereupon they switch to active mode when an X10 signal is generated by the alarm system and received by ZoneMinder.&lt;br /&gt;
; zmtrigger.pl : This is an optional script that is a more generic solution to external triggering of alarms. It can handle external connections via either internet socket, unix socket or file/device interfaces. You can either use it ‘as is’ if you can interface with the existing format, or override connections and channels to customise it to your needs. The format of triggers used by zmtrigger.pl is as follows &amp;quot;&amp;lt;id&amp;gt;|&amp;lt;action&amp;gt;|&amp;lt;score&amp;gt;|&amp;lt;cause&amp;gt;|&amp;lt;text&amp;gt;|&amp;lt;showtext&amp;gt;&amp;quot; where&lt;br /&gt;
:* &amp;#039;id&amp;#039; is the id number or name of the ZM monitor&lt;br /&gt;
:* &amp;#039;action&amp;#039; is &amp;#039;on&amp;#039;, &amp;#039;off&amp;#039;, &amp;#039;cancel&amp;#039; or ‘show’ where &amp;#039;on&amp;#039; forces an alarm condition on, &amp;#039;off&amp;#039; forces an alarm condition off and &amp;#039;cancel&amp;#039; negates the previous &amp;#039;on&amp;#039; or &amp;#039;off&amp;#039;. The ‘show’ action merely updates some auxiliary text which can optionally be displayed in the images captured by the monitor. Ordinarily you would use &amp;#039;on&amp;#039; and &amp;#039;cancel&amp;#039;, &amp;#039;off&amp;#039; would tend to be used to suppress motion based events. Additionally &amp;#039;on&amp;#039; and &amp;#039;off&amp;#039; can take an additional time offset, e.g. on+20 which automatically &amp;#039;cancel&amp;#039;s the previous action after that number of seconds.&lt;br /&gt;
:* &amp;#039;score&amp;#039; is the score given to the alarm, usually to indicate it&amp;#039;s importance. For &amp;#039;on&amp;#039; triggers it should be non-zero, otherwise it should be zero.&lt;br /&gt;
:* &amp;#039;cause&amp;#039; is a 32 char max string indicating the reason for, or source of the alarm e.g. &amp;#039;Relay 1 open&amp;#039;. This is saved in the ‘Cause’ field of the event. Ignored for &amp;#039;off&amp;#039; or &amp;#039;cancel&amp;#039; messages&lt;br /&gt;
:* &amp;#039;text&amp;#039; is a 256 char max additional info field, which is saved in the ‘Description’ field of an event. Ignored for &amp;#039;off&amp;#039; or &amp;#039;cancel&amp;#039; messages.&lt;br /&gt;
:* &amp;#039;showtext&amp;#039; is up to 32 characters of text that can be displayed in the timestamp that is added to images. The ‘show’ action is designed to update this text without affecting alarms but the text is updated, if present, for any of the actions. This is designed to allow external input to appear on the images captured, for instance temperature or personnel identity etc.&lt;br /&gt;
&lt;br /&gt;
: Note that multiple messages can be sent at once and should be LF or CRLF delimited. This script is not necessarily intended to be a solution in itself, but is intended to be used as ‘glue’ to help ZoneMinder interface with other systems. It will almost certainly require some customisation before you can make any use of it. If all you want to do is generate alarms from external sources then using the ZoneMinder::SharedMem perl module is likely to be easier.&lt;br /&gt;
&lt;br /&gt;
; zmcamtool.pl : This optional script is new for the upcoming 1.27 release of ZoneMinder. It is intended to make it easy to do the following: bring in new ptz controls and camera presets, convert existing monitors into presets, and export custom ptz controls and presets. For the initial release, this script is not integrated into the UI and must be called from the command line.  Type &amp;#039;&amp;#039;zmcamtool.pl --help&amp;#039;&amp;#039; from the command line to get an explanation of the different arguments one can pass to the script.&lt;br /&gt;
; zmcontrol-*.pl : These are a set of example scripts which can be used to control Pan/Tilt/Zoom class cameras. Each script converts a set of standard parameters used for camera control into the actual protocol commands sent to the camera. If you are using a camera control protocol that is not in the shipped list then you will have to create a similar script though it can be created entirely separately from ZoneMinder and does not need to named as these scripts are. Although the scripts are used to action commands originated from the web interface they can also be used directly or from other programs or scripts, for instance to implement periodic scanning to different presets.&lt;br /&gt;
; zmtrack.pl : This script is used to manage the experimental motion tracking feature. It is responsible for detecting that an alarm is taking place and moving the camera to point to the alarmed location, and then subsequently returning it to a defined standby location. As well as moving the camera it also controls when motion detection is suspended and restored so that the action of the camera tracking does not trigger endless further alarms which are not justified.&lt;br /&gt;
; zm : This is the (optional) ZoneMinder init script, see below for details.&lt;br /&gt;
&lt;br /&gt;
Finally, there are also a number of ZoneMinder perl modules included. These are used by the scripts above, but can also be used by your own or 3rd party scripts. Full documentation for most modules is available in ‘pod’ form via ‘perldoc’ but the general purpose of each module is as follows.&lt;br /&gt;
&lt;br /&gt;
; ZoneMinder.pm : This is a general ZoneMinder container module. It includes the Base.pm, Config.pm Debug.pm, Database.pm, and SharedMem.pm modules described below. It also exports all of their symbols by default. If you use the other modules directly you have request which symbol tags to import.&lt;br /&gt;
; ZoneMinder/Base.pm : This is the base ZoneMinder perl module. It contains only simple data such as version information. It is included by all other ZoneMinder perl modules&lt;br /&gt;
; ZoneMinder/Config.pm : This module imports the ZoneMinder configuration from the database.&lt;br /&gt;
; ZoneMinder/Debug. pm : This module contains the defined Debug and Error functions etc, that are used by scripts to produce diagnostic information in a standard format.&lt;br /&gt;
; ZoneMinder/Database.pm : This module contains database access definitions and functions. Currently not a lot is in this module but it is included as a placeholder for future development.&lt;br /&gt;
; ZoneMinder/SharedMem.pm : This module contains standard shared memory access functions. These can be used to access the current state of monitors etc as well as issuing commands to the monitors to switch things on and off. This module effectively provides a ZoneMinder API.&lt;br /&gt;
; ZoneMinder/ConfigAdmin.pm : This module is a specialised module that contains the definition, and other information, about the various configuration options. It is not intended for use by 3rd parties.&lt;br /&gt;
; ZoneMinder/Trigger/*.pm : These modules contain definitions of trigger channels and connections used by the zmtrigger.pl script. Although they can be used ‘as is’, they are really intended as examples that can be customised or specialised for different interfaces. Contributed modules for new channels or connections will be welcomed and included in future versions of ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
To build ZoneMinder from source, the first thing you need to do is run bootstrap.sh. This will create the configure script, which in turn must be executed to define some initial configuration. If you are happy with the default settings for the database host (‘localhost’), name (‘zm’), user (‘zmuser’) and password (‘zmpass’) then you can just type&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap.sh&lt;br /&gt;
 ./configure --with-webdir=&amp;lt;your web directory&amp;gt; --with-cgidir=&amp;lt;your cgi directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;&amp;#039;--with-webdir&amp;#039;&amp;#039;&amp;#039; is the directory to which you want to install the PHP files, and &amp;#039;&amp;#039;&amp;#039;--with-cgidir&amp;#039;&amp;#039;&amp;#039; is the directory to which you want to install CGI files. These directories could be &amp;#039;&amp;#039;&amp;#039;/var/www/html/zm&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;/var/www/cgi-bin&amp;#039;&amp;#039;&amp;#039; for example.&lt;br /&gt;
&lt;br /&gt;
If you want to override any of the default database values then you can append them to the configure command, for example to use a database password of ‘zmnewpass’ do&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=&amp;lt;your web directory&amp;gt; --with-cgidir=&amp;lt;your cgi directory&amp;gt; ZM_DB_PASS=zmnewpass&lt;br /&gt;
&lt;br /&gt;
and so on. The values you can use are ZM_DB_HOST, ZM_DB_NAME, ZM_DB_USER and ZM_DB_PASS. Other than the database name, which is substituted into the database creation script, these values can easily be changed after this step.&lt;br /&gt;
&lt;br /&gt;
If the script cannot find your MySQL installation, for instance if it is installed in an unusual location, then &amp;#039;&amp;#039;&amp;#039;--with-mysql&amp;#039;&amp;#039;&amp;#039; identifies the root directory where you have installed it, usually /usr.&lt;br /&gt;
&lt;br /&gt;
If you want to use real MPEG based streaming you will need to have built and installed the ffmpeg tools. You can then also use &amp;#039;&amp;#039;&amp;#039;--with-ffmpeg=&amp;lt;path to ffmpeg root&amp;gt;&amp;#039;&amp;#039;&amp;#039; to help configure find it if it’s not installed in a default location. Note, you have to make sure you have installed the ffmpeg headers and libraries (make installlib) as well as the binaries (make install), or a development package with them in.&lt;br /&gt;
&lt;br /&gt;
If you have built ffmpeg with any additional options which require extra libraries in the link stage then you can use --with-extralibs to pass these libraries to the configure script, to prevent unresolved dependencies. Otherwise ignore this option.&lt;br /&gt;
&lt;br /&gt;
If you are on a 64 bit system you may find that the &amp;#039;&amp;#039;&amp;#039;--with-libarch&amp;#039;&amp;#039;&amp;#039; option helps you correctly define your library paths.&lt;br /&gt;
&lt;br /&gt;
There are also two further parameters you can add if your web user and group are not both &amp;#039;apache&amp;#039;. These are &amp;#039;&amp;#039;&amp;#039;--with-webuser&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;--with-webgroup&amp;#039;&amp;#039;&amp;#039; which you would normally change to be your system httpd daemon owner. Alternatively you should be able to create a &amp;#039;zoneminder&amp;#039; system user, assign that user to your httpd daemon group and then use use &amp;#039;zoneminder&amp;#039; as the webuser instead of apache or whatever your system uses. This has the additional benefit of partitioning security somewhat and not opening up full access to all web user files in the event of a security breach.&lt;br /&gt;
&lt;br /&gt;
This is also when you have the opportunity to pass any additional flags to the compiler to modify how the application is built. To do this append &amp;#039;&amp;#039;&amp;#039;CFLAGS=&amp;quot;&amp;lt;options&amp;gt;&amp;quot;&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;CXXFLAGS=&amp;quot;&amp;lt;options&amp;gt;&amp;quot;&amp;#039;&amp;#039;&amp;#039; to pass in compiler flags for &amp;#039;c&amp;#039; and &amp;#039;c++&amp;#039; compilation respectively. For instance the default compiler flags are usually --O2 and --g to create binaries with moderate optimisation and debugging symbols. If you wanted to optimise further, including processor specific tweaks but still keep debugging symbols then could use &amp;#039;&amp;#039;&amp;#039;CFLAGS=&amp;quot;-g -O3 -march=pentium4&amp;quot;&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;CXXFLAGS=&amp;quot;-g -O3 -march=pentium4&amp;quot;&amp;#039;&amp;#039;&amp;#039; for instance. Consult the gcc/g++ documentation for help on these and other options. Also be aware that even if you optimise your ZoneMinder build, any libraries that get linked in will only perform as well as the options used when they were built allows. Thus to get full benefit you would usually need to rebuild libjpeg.a and/or other libraries with similar options.&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
 ./configure --help&lt;br /&gt;
&lt;br /&gt;
for details on these, and other, options.&lt;br /&gt;
&lt;br /&gt;
Now you can just type &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; to do the build. The first time you run this you may get a warning about a Makefile being rebuilt in the scripts directory, and make will terminate. This is normal and you can just rerun make to complete the build.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
Installation via the traditional build-from-source method is discouraged. The current development team, along with other volunteers, have made great strides in developing better methods to get ZoneMinder installed on your distro.&lt;br /&gt;
&lt;br /&gt;
Please navigate to the [https://github.com/ZoneMinder/ZoneMinder ZoneMinder github site] and review the Readme (scroll down) for the most current installation documentation.&lt;br /&gt;
&lt;br /&gt;
===Installation from Source===&lt;br /&gt;
This method has been depreciated, but is still useful as a reference.&lt;br /&gt;
&lt;br /&gt;
For a new installation the next thing you will need to do is create your database and database users. So type the commands as follows when in the folder of the extracted zm files,&lt;br /&gt;
&lt;br /&gt;
Create the ZoneMinder database &amp;#039;zm&amp;#039; and populate it with the tables for ZoneMinder:&lt;br /&gt;
&lt;br /&gt;
 $ mysql&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
 mysql&amp;gt; exit;&lt;br /&gt;
 $ mysql zm &amp;lt; db/zm_create.sql   &amp;lt;This file doesn&amp;#039;t exist until after &amp;#039;make&amp;#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, create a MySQL user account for ZoneMinder:&lt;br /&gt;
 $ mysql zm&lt;br /&gt;
 mysql&amp;gt; grant select,insert,update,delete,lock tables,alter on zm.* 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;
 mysql&amp;gt; quit;&lt;br /&gt;
 $ mysqladmin reload&lt;br /&gt;
&lt;br /&gt;
You may need to supply a username and password to the mysql commands in the first place to give yourself sufficient privileges to perform the required commands. To do that it&amp;#039;s something like:&lt;br /&gt;
mysql -uroot -p&amp;lt;root database password&amp;gt; zm.&lt;br /&gt;
&lt;br /&gt;
If you want to host your database on a different machine than that which ZoneMinder is running on then you will need to perform this step on the remote machine and reference the ZoneMinder machine instead of localhost. If you are running remote databases you probably already know all this, if you are not then don’t worry about it!&lt;br /&gt;
&lt;br /&gt;
At this stage typing&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
will install everything to the desired locations, you may need to su to root first though to give yourself adequate permissions. The installation routine will copy the binaries and scripts to your chosen install location, usually /usr/local/bin and then move zms (and nph-zms) to your cgi-bin area. It will then copy the web files to your chosen directory and ensure they have the right permissions, and install the ZoneMinder perl modules in the standard perl locations. It will also install a copy of the zm.conf file (generated by configure) to your system configuration area (e.g. /usr/local/etc). Finally it tries to link zm.php to index.php but will not overwrite an existing file if it already exists.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;zm&amp;#039; script does not get installed automatically as it is not necessary for the operation of the ZoneMinder setup per se and is not necessarily likely to work correctly for distributions other than those from the RedHat or Fedora families. However if you want to ensure that ZoneMinder is started on reboot etc copy it to your init.d directory, usually something like /etc/rc.d/init.d or /etc/inid.d and then add it by doing&lt;br /&gt;
&lt;br /&gt;
 chkconfig --add zm&lt;br /&gt;
&lt;br /&gt;
or similar command for your distribution. ZoneMinder will then start up when your machine reboots and can be controlled (by the root user) by doing &amp;#039;service zm start&amp;#039; or &amp;#039;service zm stop&amp;#039; etc. You may need to use the ‘—levels’ parameter to chkconfig to ensure that ZoneMinder is started when you need it to.&lt;br /&gt;
&lt;br /&gt;
If you do this you should find that you have files named S99zm in some of the /etc/rcX.d directories and K99zm in some of the others. The S99zm files are used for starting up ZoneMinder on system boot and the K99zm ones are used to close it on system shutdown. The 99 part is a priority, which may run from 0 to 99 and indicates where in the startup and shutdown sequences that ZoneMinder should start or stop. So S99zm means that ZoneMinder should be one of the last things to startup, which is good as it needs things like the database to be running first.&lt;br /&gt;
&lt;br /&gt;
By the same token, the K00zm scripts indicate that ZoneMinder should be one of the first things to shut down. This prevents any nasty messages on your console about the database having gone away first and also will give ZoneMinder chance to shutdown in a controlled manner without introducing any corruption into the database or filesystem.&lt;br /&gt;
&lt;br /&gt;
As mentioned above, this script is for Redhat, and related, distributions only. I would be grateful for any similar scripts for other distributions so if you know of one, or create one, then please send it to me.&lt;br /&gt;
&lt;br /&gt;
If you are running a distribution which doesn’t support the zm script, or if you just prefer more direct control, you can now start ZoneMinder by typing&lt;br /&gt;
&lt;br /&gt;
 zmpkg.pl start&lt;br /&gt;
&lt;br /&gt;
which, after a few seconds, should return without error. You can subsequently stop and restart everything by changing the ‘start’ parameter to ‘stop’ or ‘restart’.&lt;br /&gt;
&lt;br /&gt;
Now fire up your web browser, point it at your zm.php and off you go.&lt;br /&gt;
&lt;br /&gt;
Note, if you ever need to uninstall ZoneMinder you can do this by simply typing&lt;br /&gt;
&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
though as with installation you may need to change user to have sufficient privileges. This will remove all installed files, however you will need to manually remove any databases you have created.&lt;br /&gt;
&lt;br /&gt;
===Installation from RPM===&lt;br /&gt;
Please navigate to the [https://github.com/ZoneMinder/ZoneMinder ZoneMinder github site] and review the Readme (scroll down) for the most current installation documentation.&lt;br /&gt;
&lt;br /&gt;
The following is outdated, but may still be useful.&lt;br /&gt;
&lt;br /&gt;
Installing from RPM is distribution specific so make sure you download the correct RPM for the distribution that you are using.&lt;br /&gt;
&lt;br /&gt;
All documents including this README are installed to the systems default document folder.&lt;br /&gt;
&lt;br /&gt;
 Fedora: &amp;#039;&amp;#039;/usr/share/doc/zoneminder-{version number}&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Mandrake:&lt;br /&gt;
&lt;br /&gt;
The packaged version of Zone Minder installs all binarys to /usr/lib/zm including the web pages. So don’t worry when you do not see any files installed to the root directory for your web server. The web pages for Apache are aliased by zoneminder.conf in the apache/conf.d directory which vary depending on your distribution:&lt;br /&gt;
&lt;br /&gt;
 Fedora: /etc/httpd/conf.d/zoneminder.conf&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Mandrake:&lt;br /&gt;
&lt;br /&gt;
The Configuration file for setting up the database is located at /etc/zm.conf and will need to be edited to add the user and password that you want Zone Minder to use. After you have installed the Zone Minder package this will be the first thing you want to do. So use your favourite editor and add in the user name and password you want Zone Minder to use. You can also change the database name if you would like.&lt;br /&gt;
&lt;br /&gt;
 vi /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Start the mysqld service so you can build the database&lt;br /&gt;
&lt;br /&gt;
 service mysqld start&lt;br /&gt;
&lt;br /&gt;
Then run zminit to create the database (see discussion page if the command is not found)&lt;br /&gt;
&lt;br /&gt;
 /usr/lib/zm/bin/zminit&lt;br /&gt;
&lt;br /&gt;
The user and password that zminit asks for are for the database only. For the user enter root and leave the password blank (unless of course you changed the password). You should see some information showing that it has created the database and no errors.&lt;br /&gt;
&lt;br /&gt;
Set the run levels for the services that Zone Minder requires. I like to set the run levels to 3 and 5 with the following command:&lt;br /&gt;
&lt;br /&gt;
 chkconfig –levels 35 mysqld on&lt;br /&gt;
 chkconfig –levels 35 httpd on&lt;br /&gt;
&lt;br /&gt;
Now start the web server and Zone Minder:&lt;br /&gt;
&lt;br /&gt;
 service httpd start&lt;br /&gt;
 service zm start          ; for source code distribtuions&lt;br /&gt;
 service zoneminder start  ; for debian&lt;br /&gt;
&lt;br /&gt;
You should now be able to access the Zone Minder console through the web browser http://localhost/zm&lt;br /&gt;
&lt;br /&gt;
Log files will be located in /var/log/zm&lt;br /&gt;
&lt;br /&gt;
Events are located at /var/lib/zm&lt;br /&gt;
&lt;br /&gt;
===Installation from a .deb===&lt;br /&gt;
Please navigate to the [https://github.com/ZoneMinder/ZoneMinder ZoneMinder github site] and review the Readme (scroll down) for the most current installation documentation.&lt;br /&gt;
&lt;br /&gt;
The following is outdated, but may still be useful.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder is now in the Debian repositories.  There are downloadable .deb files for Ubuntu for Edgy and Feisty.  At this point it is in the repository for Gutsy.  After you install, you will need to do some additional work, which is documented in the readme file included in the package.  These steps have worked for several people as of the end of Summer 07.&lt;br /&gt;
&lt;br /&gt;
Link Apache&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 sudo apache2ctl restart&lt;br /&gt;
&lt;br /&gt;
suid zmfix&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 4755 /usr/bin/zmfix&lt;br /&gt;
&lt;br /&gt;
Run zmfix&lt;br /&gt;
&lt;br /&gt;
 zmfix -a&lt;br /&gt;
&lt;br /&gt;
Fix export problem&lt;br /&gt;
&lt;br /&gt;
 sudo chown www-data.www-data /usr/share/zoneminder/temp&lt;br /&gt;
&lt;br /&gt;
edit /etc/sysctl.conf and add the following lines (for 128meg shared mem)&lt;br /&gt;
&lt;br /&gt;
 kernel.shmmax = 134217728&lt;br /&gt;
&lt;br /&gt;
Download cambozola.jar and put it in /usr/share/zoneminder&lt;br /&gt;
Enable in options-&amp;gt;Images.&lt;br /&gt;
&lt;br /&gt;
Set path to ffmpeg in options -&amp;gt; Images&lt;br /&gt;
/usr/bin/ffmpeg&lt;br /&gt;
&lt;br /&gt;
test with &amp;#039;&amp;#039;&amp;#039;xawtv&amp;#039;&amp;#039;&amp;#039; (-nodga may be needed)&lt;br /&gt;
&lt;br /&gt;
===Configuring SELinux Policy===&lt;br /&gt;
It has been a constant struggle to maintain an SELinux policy compatible with ZoneMinder. Generally, we recommend you disable SELinux, but if you wish to leave it enabled the most recent SELinux policy files can be found on the [https://github.com/ZoneMinder/ZoneMinder ZoneMinder github site] under the distros subfolder.&lt;br /&gt;
&lt;br /&gt;
What follows is outdated information, which may be deleted if verified it is no longer useful.&lt;br /&gt;
&lt;br /&gt;
To allow zoneminder access attributes on selinux enabled systems you have to create a new policy. Note, that ZoneMinder will run with no issues on a system where SELinux has been disabled.&lt;br /&gt;
First create a file named local_zoneminder.te (can be any name you want but if you use a name of a policy that already exists it will be overwritten).&lt;br /&gt;
&lt;br /&gt;
 module local_zoneminder 1.0; &lt;br /&gt;
 &lt;br /&gt;
 require { &lt;br /&gt;
                type httpd_t;&lt;br /&gt;
                type initrc_var_run_t;&lt;br /&gt;
                type initrc_t;&lt;br /&gt;
                type v4l_device_t;&lt;br /&gt;
                type file_t;&lt;br /&gt;
               class unix_stream_socket { read connectto };&lt;br /&gt;
               class file { read lock };&lt;br /&gt;
               class shm { unix_read unix_write associate read write getattr };&lt;br /&gt;
               class chr_file getattr;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 #============= httpd_t ============== &lt;br /&gt;
 allow httpd_t initrc_t:unix_stream_socket connectto;&lt;br /&gt;
 allow httpd_t initrc_t:shm { unix_read unix_write associate read write getattr };&lt;br /&gt;
 allow httpd_t initrc_var_run_t:file { read lock };&lt;br /&gt;
 allow httpd_t v4l_device_t:chr_file getattr;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next execute the following commands to create and load the policy module:&lt;br /&gt;
&lt;br /&gt;
 checkmodule -M -m -o local_zoneminder.mod local_zoneminder.te &lt;br /&gt;
 semodule_package -o local_zoneminder.pp -m local_zoneminder.mod &lt;br /&gt;
 semodule -i local_zoneminder.pp&lt;br /&gt;
&lt;br /&gt;
*NOTE: this policy module actually gives the httpd user in general permission to do more actions; this is still better than disabling selinux though.&lt;br /&gt;
&lt;br /&gt;
==Upgrading==&lt;br /&gt;
===Upgrading from Source===&lt;br /&gt;
If you are upgrading from a previous version of ZoneMinder you should follow the Building instructions above. Before proceeding, ensure that any previous version of ZoneMinder has been stopped, then type&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
to install the binaries, scripts, modules, web and configuration files.&lt;br /&gt;
&lt;br /&gt;
The next step in an upgrade is to run the zmupdate.pl script to make any changes to the database or file system required by the new version. Ordinarily you can run this from your ZoneMinder build directory by doing&lt;br /&gt;
&lt;br /&gt;
 zmupdate.pl --version=&amp;lt;from version&amp;gt; [--user=&amp;lt;database user&amp;gt; --pass=&amp;lt;database password&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
where ‘from version’ relates to the version of ZM you are upgrading from, 1.21.1 for example, and not the version you are upgrading to. All updates from that version onwards will be applied; however zmupdate.pl will only work with upgrades from 1.19.0 onwards. The ‘user’ and ‘pass’ options allow you to specify a database user and password with sufficient privilege to ‘alter’ the structure of the database. This is not necessarily the database user you use for ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
The update script will offer you the chance to make a database backup before making any changes. You can use this to restore your database if the upgrade fails or if you simply wish to roll back in the future. Be aware that if you have a lot of entries in your database and/or limited disk space doing a backup may not be feasible or even work. Also the backup only applies to the database and will not save any images or other event detail saved on disk. If successful the backup will be saved in the current directory and will be named &amp;lt;database name&amp;gt;-&amp;lt;from version&amp;gt;.dump. Any previous backups of the same name will be overwritten without warning. The backup file is in the form of a simple sql script and can be used to restore the database simply by typing&lt;br /&gt;
 &lt;br /&gt;
 mysql &amp;lt; zm-1.21.4.dump&lt;br /&gt;
&lt;br /&gt;
for example.&lt;br /&gt;
&lt;br /&gt;
After having done any backup, the database upgrade will be applied. Check that this is successful before continuing.&lt;br /&gt;
&lt;br /&gt;
Once the upgrade process is complete, you can then restart ZoneMinder using the zmpkg.pl script or using the service control commands for your distribution. You should check /var/log/messages and the other ZoneMinder logs for the first few minutes to ensure that everything comes back up successfully.&lt;br /&gt;
&lt;br /&gt;
==Tutorial==&lt;br /&gt;
Once configured, the ZoneMinder console appears through a web browser at [http://localhost/zm/ http://localhost/zm/]&lt;br /&gt;
&lt;br /&gt;
Along the top there are several informational entries like the time of the last update and the current server load. There will also be an indication of the system state which will probably say ‘stopped’ to begin with. This is a link that you can click on to control the ZoneMinder system as a whole.&lt;br /&gt;
&lt;br /&gt;
Below that are various other links including one detailing the current user (in authenticated mode only) and one allowing you to configure your bandwidth. This last one enables you to optimize your settings depending on where you are, the actual values relating to this are defined in the options. If you are using a browser on the same machine or network then choose high, over a cable or DSL link maybe choose medium and over a dialup choose low. You can experiment to see which is best. This setting is retained on a per machine basis with a persistent cookie. Also on this line are a number of other links that will be covered below.&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that from here on the descriptions of the web pages are based on what you will see if you are running as a fully authenticated user. If you are running in un-authenticated mode or as a less privileged user then some elements may not be shown or will be disabled. Authentication is an option that lets you specify whether anyone that goes to the ZoneMinder web pages must log themselves in, in order to be given permissions to perform certain tasks. Running in authenticated mode is recommended if your system is open to the internet at all. During installation a fully privileged user ‘admin’ has been created with a password also of ‘admin’. If you are using authentication you should change this password as soon as possible. Authenticated mode is enabled by checking the box &amp;quot;OPT_USE_AUTH&amp;quot; in the &amp;quot;System&amp;quot; tab of the [http://www.zoneminder.com/wiki/index.php/Main_Documentation#Options_and_Users Options and Users] area.&lt;br /&gt;
&lt;br /&gt;
===Check that your Camera Works!===&lt;br /&gt;
&lt;br /&gt;
To help you get started on the video configuration the best thing is to check your camera with a tool like &amp;#039;&amp;#039;&amp;#039;gucview&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;cheese&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;xawtv&amp;#039;&amp;#039;&amp;#039; (http://bytesex.org/xawtv/). Please note that just because you can see a video stream in these tools does not necessarily guarantee that your camera will work with ZoneMinder. This is because most tools just ‘map’ the video image through onto screen memory transparently without intercepting it, whereas ZoneMinder needs to capture the image and, usually, inspect it. This is called frame grabbing and to check it you should use the facility in xawtv, or other tool, to capture either one or more still images or possibly a movie. If this works and the images or movie are not garbage then the chances are that ZoneMinder will work fine also.&lt;br /&gt;
&lt;br /&gt;
Once you have validated your camera run &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039; to get a dump of the settings (note, you will have to additionally supply a username and password to zmu if you are running in authenticated mode). You can then enter these values into the video related options of the monitor configuration panel. The &amp;#039;&amp;lt;device_path&amp;gt;&amp;#039; referred to here is the path to your video device file, for instance /dev/video0 etc. If &amp;#039;zmu&amp;#039; gives you an error related to permissions run &amp;#039;&amp;#039;&amp;#039;zmfix -a&amp;#039;&amp;#039;&amp;#039; to make sure you can access all the video devices.&lt;br /&gt;
&lt;br /&gt;
===Start ZoneMinder===&lt;br /&gt;
&lt;br /&gt;
Zoneminder requires a web server and a background task:&lt;br /&gt;
&lt;br /&gt;
  service httpd start&lt;br /&gt;
  service zoneminder start&lt;br /&gt;
&lt;br /&gt;
Zoneminder captures video from the web server process (e.g. www-data or apache2), so that process must have access to any files or resources necessary.&lt;br /&gt;
&lt;br /&gt;
===Defining Monitors===&lt;br /&gt;
&lt;br /&gt;
To use ZoneMinder properly you need to define at least one Monitor. Essentially, a monitor is associated with a camera and can continually check it for motion detection and such like. So, next click &amp;#039;Add New Monitor&amp;#039; to bring up the dialog. You will see a bunch of things you have to fill in.&lt;br /&gt;
&lt;br /&gt;
[[Image:ZM_MPEG4_A211A_5.png]]&lt;br /&gt;
&lt;br /&gt;
There are a small number of camera setups that ZoneMinder knows about and which can be accessed by clicking on the ‘Presets’ link. Selecting one of the presets will fill in the monitor configuration with appropriate values but you will still need to enter others and confirm the preset settings.&lt;br /&gt;
&lt;br /&gt;
The options are divided into a set of tabs to make it easier to edit. You do not have to ‘save’ to change to different tab so you can make all the changes you require and then click ‘Save’ at the end. The individual options are explained in a little more detail below,&lt;br /&gt;
&lt;br /&gt;
====Monitor Tab====&lt;br /&gt;
&lt;br /&gt;
; Name : The name for your monitor. This should be made up of alphanumeric characters (a-z,A-Z,0-9) and hyphen (-) and underscore(_) only. Whitespace is not allowed.&lt;br /&gt;
&lt;br /&gt;
; Source Type : This determines whether the camera is a local one attached to a physical video or USB port on your machine, a remote network camera or an image source that is represented by a file (for instance periodically downloaded from a alternate location). Choosing one or the other affects which set of options are shown in the Source tab.&lt;br /&gt;
&lt;br /&gt;
; Function : This essentially defines what the monitor is doing. This can be one of the following;&lt;br /&gt;
&lt;br /&gt;
:* None – The monitor is currently disabled.  No streams can be viewed or events generated.  Nothing is recorded.&lt;br /&gt;
:* Monitor – The monitor is only available for live streaming.  No image analysis is done so no alarms or events will be generated, and nothing will be recorded.&lt;br /&gt;
:* Modect – or MOtion DEteCTtion. All captured images will be analysed and events generated with recorded video where motion is detected.&lt;br /&gt;
:* Record – The monitor will be continuously recorded.  Events of a fixed-length will be generated regardless of motion, analogous to a conventional time-lapse video recorder. No motion detection takes place in this mode.&lt;br /&gt;
:* Mocord – The monitor will be continuously recorded, with any motion being highlighted within those events.&lt;br /&gt;
:* Nodect – or No DEteCTtion. This is a special mode designed to be used with external triggers. In Nodect no motion detection takes place but events are recorded if external triggers require it.&lt;br /&gt;
&lt;br /&gt;
:Generally speaking it is best to choose ‘Monitor’ as an initial setting here.&lt;br /&gt;
&lt;br /&gt;
; Enabled : The enabled field indicates whether the monitor should be started in an active mode or in a more passive state. You will nearly always want to check this box, the only exceptions being when you want the camera to be enabled or disabled by external triggers or scripts. If not enabled then the monitor will not create any events in response to motion or any other triggers.&lt;br /&gt;
&lt;br /&gt;
; Linked Monitors : This field allows you to select other monitors on your system that act as triggers for this monitor. So if you have a camera covering one aspect of your property you can force all cameras to record while that camera detects motion or other events. You can either directly enter a comma separated list of monitor ids or click on ‘Select’ to choose a selection. Be very careful not to create circular dependencies with this feature however you will have infinitely persisting alarms which is almost certainly not what you want! To unlink monitors you can ctrl-click.&lt;br /&gt;
&lt;br /&gt;
;Maximum FPS : On some occasions you may have one or more cameras capable of high capture rates but find that you generally do not require this performance at all times and would prefer to lighten the load on your server. This option permits you to limit the maximum capture rate to a specified value. This may allow you to have more cameras supported on your system by reducing the CPU load or to allocate video bandwidth unevenly between cameras sharing the same video device. This value is only a rough guide and the lower the value you set the less close the actual FPS may approach it especially on shared devices where it can be difficult to synchronise two or more different capture rates precisely. This option controls the maximum FPS in the circumstance where no alarm is occurring only. (Note for IP cameras: ZoneMinder has no way to set or limit the &amp;#039;&amp;#039;mjpeg&amp;#039;&amp;#039; stream the camera passes, some cams you can set this through the url string, others do not. So if you&amp;#039;re using &amp;#039;&amp;#039;mjpeg&amp;#039;&amp;#039; feeds you must NOT throttle here at the server end, only the cam end. If you want to use this feature, the server to throttle, then you MUST use &amp;#039;&amp;#039;jpeg&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;mjpeg&amp;#039;&amp;#039; method to get picture from the camera)&lt;br /&gt;
&lt;br /&gt;
; Alarm Maximum FPS : If you have specified a Maximum FPS it may be that you don’t want this limitation to apply when your monitor is recording motion or other event. This setting allows you to override the Maximum FPS value if this circumstance occurs. As with the Maximum FPS setting leaving this blank implies no limit so if you have set a maximum fps in the previous option then when an alarm occurs this limit would be ignored and ZoneMinder would capture as fast as possible for the duration of the alarm, returning to the limited value after the alarm has concluded. Equally you could set this to the same, or higher (or even lower) value than Maximum FPS for more precise control over the capture rate in the event of an alarm.&lt;br /&gt;
&lt;br /&gt;
; Reference Image Blend %ge : Each analysed image in ZoneMinder is a composite of previous images and is formed by applying the current image as a certain percentage of the previous reference image. Thus, if we entered the value of 10 here, each image’s part in the reference image will diminish by a factor of 0.9 each time round. So a typical reference image will be 10% the previous image, 9% the one before that and then 8.1%, 7.2%, 6.5% and so on of the rest of the way. An image will effectively vanish around 25 images later than when it was added. This blend value is what is specified here and if higher will make slower progressing events less detectable as the reference image would change more quickly. Similarly events will be deemed to be over much sooner as the reference image adapts to the new images more quickly. In signal processing terms the higher this value the steeper the event attack and decay of the signal. It depends on your particular requirements what the appropriate value would be for you but start with 10 here and adjust it (usually down) later if necessary.&lt;br /&gt;
&lt;br /&gt;
; Triggers : This small section lets you select which triggers will apply if the run mode has been set to ‘triggered’ above. The most common trigger is X10 and this will appear here if you indicated that your system supported it during installation. Only X10 is supported as a shipped trigger with ZoneMinder at present but it is possible that other triggers will become available as necessary. You can also just use ‘cron’ jobs or other mechanisms to actually control the camera and keep them completely outside of the ZoneMinder settings. The zmtrigger.pl script is also available to implement custom external triggering.&lt;br /&gt;
&lt;br /&gt;
====Source Tab (local device)====&lt;br /&gt;
&lt;br /&gt;
; Device Path/Channel : Enter the full path to the device file that your camera is attached to, e.g. /dev/video0. Some video devices, e.g. BTTV cards support multiple cameras on one device so in this case enter the channel number in the Channel box or leave it at zero if you&amp;#039;re using a USB camera or one with just one channel. Look in [http://www.zoneminder.com/wiki/index.php/Supported_hardware Supported Hardware] section, how to see if your capture card or USB webcam is supported or not, and what extra settings you may have to do, to make it work.&lt;br /&gt;
; Device Format : Enter the video format of the video stream. This is defined in various system files (e.g. /usr/include/linux/videodev.h) but the two most common are 0 for PAL and 1 for NTSC.&lt;br /&gt;
; Capture Palette : Finally for the video part of the configuration enter the colour depth. ZoneMinder supports a handful of the most common palettes, so choose one here. If in doubt try grey first, and then 24 bit colour. If neither of these work very well then YUV420P or one of the others probably will. There is a slight performance penalty when using palettes other than grey or 24 bit colour as an internal conversion is involved. These other formats are intended to be supported natively in a future version but for now if you have the choice choose one of grey or 24 bit colour.&lt;br /&gt;
; Capture Width/Height : The dimensions of the video stream your camera will supply. If your camera supports several just enter the one you&amp;#039;ll want to use for this application, you can always change it later. However I would recommend starting with no larger than 320x240 or 384x288 and then perhaps increasing and seeing how performance is affected. This size should be adequate in most cases. Some cameras are quite choosy about the sizes you can use here so unusual sizes such as 197x333 should be avoided initially.&lt;br /&gt;
; Keep aspect ratio: When typing in the dimensions of monitors you can click this checkbox to ensure that the width stays in the correct ratio to the height, or vice versa. It allows height to be calculated automatically from width (or vice versa) according to preset aspect ratio. This is preset to 4:3 but can be amended globally via the Options-&amp;gt;Config-&amp;gt;ZM_DEFAULT_ASPECT_RATIO setting. Aside from 4:3 which is the usual for network and analog cameras another common setting is 11:9 for CIF (352x288) based sources.&lt;br /&gt;
; Orientation : If your camera is mounted upside down or at right angles you can use this field to specify a rotation that is applied to the image as it is captured. This incurs an additional processing overhead so if possible it is better to mount your camera the right way round if you can. If you choose one of the rotation options remember to switch the height and width fields so that they apply, e.g. if your camera captures at 352x288 and you choose ‘Rotate Right’ here then set the height to be 352 and width to be 288. You can also choose to ‘flip’ the image if your camera provides mirrored input.&lt;br /&gt;
&lt;br /&gt;
====Source Tab (remote device)====&lt;br /&gt;
&lt;br /&gt;
; Remote Host/Port/Path : Use these fields to enter the full URL of the camera. Basically if your camera is at &amp;lt;nowiki&amp;gt;http://camserver.home.net:8192/cameras/camera1.jpg&amp;lt;/nowiki&amp;gt; then these fields will be &amp;#039;&amp;#039;camserver.home.net&amp;#039;&amp;#039;, &amp;#039;&amp;#039;8192&amp;#039;&amp;#039; and &amp;#039;&amp;#039;/cameras/camera1.jpg&amp;#039;&amp;#039; respectively. Leave the port at 80 if there is no special port required. If you require authentication to access your camera then add this onto the host name in the form &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;hostname&amp;gt;.com. This will usually be 24 bit colour even if the image looks black and white. Look in [http://www.zoneminder.com/wiki/index.php/Supported_hardware Supported Hardware] &amp;gt; Network Cameras section, how to obtain these strings that may apply to your camera.&lt;br /&gt;
; Remote Image Colours : Specify the amount of colours in the captured image. Unlike with local cameras changing this has no controlling effect on the remote camera itself so ensure that your camera is actually capturing to this palette beforehand.&lt;br /&gt;
; Capture Width/Height : Make sure you enter here the same values as they are in the remote camera&amp;#039;s internal setting.&lt;br /&gt;
; Keep aspect ratio: As per local devices.&lt;br /&gt;
; Orientation : As per local devices.&lt;br /&gt;
&lt;br /&gt;
For an example to setup a MPEG-4 camera see: &lt;br /&gt;
[[How_to_Setup_an_Axis211A_with_MPEG-4_streaming]]&lt;br /&gt;
&lt;br /&gt;
====Source Tab (ffmpeg)====&lt;br /&gt;
&lt;br /&gt;
; Source Path : Use this field to enter the full URL of the stream or file.  Look in [http://www.zoneminder.com/wiki/index.php/Supported_hardware Supported Hardware] &amp;gt; Network Cameras section, how to obtain these strings that may apply to your camera.  RTSP streams may be specified here.&lt;br /&gt;
; Source Colours : Specify the amount of colours in the captured image. Unlike with local cameras changing this has no controlling effect on the remote camera itself so ensure that your camera is actually capturing to this palette beforehand.&lt;br /&gt;
; Capture Width/Height : Make sure you enter here the same values as they are in the remote camera&amp;#039;s internal setting.&lt;br /&gt;
; Keep aspect ratio: As per local devices.&lt;br /&gt;
; Orientation : As per local devices.&lt;br /&gt;
&lt;br /&gt;
====Source Tab (file device)====&lt;br /&gt;
&lt;br /&gt;
; File Path : Enter the full path to the file to be used as the image source.&lt;br /&gt;
; File Colours : Specify the amount of colours in the image. Usually 24 bit colour.&lt;br /&gt;
; Capture Width/Height: As per local devices.&lt;br /&gt;
; Keep aspect ratio: As per local devices.&lt;br /&gt;
; Orientation : As per local devices.&lt;br /&gt;
&lt;br /&gt;
====Timestamp Tab====&lt;br /&gt;
&lt;br /&gt;
; Timestamp Label Format : This relates to the timestamp that is applied to each frame. It is a ‘strftime’ style string with a few extra tokens. You can add %f to add the decimal hundredths of a second to the frame timestamp, so %H:%M:%S.%f will output time like 10:45:37.45. You can also use %N for the name of the monitor and %Qwhich will be filled by any of the ‘show text’ detailed in the zmtriggers.pl section.&lt;br /&gt;
; Timestamp Label X/Y : The X and Y values determine where to put the timestamp. A value of 0 for the X value will put it on the left side of the image and a Y value of 0 will place it at the top of the image. To place the timestamp at the bottom of the image use a value eight less than the image height.&lt;br /&gt;
&lt;br /&gt;
====Buffers Tab====&lt;br /&gt;
&lt;br /&gt;
; Image Buffer Size : This option determines how many frames are held in the ring buffer at any one time. The ring buffer is the storage space where the last ‘n’ images are kept, ready to be resurrected on an alarm or just kept waiting to be analysed. It can be any value you like with a couple of provisos, (see next options). However it is stored in shared memory and making it too large especially for large images with a high colour depth can use a lot of memory. A value of no more than 50  is usually ok. If you find that your system will not let you use the value you want it is probably because your system has an arbitrary limit on the size of shared memory that may be used even though you may have plenty of free memory available. This limit is usually fairly easy to change, see the Troubleshooting section for details.&lt;br /&gt;
; Warm-up Frames : This specifies how many frames the analysis daemon should process but not examine when it starts. This allows it to generate an accurate reference image from a series of images before looking too carefully for any changes. I use a value of 25 here, too high and it will take a long time to start, too low and you will get false alarms when the analysis daemon starts up.&lt;br /&gt;
; Pre/Post Event Image Buffer : These options determine how many frames from before and after an event should be preserved with it. This allows you to view what happened immediately prior and subsequent to the event. A value of 10 for both of these will get you started but if you get a lot of short events and would prefer them to run together to form fewer longer ones then increase the Post Event buffer size. The pre-event buffer is a true buffer and should not really exceed half the ring buffer size. However the post-event buffer is just a count that is applied to captured frames and so can be managed more flexibly. You should also bear in mind the frame rate of the camera when choosing these values. For instance a network camera capturing at 1FPS will give you 10 seconds before and after each event if you chose 10 here. This may well be too much and pad out events more than necessary. However a fast video card may capture at 25FPS and you will want to ensure that this setting enables you to view a reasonable time frame pre and post event.&lt;br /&gt;
; Stream Replay Image Buffer: This option ...&lt;br /&gt;
; Alarm Frame Count : This option allows you to specify how many consecutive alarm frames must occur before an alarm event is generated. The usual, and default, value is 1 which implies that any alarm frame will cause or participate in an event. You can enter any value up to 16 here to eliminate bogus events caused perhaps by screen flickers or other transients. Values over 3 or 4 are unlikely to be useful however. Please note that if you have statistics recording enabled then currently statistics are not recorded for the first ‘Alarm Frame Count’-1 frames of an event. So if you set this value to 5 then the first 4 frames will be missing statistics whereas the more usual value of 1 will ensure that all alarm frames have statistics recorded.&lt;br /&gt;
&lt;br /&gt;
====Control Tab====&lt;br /&gt;
&lt;br /&gt;
Note: This tab and its options will only appear if you have selected the ZM_OPT_CONTROL option to indicate that your system contains cameras which are able to be controlled via Pan/Tilt/Zoom or other mechanisms. See the Camera Control section elsewhere in this document for further details on camera control protocols and methods.&lt;br /&gt;
&lt;br /&gt;
; Controllable : Check this box to indicate your camera can be controlled.&lt;br /&gt;
; Control Type : Select the control type that is appropriate for your camera. ZoneMinder ships with a small number of predefined control protocols which will works with some cameras without modification but which may have to amended to function with others, Choose the edit link to create new control types or to edit the existing ones.&lt;br /&gt;
; Control Device : This is the device that is used to control your camera. This will normally be a serial or similar port. If your camera is a network camera, you will generally not need to specify a control device.&lt;br /&gt;
; Control Address : This is the address of your camera. Some control protocols require that each camera is identified by a particular, usually numeric, id. If your camera uses addressing then enter the id of your camera here. If your camera is a network camera then you will usually need to enter the hostname or IP address of it here. This is ordinarily the same as that given for the camera itself.&lt;br /&gt;
; Auto Stop Timeout : Some cameras only support a continuous mode of movement. For instance you tell the camera to pan right and then when it is aligned correctly you tell it to stop. In some cases it is difficult to time this precisely over a web interface so this option allows you to specify an automatic timeout where the command will be automatically stopped. So a value of 0.25 here can tell the script to stop moving a quarter of a second after starting. This allows a more precise method of fine control. If this value is left blank or at zero it will be ignored, if set then it will be used as the timeout however it will only be applied for the lower 25% of possible speed ranges. In other words if your camera has a pan speed range of 1 to 100 then selecting to move at 26 or over will be assumed to imply that you want a larger movement that you can control yourself and no timeout will be applied. Selecting motion at lower speeds will be interpreted as requiring finer control and the automatic timeout will be invoked.&lt;br /&gt;
; Track Motion : This and the following four options are used with the experimental motion function. This will only work if your camera supports mapped movement modes where a point on an image can be mapped to a control command. This is generally most common on network cameras but can be replicated to some degree on other cameras that support relative movement modes. See the Camera Control section for more details. Check this box to enable motion tracking.&lt;br /&gt;
; Track Delay : This is the number of seconds to suspend motion detection for following any movement that the camera may make to track motion.&lt;br /&gt;
; Return Location : If you camera supports a ‘home’ position or presets you can choose which preset the camera should return to after tracking motion.&lt;br /&gt;
; Return Delay : This is the delay, in seconds, once motion has stopped being detected, before the camera returns to any defined return location.&lt;br /&gt;
&lt;br /&gt;
====X10 Tab====&lt;br /&gt;
&lt;br /&gt;
Note: This tab and its options will only appear if you have indicated that your system supports the X10 home automation protocol during initial system configuration.&lt;br /&gt;
&lt;br /&gt;
; X10 Activation String : The contents of this field determine when a monitor starts and/or stops being active when running in ‘Triggered; mode and with X10 triggers. The format of this string is as follows,&lt;br /&gt;
&lt;br /&gt;
:* n : If you simply enter a number then the monitor will be activated when an X10 ON signal for that unit code is detected and will be deactivated when an OFF signal is detected.&lt;br /&gt;
:* !n : This inverts the previous mode, e.g. !5 means that the monitor is activated when an OFF signal for unit code 5 is detected and deactivated by an ON.&lt;br /&gt;
:* n+ : Entering a unit code followed by + means that the monitor is activated on receipt of a ON signal for that unit code but will ignore the OFF signal and as such will not be deactivated by this instruction. If you prepend a &amp;#039;!&amp;#039; as per the previous definition it similarly inverts the mode, i.e. the ON signal deactivates the monitor.&lt;br /&gt;
:* n+&amp;lt;seconds&amp;gt; : As per the previous mode except that the monitor will deactivate itself after the given number of seconds.&lt;br /&gt;
:* n- : Entering a unit code followed by - means that the monitor is deactivated on receipt of a OFF signal for that unit code but will ignore the ON signal and as such will not be activated by this instruction. If you prepend a &amp;#039;!&amp;#039; as per the previous definition it similarly inverts the mode, i.e. the OFF signal activates the monitor.&lt;br /&gt;
:* n-&amp;lt;seconds&amp;gt; : As per the previous mode except that the monitor will activate itself after the given number of seconds.&lt;br /&gt;
&lt;br /&gt;
: You can also combine several of these expressions to by separating them with a comma to create multiple circumstances of activation. However for now leave this blank.&lt;br /&gt;
&lt;br /&gt;
; X10 Input Alarm String : This has the same format as the previous field but instead of activating the monitor with will cause a forced alarm to be generated and an event recorded if the monitor is Active. The same definition as above applies except that for activated read alarmed and for deactivated read unalarmed(!). Again leave this blank for now.&lt;br /&gt;
; X10 Output Alarm String : This X10 string also has the same format as the two above options. However it works in a slightly different way. Instead of ZoneMinder reacting to X10 events this option controls how ZoneMinder emits X10 signals when the current monitor goes into or comes out of the alarm state. Thus just entering a number will cause the ON signal for that unit code to be sent when going into alarm state and the OFF signal when coming out of alarm state. Similarly 7+30 will send the unit code 7 ON signal when going into alarm state and the OFF signal 30 seconds later regardless of state. The combination of the X10 instruction allows ZoneMinder to react intelligently to, and also assume control of, other devices when necessary. However the indiscriminate use of the Input Alarm and Output Alarm signals can cause some horrendous race conditions such as a light going on in response to an alarm which then causes an alarm itself and so on. Thus some circumspection is required here. Leave this blank for now anyway.&lt;br /&gt;
&lt;br /&gt;
====Misc Tab====&lt;br /&gt;
&lt;br /&gt;
; Event Prefix : By default events are named ‘Event-&amp;lt;event id&amp;gt;’, however you are free to rename them individually as you wish. This option lets you modify the event prefix, the ‘Event-‘ part, to be a value of your choice so that events are named differently as they are generated. This allows you to name events according to which monitor generated them.&lt;br /&gt;
; Section Length : This specifies the length (in seconds) of any fixed length events produced when the monitor function is ‘Record’ or ‘Mocord’. Otherwise it is ignored. This should not be so long that events are difficult to navigate nor so short that too many events are generated. A length of between 300 and 900 seconds I recommended.&lt;br /&gt;
; Frame Skip : This setting also applies only to the ‘Record’ or ‘Mocord’ functions and specifies how many frames should be skipped in the recorded events. The default setting of zero results in every captured frame being saved. Using a value of one would mean that one frame is skipped between each saved, two means that two frames are skipped between each saved frame etc. An alternate way of thinking is that one in every ‘Frame Skip + 1’ frames is saved. The point of this is to ensure that saved events do not take up too much space unnecessarily whilst still allowing the camera to capture at a fairly high frame rate. The alternate approach is to limit the capture frame rate which will obviously affect the rate at which frames are saved.&lt;br /&gt;
; FPS Report Interval : How often the current performance in terms of Frames Per Second is output to the system log. Not used in any functional way so set it to maybe 1000 for now. If you watch /var/log/messages (normally) you will see this value being emitted at the frequency you specify both for video capture and processing.&lt;br /&gt;
; Default Scale : If your monitor has been defined with a particularly large or small image size then you can choose a default scale here with which to view the monitor so it is easier or more visible from the web interface.&lt;br /&gt;
; Web Colour : Some elements of ZoneMinder now use colours to identify monitors on certain views. You can select which colour is used for each monitor here. Any specification that is valid for HTML colours is valid here, e.g. ‘red’ or ‘#ff0000’. A small swatch next to the input box displays the colour you have chosen.&lt;br /&gt;
&lt;br /&gt;
Finally, click &amp;#039;Save&amp;#039; to add your monitor.&lt;br /&gt;
&lt;br /&gt;
On the main console listing you will now see your monitor and some of its vital statistics. Most columns are also links and you get to other functions of ZoneMinder by choosing the appropriate one. Describing them left to right, they are as follows.&lt;br /&gt;
&lt;br /&gt;
The first column is the Id, clicking on this gives you the opportunity to edit any of the settings you have just defined your monitor to have.&lt;br /&gt;
&lt;br /&gt;
The next column is the Name column, clicking on this will give you the watch window where you can view a live feed from your camera along with recent events. This is described more fully below.&lt;br /&gt;
&lt;br /&gt;
Following that are the Function and Source columns, which may be represented in various colours. Initially both will be showing red. This means that that monitor is not configured for any function and as a consequence has no zmc (capture) daemon running on it. If it were orange it would mean that a zmc daemon was running but no zma (analysis) daemon and green means both are running. In our case it is red because we defined the Monitor to have a Function of None so no daemons are required.&lt;br /&gt;
&lt;br /&gt;
To get the daemons up and running you can either click on the source listed in the Source column and edit the monitor properties or click on the Function listed and change it to ’Monitor’, which will ensure that one or more appropriate daemons are started automatically. You need to ensure that you have started ZoneMinder before any of these settings actually has any effect.&lt;br /&gt;
&lt;br /&gt;
Having a device status of red or orange does not necessarily constitute an error if you have deliberately disabled a monitor or have just put it into Passive mode.&lt;br /&gt;
&lt;br /&gt;
If you have several cameras (and thus monitors) on a device the device status colour reflects all of them for the capture daemon. So if just one monitor is active then the daemon is active for both even if all the other monitors are switched off.&lt;br /&gt;
&lt;br /&gt;
Once you have changed the function of your monitor, the main console window will be updated to reflect this change. If your device status does not go green then check your system and web server logs to see if it&amp;#039;s something obvious.&lt;br /&gt;
&lt;br /&gt;
You can now add further monitors if you have cameras set up to support them. Once you have one or more monitors you may notice the &amp;#039;&amp;lt;n&amp;gt; Monitors&amp;#039; title becomes a link. Clicking on this link will open up a window which allows you to assign your monitors to groups. These let you select certain monitors to view. For instance you may only wish to view outdoor monitors while indoors. You can also choose to view all of them. If you choose a group then your selection will be remembered via a cookie and will be used until you change it. You can call your groups anything you like, though ‘Mobile’ has a special meaning (see Mobile Devices below).&lt;br /&gt;
&lt;br /&gt;
There may also be a ‘Cycle’ link which allows you to cycle through a shot from each of your monitors (in the selected group unless they are switched off) and get a streamed or still image from each in turn. Similarly if you see a link titled ‘Montage’ it will allow you view all your active enabled cameras (in the selected group) simultaneously. Be aware however that this can consume large amounts of bandwidth and CPU so should not be used continuously unless you have resource to burn.&lt;br /&gt;
&lt;br /&gt;
===Defining Zones===&lt;br /&gt;
For a very brief step by step guide check out [[How_to_setup_motion_detection#Configure_motion_detection_areas|Configuring motion detection]] .&lt;br /&gt;
&lt;br /&gt;
The next important thing to do with a new monitor is set up Zones for it to use. By default you&amp;#039;ll already have one generated for you when you created your monitor but you might want to modify it or add others. Click on the Zones column for your monitor and you should see a small popup window appear which contains an image from your camera overlain with a stippled pattern representing your zone. In the default case this will cover the whole image. The colour of the zones appearing here is determined by what type they are. The default zone is Active and so will be red, Inclusive zones are orange, exclusive zones are purple, preclusive zones are blue and inactive zones are white.&lt;br /&gt;
&lt;br /&gt;
Beneath the zones image will be a table containing a listing of your zones. Clicking on either the relevant bit of the image or on the Id or Name in the table will bring up another window where you can edit the particulars for your Zones. For more information on defining or editing a zone, see [[Defining_Zones|Defining Zones]].&lt;br /&gt;
&lt;br /&gt;
===Viewing Monitors===&lt;br /&gt;
As this point you should have one or more Monitors running with one or more Zones each. Returning to the main Console window you will see your monitors listed once more. The columns not explored so far are the Monitor name, and various event totals for certain periods of time. Clicking on any of the event totals will bring up a variation on the same window but click on the Monitor name for now. If it is not a link then this means that that monitor is not running so ensure that you have started ZoneMinder and that your Monitor function is not set to ‘None’. If the link works, clicking on it will pop another window up which should be scaled to contain a heading, an image from your monitor, a status and a list of recent events if any have been generated.&lt;br /&gt;
&lt;br /&gt;
Depending on whether you are able to view a streamed image or not the image frame will either be this stream or a series of stills. You have the option to change from one to the other (if available) at the centre of the top heading. Also along the top are a handful of other links. These let you change the scale of the image stream, modify image settings (for local devices) or close the window. If you have cameras that can be controlled, a ‘Control’ link should also be present which is described below.&lt;br /&gt;
&lt;br /&gt;
The image should be self-explanatory but if it looks like garbage it is possible that the video configuration is wrong so look in your system error log and check for or report anything unusual. The centre of the window will have a tiny frame that just contains a status; this will be &amp;#039;Idle&amp;#039;, &amp;#039;Alarm&amp;#039; or &amp;#039;Alert&amp;#039; depending on the function of the Monitor and what&amp;#039;s going on in the field of view. Idle means nothing is happening, Alarm means there is an alarm in progress and Alert means that an alarm has happened and the monitor is ‘cooling down’, if another alarm is generated in this time it will just become part of the same event. These indicators are colour coded in green, red and amber.&lt;br /&gt;
&lt;br /&gt;
By default if you have minimised this window or opened other windows in front it will pop up to the front if it goes to Alarm state. This behaviour can be turned off in ‘options’ if required. You can also specify a sound file in the configuration, which will be played when an alarm occurs to alert you to the fact if you are not in front of your computer. This should be a short sound of only a couple of seconds ideally. Note that as the status is refreshed every few seconds it is possible for this not to alert you to every event that takes place, so you shouldn&amp;#039;t rely on it for this purpose if you expect very brief events. Alternatively you can decrease the refresh interval for this window in the configuration though having too frequent refreshing may impact on performance.&lt;br /&gt;
&lt;br /&gt;
Below the status is a list of recent events that have occurred, by default this  is a listing of just the last 10 but clicking on &amp;#039;All&amp;#039; will give you a full list  and &amp;#039;Archive&amp;#039; will take you to the event archive for this monitor, more on this  later. Clicking on any of the column headings will sort the events appropriately.&lt;br /&gt;
&lt;br /&gt;
From here you can also delete events if you wish. The events themselves are listed with the event id, and event name (which you can change), the time that the event occurred, the length of the event including any preamble and postamble frames, the number of frames comprising the event with the number that actually contain an alarm in brackets and finally a score. This column lists the average score per alarm frame as well as the maximum score that any alarm frame had.&lt;br /&gt;
&lt;br /&gt;
The score is an arbitrary value that essentially represents the percentage of pixels in the zone that are in blobs divided by the square root of the number of blobs and then divided by the size of the zone. This gives a nominal maximum of 100 for a zone and the totals for each zone are added together, Active zones scores are added unchanged, Inclusive zones are halved first and Exclusive zones are doubled. In reality values are likely to be much less than 100 but it does give a simple indication of how major the event was.&lt;br /&gt;
&lt;br /&gt;
===Controlling Monitors===&lt;br /&gt;
[[image: Axis_ptz_setting.png|right|thumb|caption| Settings for PTZ on an Axis213]]&lt;br /&gt;
For step by step instructions on setting up pan tilt zoom check out [[How_to_setup_an_axis_213_with_pan_tilt_zoom|Axis213 with pan tilt zoom]]&lt;br /&gt;
&lt;br /&gt;
If you have defined your system as having controllable monitors and you are looking at a monitor that is configured for control, then clicking on the ‘Control’ link along the top of the window will change the short event listing area to a control area. The capabilities you have defined earlier determine exactly what is displayed in this window. Generally you will have a Pan/Tilt control area along with one or subsidiary areas such as zoom or focus control to the side. If you have preset support then these will be near the bottom of the window. The normal method of controlling the monitor is by clicking on the appropriate graphics which then send a command via the control script to the camera itself. This may sometimes take a noticeable delay before the camera responds.&lt;br /&gt;
&lt;br /&gt;
It is usually the case that the control arrows are sensitive to where you click on them. If you have a camera that allows different speeds to be used for panning or zooming etc then clicking near the point of the arrow will invoke the faster speed whilst clicking near the base of the arrow will be slower. If you have defined continuous motion then ongoing activities can be stopped by clicking on the area between the arrows, which will either be a graphic in the case of pan/tilt controls or a word in the case of zoom and focus controls etc.&lt;br /&gt;
&lt;br /&gt;
Certain control capabilities such as mapped motion allow direct control by clicking on the image itself when used in browsers which support streamed images directly. Used in this way you can just click on the area of the image that interests you and the camera will centre on that spot. You can also use direct image control for relative motion when the area of the image you click on defines the direction and the distance away from the centre of the image determines the speed. As it is not always very easy to estimate direction near the centre of the image, the active area does not start until a short distance away from the centre, resulting in a ‘dead’ zone in the middle of the image.&lt;br /&gt;
&lt;br /&gt;
===Filtering Events===&lt;br /&gt;
For a very brief howto guide on this topic check out [[How_to_export_download_and_view_events#Event_Filter| Event Filter]].&lt;br /&gt;
&lt;br /&gt;
The other columns on the main console window contain various event totals for your monitors over the last hour, day, week and month as well as a grand total and a total for events that you may have archived for safekeeping. Clicking on one of these totals or on the &amp;#039;All&amp;#039; or &amp;#039;Archive&amp;#039; links from the monitor window described above will present you with a new display. This is the full event window and contains a list of events selected according to a filter which will also pop up in its own window. Thus if you clicked on a &amp;#039;day&amp;#039; total the filter will indicate that this is the period for which events are being filtered. The event listing window contains a similar listing to the recent events in the monitor window. The primary differences are that the frames and alarm frames and the score and maximum score are now broken out into their own columns, all of which can be sorted by clicking on the heading. Also this window will not refresh automatically, rather only on request. Other than that, you can choose to view events here or delete them as before.&lt;br /&gt;
&lt;br /&gt;
The other window that appeared is a filter window. You can use this window to create your own filters or to modify existing ones. You can even save your favourite filters to re-use at a future date. Filtering itself is fairly simple; you first choose how many expressions you&amp;#039;d like your filter to contain. Changing this value will cause the window to redraw with a corresponding row for each expression. You then select what you want to filter on and how the expressions relate by choosing whether they are &amp;#039;and&amp;#039; or &amp;#039;or&amp;#039; relationships. For filters comprised of many expressions you will also get the option to bracket parts of the filter to ensure you can express it as desired. Then if you like choose how you want your results sorted and whether you want to limit the amount of events displayed.&lt;br /&gt;
&lt;br /&gt;
There are several different elements to an event that you can filter on, some of which require further explanation. These are as follows, &amp;#039;Date/Time&amp;#039; which must evaluate to a date and a time together, &amp;#039;Date&amp;#039; and &amp;#039;Time&amp;#039; which are variants which may only contain the relevant subsets of this, &amp;#039;Weekday&amp;#039; which as expected is a day of the week.&lt;br /&gt;
&lt;br /&gt;
All of the preceding elements take a very flexible free format of dates and time based on the PHP strtotime function (http://www.php.net/manual/en/function.strtotime.php). This allows values such as &amp;#039;last Wednesday&amp;#039; etc to be entered. I recommend acquainting yourself with this function to see what the allowed formats are. However automated filters are run in perl and so are parsed by the Date::Manip package. Not all date formats are available in both so if you are saved your filter to do automatic deletions or other tasks you should make sure that the date and time format you use is compatible with both methods. The safest type of format to use is ‘-3 day’ or similar with easily parseable numbers and units are in English.&lt;br /&gt;
&lt;br /&gt;
The other things you can filter on are all fairly self explanatory, except perhaps for &amp;#039;Archived&amp;#039; which you can use to include or exclude Archived events. In general you&amp;#039;ll probably do most filtering on un-archived events. There are also two elements, Disk Blocks and Disk Percent which don’t directly relate to the events themselves but to the disk partition on which the events are stored. These allow you to specify an amount of disk usage either in blocks or in percentage as returned by the ‘df’ command. They relate to the amount of disk space used and not the amount left free. Once your filter is specified, clicking &amp;#039;submit&amp;#039; will filter the events according to your specification. As the disk based elements are not event related directly if you create a filter and include the term ‘DiskPercent &amp;gt; 95’ then if your current disk usage is over that amount when you submit the filter then all events will be listed whereas if it is less then none at all will. As such the disk related terms will tend to be used mostly for automatic filters (see below). If you have created a filter you want to keep, you can name it and save it by clicking &amp;#039;Save&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you do this then the subsequent dialog will also allow you specify whether you want this filter automatically applied in order to delete events or upload events via ftp to another server and mail notifications of events to one or more email accounts. Emails and messages (essentially small emails intended for mobile phones or pagers) have a format defined in the Options screen, and may include a variety of tokens that can be substituted for various details of the event that caused them. This includes links to the event view or the filter as well as the option of attaching images or videos to the email itself. Be aware that tokens that represent links may require you to log in to access the actual page, and sometimes may function differently when viewed outside of the general ZoneMinder context. The tokens you can use are as follows.&lt;br /&gt;
&lt;br /&gt;
:    %EI%           Id of the event&lt;br /&gt;
:    %EN%          Name of the event&lt;br /&gt;
:    %EC%          Cause of the event&lt;br /&gt;
:    %ED%          Event description&lt;br /&gt;
:    %ET%          Time of the event&lt;br /&gt;
:    %EL%          Length of the event&lt;br /&gt;
:    %EF%          Number of frames in the event&lt;br /&gt;
:    %EFA%        Number of alarm frames in the event&lt;br /&gt;
:    %EST%        Total score of the event&lt;br /&gt;
:    %ESA%       Average score of the event&lt;br /&gt;
:    %ESM%       Maximum score of the event&lt;br /&gt;
:    %EP%          Path to the event&lt;br /&gt;
:    %EPS%       Path to the event stream&lt;br /&gt;
:    %EPI%         Path to the event images&lt;br /&gt;
:    %EPI1%       Path to the first alarmed event image&lt;br /&gt;
:    %EPIM%      Path to the (first) event image with the highest score&lt;br /&gt;
:    %EI1%         Attach first alarmed event image&lt;br /&gt;
:    %EIM%        Attach (first) event image with the highest score&lt;br /&gt;
:    %EV%          Attach event mpeg video&lt;br /&gt;
:    %MN%         Name of the monitor&lt;br /&gt;
:    %MET%       Total number of events for the monitor&lt;br /&gt;
:    %MEH%       Number of events for the monitor in the last hour&lt;br /&gt;
:    %MED%       Number of events for the monitor in the last day&lt;br /&gt;
:    %MEW%      Number of events for the monitor in the last week&lt;br /&gt;
:    %MEM%      Number of events for the monitor in the last month&lt;br /&gt;
:    %MEA%       Number of archived events for the monitor&lt;br /&gt;
:    %MP%         Path to the monitor window&lt;br /&gt;
:    %MPS%       Path to the monitor stream&lt;br /&gt;
:    %MPI%        Path to the monitor recent image&lt;br /&gt;
:    %FN%          Name of the current filter that matched&lt;br /&gt;
:    %FP%          Path to the current filter that matched&lt;br /&gt;
:    %ZP%          Path to your ZoneMinder console&lt;br /&gt;
&lt;br /&gt;
Finally you can also specify a script which is run on each matched event. This script should be readable and executable by your web server user. It will get run once per event and the relative path to the directory containing the event in question. Normally this will be of the form &amp;lt;MonitorName&amp;gt;/&amp;lt;EventId&amp;gt; so from this path you can derive both the monitor name and event id and perform any action you wish. Note that arbitrary commands are not allowed to be specified in the filter, for security the only thing it may contain is the full path to an executable. What that contains is entirely up to you however.&lt;br /&gt;
&lt;br /&gt;
Filtering is a powerful mechanism you can use to eliminate events that fit a certain pattern however in many cases modifying the zone settings will better address this. Where it really comes into its own is generally in applying time filters, so for instance events that happen during weekdays or at certain times of the day are highlighted, uploaded or deleted. Additionally using disk related terms in your filters means you can automatically create filters that delete the oldest events when your disk gets full. Be warned however that if you use this strategy then you should limit the returned results to the amount of events you want deleted in each pass until the disk usage is at an acceptable level. If you do not do this then the first pass when the disk usage is high will match, and then delete, all events unless you have used other criteria inside of limits. ZoneMinder ships with a sample filter already installed, though disabled. The PurgeWhenFull filter can be used to delete the oldest events when your disk starts filling up. To use it you should select and load it in the filter interface, modify it to your requirements, and then save it making you sure you check the ‘Delete all matches’ option. This will then run in the background and ensure that your disk does not fill up with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Relative items in date strings====&lt;br /&gt;
&lt;br /&gt;
Relative items adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples:&lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
1 year&lt;br /&gt;
1 year ago&lt;br /&gt;
3 years&lt;br /&gt;
2 days&lt;br /&gt;
&lt;br /&gt;
The unit of time displacement may be selected by the string ‘year’ or ‘month’ for moving by whole years or months. These are fuzzy units, as years and months are not all of equal duration. More precise units are ‘fortnight’ which is worth 14 days, ‘week’ worth 7 days, ‘day’ worth 24 hours, ‘hour’ worth 60 minutes, ‘minute’ or ‘min’ worth 60 seconds, and ‘second’ or ‘sec’ worth one second. An ‘s’ suffix on these units is accepted and ignored.&lt;br /&gt;
&lt;br /&gt;
The unit of time may be preceded by a multiplier, given as an optionally signed number. Unsigned numbers are taken as positively signed. No number at all implies 1 for a multiplier. Following a relative item by the string ‘ago’ is equivalent to preceding the unit by a multiplier with value -1.&lt;br /&gt;
&lt;br /&gt;
The string ‘tomorrow’ is worth one day in the future (equivalent to ‘day’), the string ‘yesterday’ is worth one day in the past (equivalent to ‘day ago’).&lt;br /&gt;
&lt;br /&gt;
The strings ‘now’ or ‘today’ are relative items corresponding to zero-valued time displacement, these strings come from the fact a zero-valued time displacement represents the current time when not otherwise changed by previous items. They may be used to stress other items, like in ‘12:00 today’. The string ‘this’ also has the meaning of a zero-valued time displacement, but is preferred in date strings like ‘this thursday’.&lt;br /&gt;
&lt;br /&gt;
When a relative item causes the resulting date to cross a boundary where the clocks were adjusted, typically for daylight saving time, the resulting date and time are adjusted accordingly.&lt;br /&gt;
&lt;br /&gt;
The fuzz in units can cause problems with relative items. For example, ‘2003-07-31 -1 month’ might evaluate to 2003-07-01, because 2003-06-31 is an invalid date. To determine the previous month more reliably, you can ask for the month before the 15th of the current month. For example:&lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
 $ date -R&lt;br /&gt;
 Thu, 31 Jul 2003 13:02:39 -0700&lt;br /&gt;
 $ date --date=&amp;#039;-1 month&amp;#039; +&amp;#039;Last month was %B?&amp;#039;&lt;br /&gt;
 Last month was July?&lt;br /&gt;
 $ date --date=&amp;quot;$(date +%Y-%m-15) -1 month&amp;quot; +&amp;#039;Last month was %B!&amp;#039;&lt;br /&gt;
 Last month was June!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As this applies to ZoneMinder filters, you might want to search  for events in a period of time, or maybe for example create a purge filter that removes events older than 30 days.&lt;br /&gt;
For the later you would want at least two lines in your filter. The first line should be:&lt;br /&gt;
&lt;br /&gt;
 [&amp;lt;Archive Status&amp;gt; &amp;lt;equal to&amp;gt; &amp;lt;Unarchived Only&amp;gt;] &lt;br /&gt;
&lt;br /&gt;
as you don&amp;#039;t want to delete your archived events. &lt;br /&gt;
&lt;br /&gt;
Your second line to find events older than 30 days would be:&lt;br /&gt;
&lt;br /&gt;
 [and &amp;lt;Date&amp;gt;&amp;lt;less than&amp;gt; -30 days] &lt;br /&gt;
&lt;br /&gt;
You use &amp;quot;less than&amp;quot; to indicate that you want to match events before the specified date, and you specify &amp;quot;-30 days&amp;quot; to indicate a date 30 days before the time the filter is run. Of course you could use 30 days ago as well(?).&lt;br /&gt;
&lt;br /&gt;
You should always test your filters before enabling any actions based on them to make sure they consistently return the results you want. You can use the submit button to see what events are returned by your query.&lt;br /&gt;
&lt;br /&gt;
===Viewing Events===&lt;br /&gt;
From the monitor or filtered events listing you can now click on an event to view it in more detail. If you have streaming capability you will see a series of images that make up the event. Under that you should also see a progress bar. Depending on your configuration this will either be static or will be filled in to indicate how far through the event you are. By default this functionality is turned off for low bandwidth settings as the image delivery tends to not be able to keep up with real-time and the progress bar cannot take this into account. Regardless of whether the progress bar updates, you can click on it to navigate to particular points in the events.&lt;br /&gt;
&lt;br /&gt;
You will also see a link to allow you to view the still images themselves. If you don&amp;#039;t have streaming then you will be taken directly to this page. The images themselves are thumbnail size and depending on the configuration and bandwidth you have chosen will either be the full images scaled in your browser of actual scaled images. If it is the latter, if you have low bandwidth for example, it may take a few seconds to generate the images. If thumbnail images are required to be generated, they will be kept and not re-generated in future. Once the images appear you can mouse over them to get the image sequence number and the image score.&lt;br /&gt;
&lt;br /&gt;
You will notice for the first time that alarm images now contain an overlay outlining the blobs that represent the alarmed area. This outline is in the colour defined for that zone and lets you see what it was that caused the alarm. Clicking on one of the thumbnails will take you to a full size window where you can see the image in all its detail and scroll through the various images that make up the event. If you have the ZM_RECORD_EVENT_STATS option on, you will be able to click the &amp;#039;Stats&amp;#039; link here and get some analysis of the cause of the event. Should you determine that you don&amp;#039;t wish to keep the event, clicking on Delete will erase it from the database and file system. Returning to the event window, other options here are renaming the event to something more meaningful, refreshing the window to replay the event stream, deleting the event, switching between streamed and still versions of the event (if supported) and generating an MPEG video of the event (if supported).&lt;br /&gt;
&lt;br /&gt;
These last two options require further explanation. Archiving an event means that it is kept to one side and not displayed in the normal event listings unless you specifically ask to view the archived events. This is useful for keeping events that you think may be important or just wish to protect. Once an event is archived it can be deleted or unarchived but you cannot accidentally delete it when viewing normal unarchived events.&lt;br /&gt;
&lt;br /&gt;
The final option of generating an MPEG video is still somewhat experimental and its usefulness may vary. It uses the open source ffmpeg encoder to generate short videos, which will be downloaded to your browsing machine or viewed in place. When using the ffmpeg encoder, ZoneMinder will attempt to match the duration of the video with the duration of the event. Ffmpeg has a particularly rich set of options and you can specify during configuration which additional options you may wish to include to suit your preferences. In particular you may need to specify additional, or different, options if you are creating videos of events with particularly slow frame rates as some codecs only support certain ranges of frame rates. A common value for FFMPEG_OUTPUT_OPTIONS under Options &amp;gt; Images might be &amp;#039;-r 25 -b 800k&amp;#039; for 25 fps and 800 kbps.  Details of these options can be found in the [http://ffmpeg.org/ffmpeg-doc.html documentation] for the encoders and is outside the scope of this document.&lt;br /&gt;
&lt;br /&gt;
Building an MPEG video, especially for a large event, can take some time and should not be undertaken lightly as the effect on your host box of many CPU intensive encoders will not be good. However once a video has been created for an event it will be kept so subsequent viewing will not incur the generation overhead. Videos can also be included in notification emails, however care should be taken when using this option as for many frequent events the penalty in CPU and disk space can quickly mount up.&lt;br /&gt;
&lt;br /&gt;
===Options and Users===&lt;br /&gt;
The final area covered by the tutorial is the options and user section. If you are running in authenticated mode and don’t have system privileges then you will not see this section at all and if you are running in un-authenticated mode then no user section will be displayed.&lt;br /&gt;
&lt;br /&gt;
The various options you can specify are displayed in a tabbed dialog with each group of options displayed under a different heading. Each option is displayed with its name, a short description and the current value. You can also click on the ‘?’ link following each description to get a fuller explanation about each option. This is the same as you would get from zmconfig.pl. A number of option groups have a master option near the top which enables or disables the whole group so you should be aware of the state of this before modifying options and expecting them to make any difference.&lt;br /&gt;
&lt;br /&gt;
If you have changed the value of an option you should then ‘save’ it. A number of the option groups will then prompt you to let you know that the option(s) you have changed will require a system restart. This is not done automatically in case you will be changing many values in the same session, however once you have made all of your changes you should restart ZoneMinder as soon as possible. The reason for this is that web and some scripts will pick up the new changes immediately but some of the daemons will still be using the old values and this can lead to data inconsistency or loss.&lt;br /&gt;
&lt;br /&gt;
One of the options you may notice in the ‘System’ tab allows you to specify the default language for your installation of ZoneMinder. Versions 1.17.0 and later support multiple languages but rely on users to assist in creating language files for specific languages. To specify a language you will have to give the applicable code, thus for UK English this is en_gb, and for US English it would be en_us, if no language is given then UK English is assumed. Most languages will be specified in this nn_mm format and to check which languages are available look for files named zm_lang_*.php in the ZoneMinder build directory where the parts represented by the ‘*’ would be what you would enter as a language. This is slightly unwieldy and will probably be improved in future to make it easier to determine language availability. On checking which languages are available it may be that your preferred language is not currently included and if this is the case please consider doing a translation and sending it back to it may be included in future releases. All the language elements are given in the zm_lang_en_gb.php file along with a few notes to help you understand the format.&lt;br /&gt;
&lt;br /&gt;
As mentioned above, you may also see a ‘users’ tab in the Options area. In this section you will see a list of the current users defined on the system. You can also add or delete users from here. It is recommended you do not delete the admin user unless you have created another fully privileged user to take over the same role. Each user is defined with a name and password (which is hidden) as well as an enabled setting which you can use to temporarily enable or disable users, for example a guest user for limited time access. As well as that there is a language setting that allows you to define user specific languages. Setting a language here that is different than the system language will mean that when that user logs in they will have the web interface presented in their own language rather than the system default, if it is available. Specifying a language here is done in the same way as for the system default language described above.&lt;br /&gt;
&lt;br /&gt;
There are also five values that define the user permissions, these are ‘Stream’, ‘Events’, ‘Control’, ‘Monitors’ and ‘System’ Each can have values of ‘None’, ‘View’ or ‘Edit’ apart from ‘Stream’ which has no ‘Edit’ setting. These values cover access to the following areas; ‘Stream’ defines whether a user is allowed to view the ‘live’ video feeds coming from the cameras. You may wish to allow a user to view historical events only in which case this setting should be ‘none’. The ‘Events’ setting determines whether a user can view and modify or delete any retained historical events. The ‘Control’ setting allows you to indicate whether the user is able to control any Pan/Tilt/Zoom type cameras you may have on your system. The ‘Monitors’ setting specifies whether a user can see the current monitor settings and change them. Finally the ‘System’ setting determines whether a user can view or modify the system settings as a whole, such as options and users or controlling the running of the system as a whole.&lt;br /&gt;
&lt;br /&gt;
As well as these settings there is also a ‘Bandwidth’ setting which can be used to limit the maximum bandwidth that a user can view at and a ‘Monitor Ids’ setting that can be used for non-’System’ users to restrict them to only being able to access streams, events or monitors for the given monitors ids as a comma separated list with no spaces. If a user with ‘Monitors’ edit privileges is limited to specific monitors here they will not be able to add or delete monitors but only change the details of those they have access to. If a user has ‘System’ privileges then the ‘Monitors Ids’ setting is ignored and has no effect.’&lt;br /&gt;
&lt;br /&gt;
That’s pretty much is it for the tour, though there is a lot more to ZoneMinder as you will discover. You should experiment with the various settings to get the results you think are right for your requirements.&lt;br /&gt;
&lt;br /&gt;
==Camera Control==&lt;br /&gt;
&lt;br /&gt;
ZoneMinder provides the facility to control cameras from the web interface and to some extent automatically. Pan/Tilt/Zoom (PTZ) cameras have a wide range of capabilities and use a large number of different protocols making any kind of generic control solution potentially very difficult. To address this ZoneMinder uses two key approaches to get around this problem.&lt;br /&gt;
&lt;br /&gt;
; Definition of Capabilities : For each camera model you use, an entry in the camera capabilities table must be created. These indicate what functions the camera supports and ensure that the interface presents only those capabilities that the camera supports. There are a very large number of capabilities that may be supported and it is very important that the entries in this table reflect the actual abilities of the camera. A small number of example capabilities are included in ZoneMinder, these can be used ‘as is’ or modified.&lt;br /&gt;
&lt;br /&gt;
; Control Scripts : ZoneMinder itself does not generally provide the ability to send commands to cameras or receive responses. What it does is mediate motion requests from the web interface into a standard set of commands which are passed to a script defined in the control capability. Example scripts are provided in ZoneMinder which support a number of serial or network protocols but it is likely that for many cameras new scripts will have to be created. These can be modelled on the example ones, or if control commands already exist from other applications, then the script can just act as a ‘glue’ layer between ZoneMinder and those commands.&lt;br /&gt;
&lt;br /&gt;
It should be emphasised that the control and capability elements of ZoneMinder are not intended to be able to support every camera out of the box. Some degree of development is likely to be required for many cameras. This should often be a relatively straightforward task however if you have a camera that you want to be supported then please feel free to get in touch and I should be able to provide an estimate for how much effort this is likely to be. It is also the case that I have only been able to access this limited number of cameras to test against; some other cameras may use different motion paradigms that don’t fit into the control capability/script architecture that ZoneMinder uses. If you come across any cameras like this then please forward as much information to me as possible so that I may be able to extend the ZoneMinder model to encompass them.&lt;br /&gt;
&lt;br /&gt;
===Control Capabilities===&lt;br /&gt;
&lt;br /&gt;
If you have a camera that supports PTZ controls and wish to use it with ZoneMinder then the first thing you need to do is ensure that it has an accurate entry in the capabilities table. To do this you need to go to the Control tab of the Monitor configuration dialog and select ‘Edit’ where it is listed by the Control Type selection box. This will bring up a new window which lists, with a brief summary, the existing capabilities. To edit an existing capability to modify select the Id or Name of the capability in question, or click on the Add button to add a new control capability. Either of these approaches will create a new window, in familiar style, with tabs along the top and forms fields below. In the case of the capabilities table there are a large number of settings and tabs, the mean and use of these are briefly explained below.&lt;br /&gt;
&lt;br /&gt;
====Main Tab====&lt;br /&gt;
; Name : This is the name of the control capability, it will usually make sense to name capabilities after the camera model or protocol being used.&lt;br /&gt;
; Type : Whether the capability uses a local (usually serial) or network control protocol.&lt;br /&gt;
; Command : This is the full path to a script or application that will map the standard set of ZoneMinder control commands to equivalent control protocol command. This may be one of the shipped example zmcontrol-*.pl scripts or something else entirely.&lt;br /&gt;
; Can Wake : This is the first of the actual capability definitions. Checking this box indicates that a protocol command exists to wake up the camera from a sleeping state.&lt;br /&gt;
; Can Sleep : The camera can be put to sleep.&lt;br /&gt;
; Can Reset : The camera can be reset to a previously defined state.&lt;br /&gt;
&lt;br /&gt;
====Move Tab====&lt;br /&gt;
; Can Move : The camera is able move, i.e. pan or tilt.&lt;br /&gt;
; Can Move Diagonally : The camera can move diagonally. Some devices can move only vertically or horizontally at a time.&lt;br /&gt;
; Can Move Mapped : The camera is able internally map a point on an image to a precise degree of motion to centre that point in the image.&lt;br /&gt;
; Can Move Absolute : The camera can move to an absolute location.&lt;br /&gt;
; Can Move Relative : The camera can more to a relative location, e.g. 7 point left or up.&lt;br /&gt;
; Can Move Continuous : The camera can move continuously in a defined direction until told to stop or the movement limits are reached, e.g. left.&lt;br /&gt;
&lt;br /&gt;
====Pan Tab====&lt;br /&gt;
; Can Pan : The camera can pan, or move horizontally.&lt;br /&gt;
; Min/Max Pan Range : If the camera supports absolute motion this is the minimum and maximum pan co-ordinates that may be specified, e.g. -100 to 100.&lt;br /&gt;
; Min/Man Pan Step : If the camera supports relative motion, this is the minimum and maximum amount of movement that can be specified.&lt;br /&gt;
; Has Pan Speed : The camera supports specification of pan speeds.&lt;br /&gt;
; Min/Max Pan Speed : The minimum and maximum pan speed supported.&lt;br /&gt;
; Has Turbo Pan : The camera supports an additional turbo pan speed.&lt;br /&gt;
; Turbo Pan Speed : The actual turbo pan speed.&lt;br /&gt;
&lt;br /&gt;
====Tilt Tab====&lt;br /&gt;
Definition of Tilt capabilities, fields as for ‘Pan’ tab.&lt;br /&gt;
&lt;br /&gt;
====Zoom Tab====&lt;br /&gt;
; Can Zoom : The camera can zoom.&lt;br /&gt;
; Can Zoom Absolute : The camera can zoom to an absolute position.&lt;br /&gt;
; Can Zoom Relative : The camera can zoom to a relative position.&lt;br /&gt;
; Can Zoom Continuous : The camera can zoom continuously in or out until told to stop or the zoom limits are reached.&lt;br /&gt;
; Min/Max Zoom Range : If the camera supports absolute zoom this is the minimum and maximum zoom amounts that may be specified.&lt;br /&gt;
; Min/Man Zoom Step : If the camera supports relative zoom, this is the minimum and maximum amount of zoom change that can be specified.&lt;br /&gt;
; Has Zoom Speed : The camera supports specification of zoom speed.&lt;br /&gt;
; Min/Max Zoom Speed : The minimum and maximum zoom speed supported.&lt;br /&gt;
&lt;br /&gt;
====Focus Tab====&lt;br /&gt;
Definition of Focus capabilities, fields as for ‘Zoom’ tab, but with the following additional capability.&lt;br /&gt;
; Can Auto Focus : The camera can focus automatically.&lt;br /&gt;
&lt;br /&gt;
====White Tab====&lt;br /&gt;
Definition of White Balance capabilities, fields as for ‘Focus’ tab.&lt;br /&gt;
&lt;br /&gt;
====Iris Tab====&lt;br /&gt;
Definition of Iris Control capabilities, fields as for ‘Focus’ tab.&lt;br /&gt;
&lt;br /&gt;
====Presets Tab====&lt;br /&gt;
; Has Presets : The camera supports preset positions.&lt;br /&gt;
; Num Presets : How many presets the camera supports. If the camera supports a huge number of presets then it makes sense to specify a more reasonable number here, 20 or less is recommended.&lt;br /&gt;
; Has Home Preset : The camera has a defined ‘home’ position, usually in the mid point of its range.&lt;br /&gt;
; Can Set Presets : The camera supports setting preset locations via its control protocol.&lt;br /&gt;
&lt;br /&gt;
===Control Scripts===&lt;br /&gt;
The second key element to controlling cameras with ZoneMinder is ensuring that an appropriate control script or application is present. A small number of sample scripts are included with ZoneMinder and can be used directly or as the basis for development. Control scripts are run atomically, that is to say that one requested action from the web interface results in one execution of the script and no state information is maintained. If your protocol requires state information to be preserved then you should ensure that your scripts do this as ZoneMinder has no concept of the state of the camera in control terms.&lt;br /&gt;
&lt;br /&gt;
If you are writing a new control script then you need to ensure that it supports the parameters that ZoneMinder will pass to it. If you already have scripts or applications that control your cameras, the ZoneMinder control script will just act as glue to convert the parameters passed into a form that your existing application understands. If you are writing a script to support a new protocol then you will need to convert the parameters passed into the script to equivalent protocol commands. If you have carefully defined your control capabilities above then you should only expect commands that correspond to those capabilities.&lt;br /&gt;
&lt;br /&gt;
The standard set of parameters passed to control scripts is defined below,&lt;br /&gt;
; --device=&amp;lt;device&amp;gt; : This is the control device from the monitor definition. Absent if no device is specified.&lt;br /&gt;
; --address=&amp;lt;address&amp;gt; : This is the control address from the monitor definition. This will usually be a hostname or ip address for network cameras or a simple numeric camera id for other cameras.&lt;br /&gt;
; --autostop=&amp;lt;timeout&amp;gt; : This indicates whether an automatic timeout should be applied to &amp;#039;&amp;#039;&amp;#039;stop&amp;#039;&amp;#039;&amp;#039; the given command. It will only be included for &amp;#039;&amp;#039;&amp;#039;continuous&amp;#039;&amp;#039;&amp;#039; commands, as listed below, and will be a timeout in decimal seconds, probably fractional.&lt;br /&gt;
; --command=&amp;lt;command&amp;gt; : This specifies the command that the script should execute. Valid commands are given below.&lt;br /&gt;
; --xcoord=&amp;lt;x&amp;gt;, --ycoord=&amp;lt;y&amp;gt; : This specifies the x and/or y coordinates for commands which require them. These will normally be absolute or mapped commands.&lt;br /&gt;
; --width=&amp;lt;width&amp;gt;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;--height=&amp;lt;height&amp;gt; : This specifies the width and height of the current image, for mapped motion commands where the coordinates values passed must have a context.&lt;br /&gt;
; --speed=&amp;lt;speed&amp;gt; : This specifies the speed that the command should use, if appropriate.&lt;br /&gt;
; --panspeed=&amp;lt;speed&amp;gt;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;--tiltspeed=&amp;lt;speed&amp;gt; : This indicates the specific pan and tilt speeds for diagonal movements which may allow a different motion rate for horizontal and vertical components.&lt;br /&gt;
; --step=&amp;lt;step&amp;gt; : This specifies the amount of motion that the command should use, if appropriate. Normally used for relative commands only.&lt;br /&gt;
; --panstep=&amp;lt;step&amp;gt;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;--tiltstep=&amp;lt;step&amp;gt; : This indicates the specific pan and tilt steps for diagonal movements which may allow a different amount of motion for horizontal and vertical components.&lt;br /&gt;
; --preset=&amp;lt;preset&amp;gt; : This specifies the particular preset that relevant commands should operate on.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;command&amp;#039;&amp;#039;&amp;#039; option listed above may take one of the following commands as a parameter.&lt;br /&gt;
; wake : Wake the camera.&lt;br /&gt;
; sleep : Send the camera to sleep.&lt;br /&gt;
; reset : Reset the camera.&lt;br /&gt;
; move_map : Move mapped to a specified location on the image.&lt;br /&gt;
; move_pseudo_map : As move_map above. Pseudo-mapped motion can be used when mapped motion is not supported but relative motion is in which case mapped motion can be roughly approximated by careful calibration.&lt;br /&gt;
; move_abs_&amp;lt;direction&amp;gt; : Move to a specified absolute location. The direction element gives a hint to the direction to go but can be omitted. If present it will be one of &amp;#039;&amp;#039;&amp;#039;up&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;down&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;left&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;right&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;upleft&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;upright&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;downleft&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;downright&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
; move_rel_&amp;lt;direction&amp;gt; : Move a specified amount in the given direction. &lt;br /&gt;
; move_con_&amp;lt;direction&amp;gt; : Move continuously in the given direction until told to stop.&lt;br /&gt;
; move_stop : Stop any motion which may be in progress. &lt;br /&gt;
; zoom_abs_&amp;lt;direction&amp;gt; : Zoom to a specified absolute zoom position. The direction element gives a hint to the direction to go but can be omitted. If present it will be one of &amp;#039;&amp;#039;&amp;#039;tele&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;wide&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
; zoom_rel_&amp;lt;direction&amp;gt; : Zoom a specified amount in the given direction.&lt;br /&gt;
; zoom_con_&amp;lt;direction&amp;gt; : Zoom continuously in the given direction until told to stop.&lt;br /&gt;
; zoom_stop : Stop any zooming which may be in progress.&lt;br /&gt;
; focus_auto : Set focusing to be automatic.&lt;br /&gt;
; focus_man : Set focusing to be manual.&lt;br /&gt;
; focus_abs_&amp;lt;direction&amp;gt; : Focus to a specified absolute focus position. The direction element gives a hint to the direction to go but can be omitted. If present it will be one of &amp;#039;&amp;#039;&amp;#039;near&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;far&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
; focus_rel_&amp;lt;direction&amp;gt; : Focus a specified amount in the given direction.&lt;br /&gt;
; focus_con_&amp;lt;direction&amp;gt; : Focus continuously in the given direction until told to stop.&lt;br /&gt;
; focus_stop : Stop any focusing which may be in progress.&lt;br /&gt;
; white_&amp;lt;subcommand&amp;gt; : As per the focus commands, except that direction may be &amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;out&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
; iris_&amp;lt;subcommand&amp;gt; : As per the focus commands, except that direction may be &amp;#039;&amp;#039;&amp;#039;open&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;close&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
; preset_set : Set the given preset to the current location.&lt;br /&gt;
; preset_goto : Move to the given preset.&lt;br /&gt;
; preset_home : Move to the &amp;#039;&amp;#039;&amp;#039;home&amp;#039;&amp;#039;&amp;#039; preset.&lt;br /&gt;
&lt;br /&gt;
==Mobile Devices==&lt;br /&gt;
&lt;br /&gt;
* After 1.24.x, access to the &amp;quot;light&amp;quot; interface changed to http://xxx.xxx.xxx.xxx/zm/index.php?skin=mobile ; You may find that you have a directory named &amp;quot;skins&amp;quot; under ZoneMinder base dir, so you may use one of the existent skins as a base to adapt to your needs; &lt;br /&gt;
&lt;br /&gt;
Type this in your mobile browser: http://xxx.xxx.xxx.xxx/zm/index.php?format=xhtml (deprecated)&lt;br /&gt;
&lt;br /&gt;
ZoneMinder has always had a minimal WML (Wireless Markup Language) capability to allow it to function on mobile phones and similar devices. However as of 1.20.0 this is now deprecated and has been replaced with a new XHTML – Mobile Profile mode as well as the default HTML4. XHTML-MP is a small, and limited, version of XHTML intended for mobile devices and is based on XHTML Basic. It does not contain scripting or other dynamic elements and essentially is a subset of HTML as most people know it.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder XHTML-MP interface allows you to log into your installation via your phone or mobile devices and perform a limited number of tasks. These include viewing recent events, and monitoring live streams. However unlike the full interfaces these elements are presented as still images requiring manual refreshing. For now the XHTML-MP interface is presented as a prototype interface; rather than one offering full capabilities. As such, please feel free to make comments or offer suggestions via the forums on http://www.zoneminder.com.&lt;br /&gt;
&lt;br /&gt;
As well as XHTML-MP, ideally I’d like to be able to offer a WML2.0 interface. WML2.0 is a blending of WML1.3, which is traditional WAP, and XHTML. As such it offers the scripting that WML has traditionally included plus the better control of mark-up that is the realm of XHTML. Unfortunately so far I’m unaware of any devices that support WML2.0 even if they say they are WAP2 compliant; certainly I’ve never had a phone that does. If you find out that a particular phone does support this then please let me know (or better still send me the phone!).&lt;br /&gt;
&lt;br /&gt;
If you wish to use the XHTML-MP interface to ZoneMinder there is no extra configuration required to enable it per se. However ZoneMinder needs to be able to figure out what kind of content to deliver to particular browsers, so you have two choices. You can edit zm.php and include a definition that corresponds to your phone, describing a small number of basic capabilities, you will see a couple of examples already there, or you can use the comprehensive open source WURFL package available from http://wurfl.sourceforge.net/. You will need to download both the WURFL php files and the wurfl.xml file itself. WURFL is a resource containing information on the capabilities of a huge number of mobile phones, devices and browsers. Thus once it has matched your phone it can determine various capabilities it may possess. This means that ZoneMinder itself only has to deal with these capabilities and not the individual phone types. If you prefer you can also add the format=xHTML url parameter when you load ZoneMinder to force the xHTML format and skip the automatic determination altoghether.&lt;br /&gt;
&lt;br /&gt;
To use WURFL you should install the php files in the same directory as ZoneMinder and then create a ‘wurfl’ sub-directory and ensure it is readable and writeable (or preferably owned by) your web server user. You should put the wurfl.xml file in there. One other thing you may need to change, as the xml file is quite large, is the ‘memory_limit’ setting in php.ini as the default setting of 8Mb may be too small. Once you’ve done this you should find that your phone or device is recognised and if it can support XHTML-MP it will receive that interface. If your phone is very new, or you are using an old version of the XML file you might find that it is not present however. The WURFL library uses a caching strategy to avoid reloading the whole XML file each time so check if a sensible looking cache file has been created in the ‘wurfl’ sub-directory also check the wurfl.log in the same place.&lt;br /&gt;
&lt;br /&gt;
The WURFL is a third party application and as such I am unable to offer support directly for it. If you feel your device is missing or incorrectly represented please contact the authors via their own channels. If on the other hand you have any comments on ZoneMinder on your device specifically please let me know and I would be pleased to hear about it.&lt;br /&gt;
&lt;br /&gt;
As support for cookies in mobile devices is patchy at best, the groups feature is not fully implemented in the XHTML-MP views. Instead if there is a group called ‘Mobile’ already defined then that group will always be effective, if not then all monitors available to the logged in user will be visible,&lt;br /&gt;
&lt;br /&gt;
==Logging==&lt;br /&gt;
Most components of ZoneMinder can emit informational, warning, error and debug messages in a standard format. These messages can be logged in one or more locations. By default all messages produced by scripts are logged in &amp;lt;script name&amp;gt;.log files which are placed in the directory defined by the ZM_PATH_LOGS configuration variable. This is initially defined as ‘/tmp’ though it can be overridden (see the Options and Users section above). So for example, the zmpkg.pl script will output messages to /tmp/zmpkg.pl, an example of these messages is&lt;br /&gt;
&lt;br /&gt;
 03/01/06 13:46:00.166046 zmpkg[11148].INF [Command: start]&lt;br /&gt;
&lt;br /&gt;
where the first part refers to the date and time of the entry, the next section is the name (or an abbreviated version) of the script, followed by the process id in square brackets, a severity code (INF, WAR, ERR or DBG) and the debug text. If you change the location of the log directory, ensure it refers to an existing directory which the web user has permissions to write to. Also ensure that no logs are present in that directory the web user does not have permission to open. This can happen if you run commands or scripts as the root user for testing at some point. If this occurs then subsequent non-privileged runs will fails due to being unable to open the log files.&lt;br /&gt;
&lt;br /&gt;
As well as specific script logging above, information, warning and error messages are logged via the system syslog service. This is a standard component on Linux systems and allows logging of all sorts of messages in a standard way and using a standard format. On most systems, unless otherwise configured, messages produced by ZoneMinder will go to the /var/log/messages file. On some distributions they may end up in another file, but usually still in /var/log. Messages in this file are similar to those in the script log files but differ slightly. For example the above event in the system log file looks like&lt;br /&gt;
 &lt;br /&gt;
 Jan  3 13:46:00 shuttle52 zmpkg[11148]: INF [Command: start]&lt;br /&gt;
&lt;br /&gt;
where you can see that the date is formatted differently (and only to 1 second precision) and there is an additional field for the hostname (as syslog can operate over a network). As well as ZoneMinder entries in this file you may also see entries from various other system components. You should ensure that your syslogd daemon is running for syslog messages to be correctly handled.&lt;br /&gt;
&lt;br /&gt;
A number of users have asked how to suppress or redirect ZoneMinder messages that are written to this file. This most often occurs due to not wanting other system messages to be overwhelmed and obscured by the ZoneMinder produced ones (which can be quite frequent by default). In order to control syslog messages you need to locate and edit the syslog.conf file on your system. This will often be in the /etc directory. This file allows configuration of syslog so that certain classes and categories of messages are routed to different files or highlighted to a console, or just ignored. Full details of the format of this file is outside the scope of this document (typing ‘man syslog.conf’ will give you more information) but the most often requested changes are easy to implement.&lt;br /&gt;
&lt;br /&gt;
The syslog service uses the concept of priorities and facilities where the former refers to the importance of the message and the latter refers to that part of the system from which it originated. Standard priorities include ‘info’, ‘warning’, ‘err’ and ‘debug’ and ZoneMinder uses these priorities when generating the corresponding class of message. Standard facilities include ‘mail’, ‘cron’ and ‘security’ etc but as well this, there are eight ‘local’ facilities that can be used by machine specific message generators. ZoneMinder produces it’s messages via the ‘local1’ facility.&lt;br /&gt;
&lt;br /&gt;
So armed with the knowledge of the priority and facility of a message, the syslog.conf file can be amended to handle messages however you like.&lt;br /&gt;
&lt;br /&gt;
So to ensure that all ZoneMinder messages go to a specific log file you can add the following line near the top of your syslog.conf file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;# Save ZoneMinder messages to zm.log&lt;br /&gt;
local1.*                        /var/log/zm/zm.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which will ensure that all messages produced with the local1 facility are routed to fhe /var/log/zm/zm.log file. However this does not necessarily prevent them also going into the standard system log. To do this you will need to modify the line that determines which messages are logged to this file. This may look something like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;# Log anything (except mail) of level info or higher.&lt;br /&gt;
# Don&amp;#039;t log private authentication messages!&lt;br /&gt;
*.info;mail.none;news.none;authpriv.none;cron.none      /var/log/messages&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
by default. To remove ZoneMinder messages altogether from this file you can modify this line to look like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;*.info;local1.!*;mail.none;news.none;authpriv.none;cron.none     /var/log/messages&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which instructs syslog to ignore any messages from the local1 facility. If however you still want warnings and errors to occur in the system log file, you could change it to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;*.info;local1.!*;local1.warning;mail.none;news.none;authpriv.none;cron.none     /var/log/messages&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which follows the ignore instruction with a further one to indicate that any messages with a facility of local1 and a priority of warning or above should still go into the file.&lt;br /&gt;
&lt;br /&gt;
These recipes are just examples of how you can modify the logging to suit your system, there are a lot of other modifications you could make. If you do make any changes to syslog.conf you should ensure you restart the syslogd process or send it a HUP signal to force it to reread its configuration file otherwise your changes will be ignored.&lt;br /&gt;
&lt;br /&gt;
The discussion of logging above began by describing how scripts produce error and debug messages. The way that the binaries work is slightly different. Binaries generate information, warning and error messages using syslog in exactly the same way as scripts and these messages will be handled identically. However debug output is somewhat different. For the scripts, if you want to enable debug you will need to edit the script file itself and change the DBG_LEVEL constant to have a value of 1. This will then cause debug messages to be written to the &amp;lt;script&amp;gt;.log file as well as the more important messages. Debug messages however are not routed via syslog. Scripts currently only have one level of debug so this will cause any and all debug messages to be generated. Binaries work slightly differently and while you can edit the call to zmDbgInit that is present in every binary’s ‘main’ function to update the initial value of the debug level, there are easier ways.&lt;br /&gt;
&lt;br /&gt;
The simplest way of collecting debug output is to click on the Options link from the main ZoneMinder console view and then go to the Debug tab. There you will find a number of debug options. The first thing you should do is ensure that the ZM_EXTRA_DEBUG setting is switched on. This enables debug generally. The next thing you need to do is select the debug target, level and destination file using the relevant options. Click on the ‘?’ by each option for more information about valid settings. You will need to restart ZoneMinder as a whole or at least the component in question for logging to take effect. When you have finished debugging you should ensure you switch debug off by unchecking the ZM_EXTRA_DEBUG option and restarting ZoneMinder. You can leave the other options as you like as they are ignored if the master debug option is off.&lt;br /&gt;
&lt;br /&gt;
Once you have debug being logged you can modify the level by sending USR1 and USR2 signals to the relevant binary (or binaries) to increase or decrease the level of debug being emitted with immediate effect. This modification will not persist if the binary gets restarted however.&lt;br /&gt;
&lt;br /&gt;
If you wish to run a binary directly from the command line to test specific functionality or scenarios, you can set the ZM_DBG_LEVEL and ZM_DBG_LOG environment variables to set the level and log file of the debug you wish to see, and the ZM_DBG_PRINT environment variable to 1 to output the debug directly to your terminal.&lt;br /&gt;
&lt;br /&gt;
All ZoneMinder logs can now be rotated by logrotate. A sample logrotate config file is shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/var/log/zm/*.log {&lt;br /&gt;
    missingok&lt;br /&gt;
    notifempty&lt;br /&gt;
    sharedscripts&lt;br /&gt;
    postrotate&lt;br /&gt;
        /usr/local/bin/zmpkg.pl logrot 2&amp;gt; /dev/null &amp;gt; /dev/null || true&lt;br /&gt;
    endscript&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
Please see the [[Troubleshooting]] Page.&lt;br /&gt;
&lt;br /&gt;
==To Do==&lt;br /&gt;
Seeing as ZoneMinder is so young and has kind of evolved rather than being planned there are a bunch of improvements and enhancements still to do, here is just a sample.&lt;br /&gt;
&lt;br /&gt;
* Perhaps split out devices - I think devices should probably be a separate table and class from monitors. Not critical but would represent a better model.&lt;br /&gt;
* Support multicasting real-time video streaming. Current video streaming methods tend to lag after a while. This is a limitation of a single tcp stream per se I think. Using multicasting would make this more responsive.&lt;br /&gt;
* Support mpeg video as an input. This is easy to pick up if it’s a tcp stream, but a bit more of a pain if it’s over udp.&lt;br /&gt;
* Mouseover help - A bit more help popping up when you mouseover things would be handy. A bit more help full stop actually.&lt;br /&gt;
* Automatic device configuration - Video 4 Linux supports various device queries, it should be possible to get most of the device capability information from the device itself. The zmu utility does this now but it&amp;#039;s not yet integrated into the web pages.&lt;br /&gt;
* Extend the API. Well ok it&amp;#039;s not really got an API yet but the image data is held in shared memory in a very simple format. In theory you could use the capture daemon to grab the images and other things could read them from memory, or the analysis daemon could read images from elsewhere. Either way this should be done through an API, and would need a library I think. Also the zmu utility could probably do a whole lot more to enable other things to manage when the daemons become active etc. The perl modules in 1.22.0 are a first step in this direction.&lt;br /&gt;
* Allow ZoneMinder to &amp;#039;train&amp;#039; itself by allowing the user to select events that are considered important and to discard those that should be ignored. ZoneMinder will interpolate, add a bit of magic, and recommend settings that will support this selection automatically thereafter. The hooks for this are already in to some extent.&lt;br /&gt;
* Add sound support to allow a captured audio channel to be associated with a video device. Work on this feature has already begun.&lt;br /&gt;
* Comments - Needs many more, but that&amp;#039;s just me I&amp;#039;m hopeless at commenting things out. I&amp;#039;ll get round to it soon though honest! You&amp;#039;re lucky to even get this document.&lt;br /&gt;
&lt;br /&gt;
==Bugs==&lt;br /&gt;
* When opening a link to an event etc from a notification email the window that is opened is just a regular browser window and not in the context of a proper ZoneMinder web interface. Thus it comes up too big usually (not a major issue) and also things like &amp;#039;Delete&amp;#039; don&amp;#039;t work as it wants to do things to its parent (which is more of a major issue).&lt;br /&gt;
* The .sock files used by the *nix sockets I suspect may have the odd permission issue now and again. I think everything recovers from it but it needs checking out.&lt;br /&gt;
Probably bucket loads more, just fire them at me.&lt;br /&gt;
*X10 support broken see my notes for workaround.&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=15792&lt;br /&gt;
&lt;br /&gt;
==Non-Bugs==&lt;br /&gt;
Yes, those are tabs in the indents; I like tabs so don&amp;#039;t go changing them to spaces please. Also, yes I  like my opening braces on their own line most of the time, what&amp;#039;s the point of brackets that don&amp;#039;t line up?&lt;br /&gt;
&lt;br /&gt;
Everything else that isn&amp;#039;t definitely broken is probably deliberate, or was once anyway.&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
ZoneMinder is released under the GPL, see below.&lt;br /&gt;
&lt;br /&gt;
Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009  Philip Coombes&lt;br /&gt;
&lt;br /&gt;
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the [http://www.gnu.org/copyleft/gpl.html GNU General Public License] for more details.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6834</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6834"/>
		<updated>2015-05-14T01:59:14Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&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;
&amp;#039;&amp;#039;&amp;#039;&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;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Today, those two versions are Fedora 21 and 20. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation====&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386 or x86_64 architectures on Fedora 20:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/f/20/i386/zmrepo-20-3.fc20.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-20-3.fc20.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder/README.Fedora&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Fedora before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386, x86_64, or armv7fl architectures on Fedora 21:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/f/21/i386/zmrepo-21-1.fc21.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-21-1.fc21.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder/README.Fedora&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Fedora before ZoneMinder will function correctly.&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6824</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6824"/>
		<updated>2015-04-22T17:49:54Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The intent of this walk through is to install a very base/bare bones installation of CentOS that runs only ZoneMinder. This would be for a dedicated ZoneMinder server with no GUI or any unnecessary services running. The reason for the very light-weight installation is to make the majority of system resources available to ZoneMinder, not the OS. With this installation, memory is reduced to around 140-160MB, and CPU usage is practically nonexistent. The CentOS base installation is very easy to install and doesn’t take too much time as long as you have some type of broadband connection. There are many ways to install CentOS, but this article covers only two, because they are related.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;All CLI operations/commands in this How-To are done as root, in the /root directory. The reasoning is that this system would be in a secure environment to begin with. However, if you need to add a user to run these services to better secure the system, then you can, but keep in mind that some items must run as root.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on CentOS.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. It also includes all dependencies that are not found in the default CentOS repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
The development team strictly uses CentOS, but these packages should work on Red Hat Enterprise Linux and Scientific Linux. The rpms in zmrepo are intended to work with &amp;#039;&amp;#039;default installations&amp;#039;&amp;#039; of these Linux distributions.  Modified versions are not guaranteed to work. Continue to the Disclaimer below for details.&lt;br /&gt;
&lt;br /&gt;
Please report any issues with RHEL and SL, as we have no way of pro-actively discovering them.&lt;br /&gt;
&lt;br /&gt;
==== Disclaimer ====&lt;br /&gt;
This could also be appropriately called &amp;#039;&amp;#039;&amp;#039;Who should not Use&amp;#039;&amp;#039;&amp;#039; zmrepo. &lt;br /&gt;
&lt;br /&gt;
The goal behind CentOS is that of an enterprise operating system. Stability is prioritized over the latest and greatest version of a particular package. Fortunately, bug fixes are backported. Consequently, you should &amp;#039;&amp;#039;never&amp;#039;&amp;#039; replace the core packages in CentOS! If you truly think that you &amp;quot;have to have&amp;quot; some package that is newer than what is found in the default repository then you should consider using a different Linux distro.&lt;br /&gt;
&lt;br /&gt;
The CentOS maintainers have a great write-up that describes this in much more detail [http://wiki.centos.org/PackageManagement/SourceInstalls here].  Pay close attention to the all the do&amp;#039;s, dont&amp;#039;s, and &amp;quot;this will break&amp;quot; comments.&lt;br /&gt;
&lt;br /&gt;
Zmrepo extends this same philosophy onto ZoneMinder. While ZoneMinder requires many dependencies to work, zmrepo will not overwrite any core packages.  It only adds packages that, otherwise, would not be available.&lt;br /&gt;
&lt;br /&gt;
One other case is worth mentioning. This repository is intended &amp;#039;&amp;#039;only&amp;#039;&amp;#039; for those who have installed RHEL/CentOS/SL using the &amp;#039;&amp;#039;&amp;#039;official installation media for that distribution&amp;#039;&amp;#039;&amp;#039;!  This means that these rpms are not intended to work with third parties that release their own spin of CentOS, which contain their own third party application preinstalled.  Third parties are allowed to modify the original distribution in any way, which means we can&amp;#039;t guarantee the rpms in zmrepo will be compatible.  &lt;br /&gt;
&lt;br /&gt;
For example, if you installed &amp;quot;CentOS&amp;quot; using an installation disk from an Astericks vendor, then the rpms in zmrepo are known not to work.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386 or x86_64 architectures on CentOS 6:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/el/6/i386/zmrepo-6-4.el6.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-6-4.el6.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder-*/README.CentOS&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.CentOS before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
NOTE: RHEL users must enable the &amp;quot;rhel-6-server-optional-rpms&amp;quot; repositoy on their system before attempting to install ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
A YouTube video that steps through the installation can be viewed [https://www.youtube.com/watch?v=l2lLvl8WxfU here.]&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for x86_64 architecture (only) on CentOS 7:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/el/7/x86_64/zmrepo-7-4.el7.centos.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-7-4.el7.centos.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder-*/README.Centos7&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Centos7 before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
== CentOS 5.6 &amp;amp; ZoneMinder 1.25.0 ==&lt;br /&gt;
This guide is for CentOS v5.6 (&amp;lt;b&amp;gt;Notes for using this guide with CentOS 6 are in chapter 2.&amp;lt;/b&amp;gt;) with ZoneMinder v1.25.0 which are the newest released versions as of this update (Summer 2011).  If you are attempting to install newer versions of either using this guide, you will have to adjust file and directory names denoted below. &lt;br /&gt;
&lt;br /&gt;
=== Step One - Get CentOS ===&lt;br /&gt;
You can download the “.iso” file(s) for CentOS from http://www.centos.org/&amp;lt;br/&amp;gt;&lt;br /&gt;
Alternatively download the net-install version of CentOS which is basically just the first CD.&lt;br /&gt;
Here is one location to download the net-install version:&amp;lt;br/&amp;gt;&lt;br /&gt;
Download i386: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://mirror.centos.org/centos/5/isos/&lt;br /&gt;
&lt;br /&gt;
=== Step Two - Installation Source ===&lt;br /&gt;
Regardless of which method you use, the next few steps are the same.&amp;lt;br/&amp;gt;&lt;br /&gt;
Begin by booting your system up with either cd/dvd.&amp;lt;br/&amp;gt;&lt;br /&gt;
Choose the options that best fit your environment until you reach the “Installation Method”. &lt;br /&gt;
&lt;br /&gt;
[[Image:centosnetinstal-http.png]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;#039;&amp;#039;&amp;#039;HTTP&amp;#039;&amp;#039;&amp;#039; ONLY if you are using the net-install method.  Otherwise, you probably want to choose &amp;#039;&amp;#039;&amp;#039;Local CDROM&amp;#039;&amp;#039;&amp;#039;. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using the net-install method then enter:&amp;lt;br/&amp;gt;&lt;br /&gt;
Website Name: &amp;#039;&amp;#039;&amp;#039;mirror.centos.org&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for i386) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/i386&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for 64 bit) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/x86_64&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Step Three - Installation Packages ===&lt;br /&gt;
On the first screen, un-check &amp;quot;Desktop - Gnome&amp;quot; then check &amp;quot;Server&amp;quot; (not Server-GUI)&amp;lt;br/&amp;gt;&lt;br /&gt;
Make sure that you have &amp;quot;Customize now&amp;quot; selected at the bottom. (do not check &amp;quot;Packages from CentOS Extras&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-packages1.png]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Next&amp;quot; to continue&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once presented with the custom package selection, un-check/check the following:&lt;br /&gt;
 Applications = Check only &amp;quot;Editors&amp;quot; and &amp;quot;Text Based Internet&amp;quot;&lt;br /&gt;
 Development = Check only &amp;quot;Development Libraries&amp;quot; and &amp;quot;Development Tools&amp;quot;&lt;br /&gt;
 Servers = Un-check everything&lt;br /&gt;
 Base System = Check only &amp;quot;Base&amp;quot; (you can check Administration Tools and System Tools if you need them, but they are not necessary)&lt;br /&gt;
&lt;br /&gt;
[[Image:Centosinstall-packages2.png]]&lt;br /&gt;
&lt;br /&gt;
Now let the system finish the installation.&lt;br /&gt;
&lt;br /&gt;
[[Image:centosisntall-end.png]]&lt;br /&gt;
&lt;br /&gt;
=== Step Four - Configuration ===&lt;br /&gt;
After the first reboot, the setup screen should appear. If not, log into the system and type &amp;quot;setup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup1.png]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Firewall Configuration&amp;quot; and set the &amp;quot;Security Level&amp;quot; and &amp;quot;SELinux&amp;quot; to &amp;quot;Disabled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup2.png]]&lt;br /&gt;
&lt;br /&gt;
Next, we are going to disable a number of system services. Go back to the setup screen and select &amp;quot;System Services&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Un-Check:&lt;br /&gt;
 apmd&lt;br /&gt;
 bluetooth&lt;br /&gt;
 cups&lt;br /&gt;
 hidd&lt;br /&gt;
 ip6tables&lt;br /&gt;
 iptables&lt;br /&gt;
 netfs&lt;br /&gt;
 nfslock&lt;br /&gt;
 pcscd&lt;br /&gt;
 portmap&lt;br /&gt;
After disabling the services, select &amp;quot;Disable Now and On Boot&amp;quot;, exit the setup tool, and log into the system if you haven&amp;#039;t already.&lt;br /&gt;
*Screen is a simple program that allows you to run commands from a &amp;quot;Hosted&amp;quot; command line interface. This helps if you loose your connection to the server for any reason in that it enables you to resume (screen -r) right where you left off. Often times, I will start a large update/upgrade, leave it for the day, then come back and see where it&amp;#039;s at later. Screen allows you to do that without having to be connected.&lt;br /&gt;
*Install Screen&lt;br /&gt;
 yum install screen&lt;br /&gt;
*To start a screen session just type&lt;br /&gt;
 screen&lt;br /&gt;
*If you get disconnected and need to resume your session of screen simply type&lt;br /&gt;
 screen -r&lt;br /&gt;
&lt;br /&gt;
=== Step Five - Installing ZoneMinder 1.25.0 ===&lt;br /&gt;
First, we need to download files and prepare the system&lt;br /&gt;
*Add the RPM Forge repository to CentOS. This will allow the installation of a number of services/applications later without having to manually install them.&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i386 CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the needed files, ZoneMinder 1.25.0 and the Cambozola addon&lt;br /&gt;
 wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 wget http://www.zoneminder.com/sites/zoneminder.com/downloads/cambozola.jar&lt;br /&gt;
*Now let&amp;#039;s install all the services and programs that will be needed (&amp;#039;&amp;#039;If you encounter any dependency errors using yum, try running &amp;#039;&amp;#039;&amp;#039;yum clean all&amp;#039;&amp;#039;&amp;#039; then re-try the install command(s).&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
*tip: Copy/paste two lines at a time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum -y install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc \&lt;br /&gt;
pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel ImageMagick&lt;br /&gt;
&lt;br /&gt;
yum -y install libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools \&lt;br /&gt;
perl-Date-Manip perl-LWP-UserAgent-Determined&lt;br /&gt;
&lt;br /&gt;
yum -y install perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Sys-Mmap \&lt;br /&gt;
perl-Module-Load subversion git yasm bzip2 bzip2-devel bzip2-libs lbzip2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now let&amp;#039;s update everything within the new CentOS install&lt;br /&gt;
 yum -y update&lt;br /&gt;
*At this point, it might be useful to reboot your system. Oddly, sometimes things don&amp;#039;t work right unless you reboot after all the updates&lt;br /&gt;
 reboot   -or-   shutdown -r now&lt;br /&gt;
*After rebooting, log into your system&lt;br /&gt;
==== Install ffmpeg ====&lt;br /&gt;
*Now we need to make sure we use the latest &amp;quot;tested&amp;quot; version of &amp;quot;ffmpeg&amp;quot;. This is the latest version of ffmpeg that the ZoneMinder developers have tested with.  Download, compile and install ffmpeg:&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone git://git.videolan.org/ffmpeg.git&lt;br /&gt;
cd ffmpeg&lt;br /&gt;
./configure --enable-gpl --enable-shared --enable-pthreads&lt;br /&gt;
make &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The following commands must be done as &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install &lt;br /&gt;
make install-libs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
edit /etc/ld.so.conf and add the line &amp;quot;/usr/local/lib&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ldconfig -v&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Next, run &amp;#039;ffmpeg&amp;#039; from the command line. Make sure you do not get any errors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If &amp;#039;ffmpeg&amp;#039; runs correctly, you&amp;#039;ll see something similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg version N-32260-gaebb56e, Copyright (c) 2000-2011 the FFmpeg developers&lt;br /&gt;
  built on Aug 31 2011 21:41:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)&lt;br /&gt;
  configuration: --enable-shared --enable-swscale --enable-gpl --enable-pthreads&lt;br /&gt;
  libavutil    51. 14. 0 / 51. 14. 0&lt;br /&gt;
  libavcodec   53. 12. 0 / 53. 12. 0&lt;br /&gt;
  libavformat  53. 10. 0 / 53. 10. 0&lt;br /&gt;
  libavdevice  53.  3. 0 / 53.  3. 0&lt;br /&gt;
  libavfilter   2. 37. 0 /  2. 37. 0&lt;br /&gt;
  libswscale    2.  0. 0 /  2.  0. 0&lt;br /&gt;
  libpostproc  51.  2. 0 / 51.  2. 0&lt;br /&gt;
Hyper fast Audio and Video encoder&lt;br /&gt;
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&lt;br /&gt;
&lt;br /&gt;
Use -h to get full help or, even better, run &amp;#039;man ffmpeg&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enable services ====&lt;br /&gt;
*Turn everything on.  These commands must be run as root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 chkconfig httpd on &lt;br /&gt;
 chkconfig mysqld on &lt;br /&gt;
 chkconfig ntpd on &lt;br /&gt;
 service httpd start &lt;br /&gt;
 service mysqld start &lt;br /&gt;
 service ntpd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Install Zoneminder ====&lt;br /&gt;
*Next, we need to extract the contents of the ZoneMinder &amp;quot;tar&amp;quot; file, then jump into its directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd /root/  # Or your work directory for this installation&lt;br /&gt;
 tar -zxvf ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 cd ZoneMinder-1.25.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now we are going to configure ZoneMinder with some additional parameters. What is listed are the default CentOS directory locations.&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin&lt;br /&gt;
&lt;br /&gt;
Note: It seems for Zoneminder to build with newer versions of ffmpeg, (certainly 0.6.3) you&amp;#039;ll need to append CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; to the end of the&lt;br /&gt;
./configure line thus:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
There is a section in the FAQ &amp;#039;&amp;#039;&amp;quot;When running configure, I get a lot of messages about not being able to compile the ffmpeg libraries&amp;quot;&amp;#039;&amp;#039; about this [[http://www.zoneminder.com/wiki/index.php/FAQ]].&lt;br /&gt;
&lt;br /&gt;
Worth mentioning here is the section in the FAQ under the heading &amp;quot;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;quot; [[http://www.zoneminder.com/wiki/index.php/FAQ]]. This descibes how you can possibly reduce CPU load by half by &lt;br /&gt;
changing the system&amp;#039;s jpeg libraries and building Zoneminder with processor specific instructions.  &lt;br /&gt;
Since CentOS 6.4 CentOS now comes with libjpeg_turbo as the standard JPEG library leading to a more optimised Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default ZM_DB_HOST=localhost, ZM_DB_NAME=zm, ZM_DB_USER=zmuser, and ZM_DB_PASS=zmpass.&lt;br /&gt;
*Change &amp;quot;zmuser&amp;quot; (if you want) with the user that you will use within MySQL to access the ZoneMinder database&lt;br /&gt;
*Change &amp;quot;zmpass&amp;quot; with the password you will be using with the &amp;quot;zmuser&amp;quot; account&lt;br /&gt;
So if you wish to change it, use a command like:&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 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass&lt;br /&gt;
&lt;br /&gt;
*if you get the configure &amp;quot;error zm requires libmysqlclient.a&amp;quot; with 64 bit CentOS add the following to the end of your configure statement&lt;br /&gt;
  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
e.g. For CentOS 5.6 64-bit with support for ffmpeg.  The whole command must be executed on one line.  Make sure to change the &amp;#039;&amp;#039;&amp;#039;zmpass&amp;#039;&amp;#039;&amp;#039; to a password that matches your installation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;make install&amp;#039;&amp;#039;&amp;#039; after running the configuration steps above.&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 # Run the next command as root&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Configure MySQL ====&lt;br /&gt;
*Need to add a password for the root user of MySQL&lt;br /&gt;
*Create the zm database&lt;br /&gt;
*Create the zm database user with permissions and password&lt;br /&gt;
 mysql&lt;br /&gt;
 mysql&amp;gt; SET PASSWORD FOR root@localhost=PASSWORD(&amp;#039;new_root_password&amp;#039;);&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&amp;gt;Query OK, 1 row affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; CREATE USER &amp;#039;your_zm_user&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;your_zm_password_from_above&amp;#039;;&lt;br /&gt;
Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost;&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.02 sec)&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
&amp;gt;Bye&lt;br /&gt;
*Import the tables into the zm database&lt;br /&gt;
 cd /root/ZoneMinder-1.25.0 &lt;br /&gt;
 mysql -u root -p zm &amp;lt; db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
==== Finalize Installation of ZoneMinder ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All remaining CLI commands need to be run as root.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Make ZoneMinder startup automatically after a reboot&lt;br /&gt;
 # from the ZoneMinder-1.25 source directory&lt;br /&gt;
 cp scripts/zm /etc/init.d/&lt;br /&gt;
 chmod +x /etc/init.d/zm&lt;br /&gt;
 chkconfig zm on&lt;br /&gt;
*Add the Cambozola Java web interface&lt;br /&gt;
 cp cambozola.jar /var/www/html/zm/&lt;br /&gt;
*Make sure you have permission to view it from apache:&lt;br /&gt;
 chown apache:apache /var/www/html/zm/cambozola.jar&lt;br /&gt;
*Start ZoneMinder&lt;br /&gt;
 service zm start&lt;br /&gt;
&lt;br /&gt;
Note: You may get an error when you try to start Zoneminder using the &amp;#039;zm&amp;#039; startup script as per this forum post: [[http://www.zoneminder.com/forums/viewtopic.php?f=21&amp;amp;t=17827]] .&lt;br /&gt;
The reason for this was the default &amp;#039;zm&amp;#039; startup script was formatted with DOS line endings. If you get the errors as detailed in the above post then the fix is to convert the &lt;br /&gt;
&amp;#039;zm&amp;#039; file to use UNIX style line endings. You can do this in the Vim text editor whilst editing the &amp;#039;zm&amp;#039; file thus: &amp;#039;:set fileformat=unix&amp;#039; then save the file &amp;#039;:wq&amp;#039;. You can also &lt;br /&gt;
use the utility dos2unix to convert the file. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
* tick the box for support for the Cambozola addon within your ZoneMinder installation: http://ip-address/zm (Options-&amp;gt;Images&amp;amp;nbsp;tab-&amp;gt;OPT_CAMBOZOLA)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now have fun and add your cameras to ZoneMinder knowing you now have a very stable and streamlined OS to run it on.&lt;br /&gt;
&lt;br /&gt;
== CentOS 6 Notes ==&lt;br /&gt;
&lt;br /&gt;
The installation for CentOS 6 is pretty much the same.&lt;br /&gt;
Download CentOS 6 minimal installation ISO (CentOS-6.0-i386-minimal.iso – 257MB).  Burn to CD and install. We only want to be running in console text mode not GUI graphics mode. During installation configure network and tick to enable network adapter.&lt;br /&gt;
* Login as root and update the base install:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum -y update&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install required packages, other useful packages, and their dependencies&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum groupinstall core&lt;br /&gt;
yum groupinstall base&lt;br /&gt;
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring \&lt;br /&gt;
nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver \&lt;br /&gt;
sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel \&lt;br /&gt;
bison-devel ncurses zlib zlib-devel openssl openssl-devel gnutls-devel php-process perl-Time-HiRes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
To remove various configure/make errors in Centos 6.2, you may also want to install:&amp;lt;pre&amp;gt;&lt;br /&gt;
bzip2-libs ffmpeg-devel ffmpeg-php perl-Net-SFTP-Foreign perl-Expect perl-LWPx-ParanoidAgent.x86_64&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we continue from step four (4).&lt;br /&gt;
==== Installation of ZoneMinder ====&lt;br /&gt;
* In step five (5) the correct RPM Forge repository is:&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i686 CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In step five (5) the command that seems to configure zoneminder correctly is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/html/zm \&lt;br /&gt;
 --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache \&lt;br /&gt;
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
For Centos 6.2, I used the following configure string for success:&amp;lt;pre&amp;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 ZM_DB_NAME=zm ZM_DB_USER=&amp;lt;zm user&amp;gt; ZM_DB_PASS=&amp;lt;zm user passwd&amp;gt; ZM_SSL_LIB=openssl  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; --with-ffmpeg=/usr/share/ffmpeg  CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting FFmpeg Errors Building ZoneMinder ====&lt;br /&gt;
Using the git version of FFmpeg can cause the ZoneMinder make process to fail with unresolved symbols in ffmpeg. To remedy this, use version 0.6.5 of FFmpeg with the same configure instructions as the normal install above.&lt;br /&gt;
FFmpeg 0.6.5: http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.bz2&lt;br /&gt;
==== Troubleshooting Blank Page ====&lt;br /&gt;
If everything went ok but when accessing zoneminder&amp;#039;s web page at http://localhost/zm, the page is blank this means that there is a problem with PHP short tags. Edit setting short_open_tag in php.ini (/etc/php.ini) and change it to On.&lt;br /&gt;
* Restart apache server with:&lt;br /&gt;
&amp;lt;pre&amp;gt;service httpd restart&amp;lt;/pre&amp;gt; and you should be up and running.&lt;br /&gt;
==== Trouble shooting full drive with CentOS 6 ====&lt;br /&gt;
The default drive structure has chaned from that of CentOS 5 having the full drive allocated to the /root partition. CentOS 6 by default makes a logical volume &amp;#039;LVM&amp;#039; of 10% your drives space for the /root partition and the remaining drive as the /home partion with the exception of the swap and boot partitions.&lt;br /&gt;
&lt;br /&gt;
The will cause Zoneminder to fill the /root partition as the /var/www/html/zm/events directory is by default located here, you can use the system-config-lvm utility to re-adjust this partition balance if your system has been installed with the default partition structure.&lt;br /&gt;
&lt;br /&gt;
It is best to install CentOS 6 with a custom partition layout that is the same as CentOS 5 structure, you can also if using a single physical had drive do with out the LVM drives and create an EXT4 /root partion along with the standard /boot and /swap partitions.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[== &amp;#039;&amp;#039;&amp;#039;P.S.&amp;#039;&amp;#039;&amp;#039; ==]] aspcicc@jumpy.it&lt;br /&gt;
(Update: This does not appear to be required any more.)&lt;br /&gt;
&lt;br /&gt;
Hi! and thanks for your guide.. i want to add a little correction that have made me crazy to resolve, when I poweroff or reboot system i obtain an error related to mysql database and i have    understood that the problem was because mysqld is stopped before zoneminder to be more specific there isn&amp;#039;t a link under rc0.d (halt) and rc6.d (reboot) to zoneminder that for this lack is simply killed by killall. To resolve this problem you need to add at the start of zm (under /etc/init.d) the line&lt;br /&gt;
&lt;br /&gt;
 &amp;#039; # chkconfig: 345 99 01 &amp;#039;  (without &amp;#039; of course)&lt;br /&gt;
&lt;br /&gt;
and then run &lt;br /&gt;
chkconfig --level 345 zm on&lt;br /&gt;
chkconfig --level 06 zm off&lt;br /&gt;
&lt;br /&gt;
So the link to shutdown zm is created under rc0.d and rc6.d and zoneminder is started at the end of poweron and stopped at the beginning of the poweroff&lt;br /&gt;
&lt;br /&gt;
For information about priority starting and stopping processes see: http://www.netadmintools.com/art94.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Added Dependency: ImageMagick&lt;br /&gt;
&lt;br /&gt;
Removed Dependency: perl-Time-HiRes, which causes a conflict with the default perl package.&lt;br /&gt;
&lt;br /&gt;
Also, mysql seems to install with no password for the root user, and the zm DB create script creates the database on the fly, which means that the database create command needs to have the &amp;quot;-p zm&amp;quot; removed from the command line.&lt;br /&gt;
&lt;br /&gt;
Could someone verify that this is correct, to make sure it&amp;#039;s not just something I missed?&lt;br /&gt;
&lt;br /&gt;
Thanks! &lt;br /&gt;
terry@cnysupport.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Struggling to get x264 and ffmpeg working?  I used the latest SVN versions not the Centos packages.  But I was getting&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I followed these instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /etc/ld.so.conf.d&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* add another file:  custom-libs.conf&lt;br /&gt;
* inside, put :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/local/lib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* save the file&lt;br /&gt;
* run ldconfig&lt;br /&gt;
&amp;lt;pre&amp;gt;ldconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BeeryGaz&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== Failed monitors or ZM refusing to start ====&lt;br /&gt;
A problem that took me some time to figure out on two installations was SElinux.&lt;br /&gt;
SElinux stops Zoneminder from accessing some system parts or doing some functions so will cause various errors or simply drive you nuts trying to figure out.&lt;br /&gt;
&lt;br /&gt;
Look at the following page on how to disable SElinux or use permissive mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some of the errors that I was getting with a fresh install on CentOS 6 was&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2013-02-16 16:13:10.828590	zmwatch	14898	ERR	Can&amp;#039;t open memory map file &amp;#039;/dev/shm/zm.mmap.1&amp;#039;: No such file or directory	zmwatch.pl	&lt;br /&gt;
2013-02-16 16:13:10.736988	zmfix	15317	ERR	Can&amp;#039;t stat /dev/video0: Permission denied	zmfix.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== ZoneMinder 1.26.x ==&lt;br /&gt;
&lt;br /&gt;
Zoneminder after a long period of none development is now being developed by the community, these notes are to try and help with the installation of the new release on CentOS 5 and CentOS 6.&lt;br /&gt;
All testing has been done on a CentOS 6.4 fresh install server.&lt;br /&gt;
&lt;br /&gt;
=== Cmake installation notes ===&lt;br /&gt;
&lt;br /&gt;
Compiling of Zoneminder can now be done with the &amp;#039;Cmake&amp;#039; command in replacement of the ./configure command this should automatically configure the build with the minimum of parameters. The &amp;#039;Cmake&amp;#039; command at time of writing produced a partially working installation with the main files installed into /usr/local/bin/zoneminder and associated folders, different from the above guides.&lt;br /&gt;
&lt;br /&gt;
The webfiles require to be linked via a zoneminder.conf file located with in the /disto/redhat directory inside the build directory that requires to be coped to the /etc/httpd/conf.d directory, this will need to be edited to the correct location of the webfiles and remove the local only command as indicated with in the file.&lt;br /&gt;
&lt;br /&gt;
The Cmake install failed to use my BTTV capture card producing various errors with a potential solution given here &amp;lt;pre&amp;gt;http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21709&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ./configure compile ===&lt;br /&gt;
&lt;br /&gt;
To install via the traditional ./configure method you first need to run the ./bootstrap.sh file to generate the required configure file, the install can then progress as the above installation guides.&lt;br /&gt;
&lt;br /&gt;
This method has produced a fully working installation at time of writing.&lt;br /&gt;
&lt;br /&gt;
== pt_BR Instructions ==&lt;br /&gt;
&lt;br /&gt;
Here is a good walkthrough install of zoneminder in CentOS using the rpm package method. It is intended to Portuguese  (pt or pt_BR) audience.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://dulimind.blogspot.com.br/2015/02/zoneminder-no-centos-6-metodo-facil-com.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=6814</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=6814"/>
		<updated>2015-04-10T00:29:06Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may want to change the storage location - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;service zoneminder stop&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;, or &amp;quot;systemctl stop zoneminder&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian and Ubuntu, these are under /var/cache/zoneminder. In CentOS and Fedora, these are under /var/lib/zoneminder. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder until this entire process is completed. Doing so will cause all your events to be lost!&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /var/lib/zoneminder/events /var/lib/zoneminder/events_old&lt;br /&gt;
-- or --&lt;br /&gt;
rm -rf /var/lib/zoneminder/events&lt;br /&gt;
&lt;br /&gt;
Add these lines in fstab to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or in some cases,&lt;br /&gt;
&lt;br /&gt;
 /otherdrive/zoneminder/images /var/lib/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/lib/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Ensure ZoneMinder can write to the new destination by changing the owner and group to that of the web server user account. Debian based distros typically use &amp;quot;www-data&amp;quot; as the web server user account while many rpm based distros use &amp;quot;apache&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
 chown -R apache:apache /otherdrive/zoneminder&lt;br /&gt;
&lt;br /&gt;
6. Finally, restart zoneminder ( &amp;quot;service zoneminder start&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;, or &amp;quot;systemctl start zoneminder&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;br /&gt;
&lt;br /&gt;
FREQUENTLY ASKED QUESTIONS&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
Why can&amp;#039;t I just symlink the newdrive to the events folder?&lt;br /&gt;
Answer: &lt;br /&gt;
Because it does not work in every case. Many rpm and deb packages need the file folders set up exactly the way they were when the first zoneminder package was installed. Changing that around can cause package upgrades to fail, or worse you could lose all your data!&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
I noticed that there is an events folder under /usr/share/zoneminder/www, can I mount my newdrive to that folder?&lt;br /&gt;
Answer:&lt;br /&gt;
This will not work in every case either and should be avoided. The events and images folders under /usr/share/zoneminder/www are actually symbolic links that point to the real folders under /var/lib/zoneminder (or /var/cache/zoneminder).  Altering this in any way has the same affect as the answer to the first question.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=6813</id>
		<title>Using a dedicated Hard Drive</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Using_a_dedicated_Hard_Drive&amp;diff=6813"/>
		<updated>2015-04-10T00:24:29Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may want to change the storage location - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not terribly difficult to do, but may be non-obvious to the untaught so here&amp;#039;s a brief guide.&lt;br /&gt;
&lt;br /&gt;
Some commands here are based on Debian/Ubuntu installs&lt;br /&gt;
&lt;br /&gt;
1. Become root or &amp;quot;sudo -s&amp;quot; to gain root privs.&lt;br /&gt;
&lt;br /&gt;
2. Stop Zoneminder.  &amp;quot;service zoneminder stop&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl stop&amp;quot;, or &amp;quot;systemctl stop zoneminder&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Mount your new partition onto the root filesystem, ensuring it is automatically remounted at boot time by editing /etc/fstab  -- For the benefit of this guide, I&amp;#039;m calling my new partition /newdrive&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. The only condition is that the I/O throughput should be up to handling what Zoneminder will throw at it. For that speed reason, some favour non-journalled filesystems and accept the extra risk of data protection&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
4. Locate Zoneminder&amp;#039;s &amp;quot;events&amp;quot; and &amp;quot;images&amp;quot; directories. In Debian and Ubuntu, these are in /var/cache/zoneminder. In CentOS and Fedora, these are under /var/lib/zoneminder. &lt;br /&gt;
&lt;br /&gt;
If you wish to copy the data across, MOVE the events and images directories to /newdrive  &amp;#039;&amp;#039;(Note this will take a long time on systems with many events). Also, DO NOT restart zoneminder if it cannot locate these files as zmaudit.pl will delete the database entries for any events it cannot match files to&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive. There is no need to remove the &amp;quot;orphaned&amp;quot; entries in the database, zmaudit will take care of those.&lt;br /&gt;
&lt;br /&gt;
Eg: &lt;br /&gt;
&lt;br /&gt;
mkdir /newdrive/events&lt;br /&gt;
&lt;br /&gt;
mv /var/lib/zoneminder/events /var/lib/zoneminder/events_old&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add these lines in fstab to bind-mount an alternate location:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /otherdrive ext3 defaults 0 2&lt;br /&gt;
 /otherdrive/zoneminder/images /var/cache/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or in some cases,&lt;br /&gt;
&lt;br /&gt;
 /otherdrive/zoneminder/images /var/lib/zoneminder/images none defaults,bind  0 2&lt;br /&gt;
 /otherdrive/zoneminder/events /var/lib/zoneminder/events none defaults,bind 0 2&lt;br /&gt;
&lt;br /&gt;
or if you have a separate partition for each:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2&lt;br /&gt;
 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2&lt;br /&gt;
(Repeat for images)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Ensure ZoneMinder can write to the new destination by changing the owner and group to that of the web server user account. Debian based distros typically use &amp;quot;www-data&amp;quot; as the web server user account while many rpm based distros use &amp;quot;apache&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
 chown -R apache:apache /otherdrive/zoneminder&lt;br /&gt;
&lt;br /&gt;
6. Finally, restart zoneminder ( &amp;quot;service zonemidner start&amp;quot;, &amp;quot;/usr/bin/zmpkg.pl start&amp;quot;, or &amp;quot;systemctl start zoneminder&amp;quot;)  Monitor its operation and ensure new events are being created normally and are viewable. Zoneminder should also update the &amp;quot;Disk: %%&amp;quot; on its Console screen to reflect the disk space on its new partition.&lt;br /&gt;
&lt;br /&gt;
FREQUENTLY ASKED QUESTIONS&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
Why can&amp;#039;t I just symlink the newdrive to the events folder?&lt;br /&gt;
Answer: &lt;br /&gt;
Because it does not work in every case.  Many rpm and deb packages need the file folders set up exactly the way they were when the first zoneminder package was installed.  Changing that around can cause package upgrades to fail or worse you could lose all your data!&lt;br /&gt;
&lt;br /&gt;
Question:&lt;br /&gt;
I noticed that there is an events folder under /usr/share/zoneminder/www, can I mount my newdrive to that folder?&lt;br /&gt;
Answer:&lt;br /&gt;
This will not work in every case either and should be avoided. The events and images folders under /usr/share/zoneminder/www are actually symbolic links that point to the real folders under /var/lib/zoneminder (or /var/cache/zoneminder).  Altering this in any way has the same affect as the answer to the first question.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6811</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6811"/>
		<updated>2015-04-06T15:39:05Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The intent of this walk through is to install a very base/bare bones installation of CentOS that runs only ZoneMinder. This would be for a dedicated ZoneMinder server with no GUI or any unnecessary services running. The reason for the very light-weight installation is to make the majority of system resources available to ZoneMinder, not the OS. With this installation, memory is reduced to around 140-160MB, and CPU usage is practically nonexistent. The CentOS base installation is very easy to install and doesn’t take too much time as long as you have some type of broadband connection. There are many ways to install CentOS, but this article covers only two, because they are related.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;All CLI operations/commands in this How-To are done as root, in the /root directory. The reasoning is that this system would be in a secure environment to begin with. However, if you need to add a user to run these services to better secure the system, then you can, but keep in mind that some items must run as root.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on CentOS.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. It also includes all dependencies that are not found in the default CentOS repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
The development team strictly uses CentOS, but these packages should work on Red Hat Enterprise Linux and Scientific Linux. The rpms in zmrepo are intended to work with &amp;#039;&amp;#039;default installations&amp;#039;&amp;#039; of these Linux distributions.  Modified versions are not guaranteed to work. Continue to the Disclaimer below for details.&lt;br /&gt;
&lt;br /&gt;
Please report any issues with RHEL and SL, as we have no way of pro-actively discovering them.&lt;br /&gt;
&lt;br /&gt;
==== Disclaimer ====&lt;br /&gt;
This could also be appropriately called &amp;#039;&amp;#039;&amp;#039;Who should not Use&amp;#039;&amp;#039;&amp;#039; zmrepo. &lt;br /&gt;
&lt;br /&gt;
The goal behind CentOS is that of an enterprise operating system. Stability is prioritized over the latest and greatest version of a particular package. Fortunately, bug fixes are backported. Consequently, you should &amp;#039;&amp;#039;never&amp;#039;&amp;#039; replace the core packages in CentOS! If you truly think that you &amp;quot;have to have&amp;quot; some package that is newer than what is found in the default repository then you should consider using a different Linux distro.&lt;br /&gt;
&lt;br /&gt;
The CentOS maintainers have a great write-up that describes this in much more detail [http://wiki.centos.org/PackageManagement/SourceInstalls here].  Pay close attention to the all the do&amp;#039;s, dont&amp;#039;s, and &amp;quot;this will break&amp;quot; comments.&lt;br /&gt;
&lt;br /&gt;
Zmrepo extends this same philosophy onto ZoneMinder. While ZoneMinder requires many dependencies to work, zmrepo will not overwrite any core packages.  It only adds packages that, otherwise, would not be available.&lt;br /&gt;
&lt;br /&gt;
One other case is worth mentioning. This repository is intended &amp;#039;&amp;#039;only&amp;#039;&amp;#039; for those who have installed RHEL/CentOS/SL using the &amp;#039;&amp;#039;&amp;#039;official installation media for that distribution&amp;#039;&amp;#039;&amp;#039;!  This means that these rpms are not intended to work with third parties that release their own spin of CentOS, which contain their own third party application preinstalled.  Third parties are allowed to modify the original distribution in any way, which means we can&amp;#039;t guarantee the rpms in zmrepo will be compatible.  &lt;br /&gt;
&lt;br /&gt;
For example, if you installed &amp;quot;CentOS&amp;quot; using an installation disk from an Astericks vendor, then the rpms in zmrepo are known not to work.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386 or x86_64 architectures on CentOS 6:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/el/6/i386/zmrepo-6-4.el6.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-6-4.el6.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder-*/README.CentOS&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.CentOS before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
NOTE: RHEL users must enable the &amp;quot;rhel-6-server-optional-rpms&amp;quot; repositoy on their system before attempting to install ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
A YouTube video that steps through the installation can be viewed [https://www.youtube.com/watch?v=l2lLvl8WxfU here.]&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for x86_64 architecture (only) on CentOS 7:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/el/7/x86_64/zmrepo-7-3.el7.centos.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-7-3.el7.centos.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder-*/README.Centos7&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Centos7 before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
== CentOS 5.6 &amp;amp; ZoneMinder 1.25.0 ==&lt;br /&gt;
This guide is for CentOS v5.6 (&amp;lt;b&amp;gt;Notes for using this guide with CentOS 6 are in chapter 2.&amp;lt;/b&amp;gt;) with ZoneMinder v1.25.0 which are the newest released versions as of this update (Summer 2011).  If you are attempting to install newer versions of either using this guide, you will have to adjust file and directory names denoted below. &lt;br /&gt;
&lt;br /&gt;
=== Step One - Get CentOS ===&lt;br /&gt;
You can download the “.iso” file(s) for CentOS from http://www.centos.org/&amp;lt;br/&amp;gt;&lt;br /&gt;
Alternatively download the net-install version of CentOS which is basically just the first CD.&lt;br /&gt;
Here is one location to download the net-install version:&amp;lt;br/&amp;gt;&lt;br /&gt;
Download i386: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://mirror.centos.org/centos/5/isos/&lt;br /&gt;
&lt;br /&gt;
=== Step Two - Installation Source ===&lt;br /&gt;
Regardless of which method you use, the next few steps are the same.&amp;lt;br/&amp;gt;&lt;br /&gt;
Begin by booting your system up with either cd/dvd.&amp;lt;br/&amp;gt;&lt;br /&gt;
Choose the options that best fit your environment until you reach the “Installation Method”. &lt;br /&gt;
&lt;br /&gt;
[[Image:centosnetinstal-http.png]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;#039;&amp;#039;&amp;#039;HTTP&amp;#039;&amp;#039;&amp;#039; ONLY if you are using the net-install method.  Otherwise, you probably want to choose &amp;#039;&amp;#039;&amp;#039;Local CDROM&amp;#039;&amp;#039;&amp;#039;. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using the net-install method then enter:&amp;lt;br/&amp;gt;&lt;br /&gt;
Website Name: &amp;#039;&amp;#039;&amp;#039;mirror.centos.org&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for i386) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/i386&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for 64 bit) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/x86_64&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Step Three - Installation Packages ===&lt;br /&gt;
On the first screen, un-check &amp;quot;Desktop - Gnome&amp;quot; then check &amp;quot;Server&amp;quot; (not Server-GUI)&amp;lt;br/&amp;gt;&lt;br /&gt;
Make sure that you have &amp;quot;Customize now&amp;quot; selected at the bottom. (do not check &amp;quot;Packages from CentOS Extras&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-packages1.png]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Next&amp;quot; to continue&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once presented with the custom package selection, un-check/check the following:&lt;br /&gt;
 Applications = Check only &amp;quot;Editors&amp;quot; and &amp;quot;Text Based Internet&amp;quot;&lt;br /&gt;
 Development = Check only &amp;quot;Development Libraries&amp;quot; and &amp;quot;Development Tools&amp;quot;&lt;br /&gt;
 Servers = Un-check everything&lt;br /&gt;
 Base System = Check only &amp;quot;Base&amp;quot; (you can check Administration Tools and System Tools if you need them, but they are not necessary)&lt;br /&gt;
&lt;br /&gt;
[[Image:Centosinstall-packages2.png]]&lt;br /&gt;
&lt;br /&gt;
Now let the system finish the installation.&lt;br /&gt;
&lt;br /&gt;
[[Image:centosisntall-end.png]]&lt;br /&gt;
&lt;br /&gt;
=== Step Four - Configuration ===&lt;br /&gt;
After the first reboot, the setup screen should appear. If not, log into the system and type &amp;quot;setup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup1.png]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Firewall Configuration&amp;quot; and set the &amp;quot;Security Level&amp;quot; and &amp;quot;SELinux&amp;quot; to &amp;quot;Disabled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup2.png]]&lt;br /&gt;
&lt;br /&gt;
Next, we are going to disable a number of system services. Go back to the setup screen and select &amp;quot;System Services&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Un-Check:&lt;br /&gt;
 apmd&lt;br /&gt;
 bluetooth&lt;br /&gt;
 cups&lt;br /&gt;
 hidd&lt;br /&gt;
 ip6tables&lt;br /&gt;
 iptables&lt;br /&gt;
 netfs&lt;br /&gt;
 nfslock&lt;br /&gt;
 pcscd&lt;br /&gt;
 portmap&lt;br /&gt;
After disabling the services, select &amp;quot;Disable Now and On Boot&amp;quot;, exit the setup tool, and log into the system if you haven&amp;#039;t already.&lt;br /&gt;
*Screen is a simple program that allows you to run commands from a &amp;quot;Hosted&amp;quot; command line interface. This helps if you loose your connection to the server for any reason in that it enables you to resume (screen -r) right where you left off. Often times, I will start a large update/upgrade, leave it for the day, then come back and see where it&amp;#039;s at later. Screen allows you to do that without having to be connected.&lt;br /&gt;
*Install Screen&lt;br /&gt;
 yum install screen&lt;br /&gt;
*To start a screen session just type&lt;br /&gt;
 screen&lt;br /&gt;
*If you get disconnected and need to resume your session of screen simply type&lt;br /&gt;
 screen -r&lt;br /&gt;
&lt;br /&gt;
=== Step Five - Installing ZoneMinder 1.25.0 ===&lt;br /&gt;
First, we need to download files and prepare the system&lt;br /&gt;
*Add the RPM Forge repository to CentOS. This will allow the installation of a number of services/applications later without having to manually install them.&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i386 CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the needed files, ZoneMinder 1.25.0 and the Cambozola addon&lt;br /&gt;
 wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 wget http://www.zoneminder.com/sites/zoneminder.com/downloads/cambozola.jar&lt;br /&gt;
*Now let&amp;#039;s install all the services and programs that will be needed (&amp;#039;&amp;#039;If you encounter any dependency errors using yum, try running &amp;#039;&amp;#039;&amp;#039;yum clean all&amp;#039;&amp;#039;&amp;#039; then re-try the install command(s).&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
*tip: Copy/paste two lines at a time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum -y install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc \&lt;br /&gt;
pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel ImageMagick&lt;br /&gt;
&lt;br /&gt;
yum -y install libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools \&lt;br /&gt;
perl-Date-Manip perl-LWP-UserAgent-Determined&lt;br /&gt;
&lt;br /&gt;
yum -y install perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Sys-Mmap \&lt;br /&gt;
perl-Module-Load subversion git yasm bzip2 bzip2-devel bzip2-libs lbzip2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now let&amp;#039;s update everything within the new CentOS install&lt;br /&gt;
 yum -y update&lt;br /&gt;
*At this point, it might be useful to reboot your system. Oddly, sometimes things don&amp;#039;t work right unless you reboot after all the updates&lt;br /&gt;
 reboot   -or-   shutdown -r now&lt;br /&gt;
*After rebooting, log into your system&lt;br /&gt;
==== Install ffmpeg ====&lt;br /&gt;
*Now we need to make sure we use the latest &amp;quot;tested&amp;quot; version of &amp;quot;ffmpeg&amp;quot;. This is the latest version of ffmpeg that the ZoneMinder developers have tested with.  Download, compile and install ffmpeg:&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone git://git.videolan.org/ffmpeg.git&lt;br /&gt;
cd ffmpeg&lt;br /&gt;
./configure --enable-gpl --enable-shared --enable-pthreads&lt;br /&gt;
make &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The following commands must be done as &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install &lt;br /&gt;
make install-libs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
edit /etc/ld.so.conf and add the line &amp;quot;/usr/local/lib&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ldconfig -v&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Next, run &amp;#039;ffmpeg&amp;#039; from the command line. Make sure you do not get any errors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If &amp;#039;ffmpeg&amp;#039; runs correctly, you&amp;#039;ll see something similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg version N-32260-gaebb56e, Copyright (c) 2000-2011 the FFmpeg developers&lt;br /&gt;
  built on Aug 31 2011 21:41:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)&lt;br /&gt;
  configuration: --enable-shared --enable-swscale --enable-gpl --enable-pthreads&lt;br /&gt;
  libavutil    51. 14. 0 / 51. 14. 0&lt;br /&gt;
  libavcodec   53. 12. 0 / 53. 12. 0&lt;br /&gt;
  libavformat  53. 10. 0 / 53. 10. 0&lt;br /&gt;
  libavdevice  53.  3. 0 / 53.  3. 0&lt;br /&gt;
  libavfilter   2. 37. 0 /  2. 37. 0&lt;br /&gt;
  libswscale    2.  0. 0 /  2.  0. 0&lt;br /&gt;
  libpostproc  51.  2. 0 / 51.  2. 0&lt;br /&gt;
Hyper fast Audio and Video encoder&lt;br /&gt;
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&lt;br /&gt;
&lt;br /&gt;
Use -h to get full help or, even better, run &amp;#039;man ffmpeg&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enable services ====&lt;br /&gt;
*Turn everything on.  These commands must be run as root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 chkconfig httpd on &lt;br /&gt;
 chkconfig mysqld on &lt;br /&gt;
 chkconfig ntpd on &lt;br /&gt;
 service httpd start &lt;br /&gt;
 service mysqld start &lt;br /&gt;
 service ntpd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Install Zoneminder ====&lt;br /&gt;
*Next, we need to extract the contents of the ZoneMinder &amp;quot;tar&amp;quot; file, then jump into its directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd /root/  # Or your work directory for this installation&lt;br /&gt;
 tar -zxvf ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 cd ZoneMinder-1.25.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now we are going to configure ZoneMinder with some additional parameters. What is listed are the default CentOS directory locations.&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin&lt;br /&gt;
&lt;br /&gt;
Note: It seems for Zoneminder to build with newer versions of ffmpeg, (certainly 0.6.3) you&amp;#039;ll need to append CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; to the end of the&lt;br /&gt;
./configure line thus:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
There is a section in the FAQ &amp;#039;&amp;#039;&amp;quot;When running configure, I get a lot of messages about not being able to compile the ffmpeg libraries&amp;quot;&amp;#039;&amp;#039; about this [[http://www.zoneminder.com/wiki/index.php/FAQ]].&lt;br /&gt;
&lt;br /&gt;
Worth mentioning here is the section in the FAQ under the heading &amp;quot;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;quot; [[http://www.zoneminder.com/wiki/index.php/FAQ]]. This descibes how you can possibly reduce CPU load by half by &lt;br /&gt;
changing the system&amp;#039;s jpeg libraries and building Zoneminder with processor specific instructions.  &lt;br /&gt;
Since CentOS 6.4 CentOS now comes with libjpeg_turbo as the standard JPEG library leading to a more optimised Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default ZM_DB_HOST=localhost, ZM_DB_NAME=zm, ZM_DB_USER=zmuser, and ZM_DB_PASS=zmpass.&lt;br /&gt;
*Change &amp;quot;zmuser&amp;quot; (if you want) with the user that you will use within MySQL to access the ZoneMinder database&lt;br /&gt;
*Change &amp;quot;zmpass&amp;quot; with the password you will be using with the &amp;quot;zmuser&amp;quot; account&lt;br /&gt;
So if you wish to change it, use a command like:&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 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass&lt;br /&gt;
&lt;br /&gt;
*if you get the configure &amp;quot;error zm requires libmysqlclient.a&amp;quot; with 64 bit CentOS add the following to the end of your configure statement&lt;br /&gt;
  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
e.g. For CentOS 5.6 64-bit with support for ffmpeg.  The whole command must be executed on one line.  Make sure to change the &amp;#039;&amp;#039;&amp;#039;zmpass&amp;#039;&amp;#039;&amp;#039; to a password that matches your installation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;make install&amp;#039;&amp;#039;&amp;#039; after running the configuration steps above.&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 # Run the next command as root&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Configure MySQL ====&lt;br /&gt;
*Need to add a password for the root user of MySQL&lt;br /&gt;
*Create the zm database&lt;br /&gt;
*Create the zm database user with permissions and password&lt;br /&gt;
 mysql&lt;br /&gt;
 mysql&amp;gt; SET PASSWORD FOR root@localhost=PASSWORD(&amp;#039;new_root_password&amp;#039;);&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&amp;gt;Query OK, 1 row affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; CREATE USER &amp;#039;your_zm_user&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;your_zm_password_from_above&amp;#039;;&lt;br /&gt;
Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost;&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.02 sec)&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
&amp;gt;Bye&lt;br /&gt;
*Import the tables into the zm database&lt;br /&gt;
 cd /root/ZoneMinder-1.25.0 &lt;br /&gt;
 mysql -u root -p zm &amp;lt; db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
==== Finalize Installation of ZoneMinder ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All remaining CLI commands need to be run as root.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Make ZoneMinder startup automatically after a reboot&lt;br /&gt;
 # from the ZoneMinder-1.25 source directory&lt;br /&gt;
 cp scripts/zm /etc/init.d/&lt;br /&gt;
 chmod +x /etc/init.d/zm&lt;br /&gt;
 chkconfig zm on&lt;br /&gt;
*Add the Cambozola Java web interface&lt;br /&gt;
 cp cambozola.jar /var/www/html/zm/&lt;br /&gt;
*Make sure you have permission to view it from apache:&lt;br /&gt;
 chown apache:apache /var/www/html/zm/cambozola.jar&lt;br /&gt;
*Start ZoneMinder&lt;br /&gt;
 service zm start&lt;br /&gt;
&lt;br /&gt;
Note: You may get an error when you try to start Zoneminder using the &amp;#039;zm&amp;#039; startup script as per this forum post: [[http://www.zoneminder.com/forums/viewtopic.php?f=21&amp;amp;t=17827]] .&lt;br /&gt;
The reason for this was the default &amp;#039;zm&amp;#039; startup script was formatted with DOS line endings. If you get the errors as detailed in the above post then the fix is to convert the &lt;br /&gt;
&amp;#039;zm&amp;#039; file to use UNIX style line endings. You can do this in the Vim text editor whilst editing the &amp;#039;zm&amp;#039; file thus: &amp;#039;:set fileformat=unix&amp;#039; then save the file &amp;#039;:wq&amp;#039;. You can also &lt;br /&gt;
use the utility dos2unix to convert the file. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
* tick the box for support for the Cambozola addon within your ZoneMinder installation: http://ip-address/zm (Options-&amp;gt;Images&amp;amp;nbsp;tab-&amp;gt;OPT_CAMBOZOLA)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now have fun and add your cameras to ZoneMinder knowing you now have a very stable and streamlined OS to run it on.&lt;br /&gt;
&lt;br /&gt;
== CentOS 6 Notes ==&lt;br /&gt;
&lt;br /&gt;
The installation for CentOS 6 is pretty much the same.&lt;br /&gt;
Download CentOS 6 minimal installation ISO (CentOS-6.0-i386-minimal.iso – 257MB).  Burn to CD and install. We only want to be running in console text mode not GUI graphics mode. During installation configure network and tick to enable network adapter.&lt;br /&gt;
* Login as root and update the base install:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum -y update&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install required packages, other useful packages, and their dependencies&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum groupinstall core&lt;br /&gt;
yum groupinstall base&lt;br /&gt;
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring \&lt;br /&gt;
nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver \&lt;br /&gt;
sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel \&lt;br /&gt;
bison-devel ncurses zlib zlib-devel openssl openssl-devel gnutls-devel php-process perl-Time-HiRes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
To remove various configure/make errors in Centos 6.2, you may also want to install:&amp;lt;pre&amp;gt;&lt;br /&gt;
bzip2-libs ffmpeg-devel ffmpeg-php perl-Net-SFTP-Foreign perl-Expect perl-LWPx-ParanoidAgent.x86_64&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we continue from step four (4).&lt;br /&gt;
==== Installation of ZoneMinder ====&lt;br /&gt;
* In step five (5) the correct RPM Forge repository is:&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i686 CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In step five (5) the command that seems to configure zoneminder correctly is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/html/zm \&lt;br /&gt;
 --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache \&lt;br /&gt;
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
For Centos 6.2, I used the following configure string for success:&amp;lt;pre&amp;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 ZM_DB_NAME=zm ZM_DB_USER=&amp;lt;zm user&amp;gt; ZM_DB_PASS=&amp;lt;zm user passwd&amp;gt; ZM_SSL_LIB=openssl  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; --with-ffmpeg=/usr/share/ffmpeg  CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting FFmpeg Errors Building ZoneMinder ====&lt;br /&gt;
Using the git version of FFmpeg can cause the ZoneMinder make process to fail with unresolved symbols in ffmpeg. To remedy this, use version 0.6.5 of FFmpeg with the same configure instructions as the normal install above.&lt;br /&gt;
FFmpeg 0.6.5: http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.bz2&lt;br /&gt;
==== Troubleshooting Blank Page ====&lt;br /&gt;
If everything went ok but when accessing zoneminder&amp;#039;s web page at http://localhost/zm, the page is blank this means that there is a problem with PHP short tags. Edit setting short_open_tag in php.ini (/etc/php.ini) and change it to On.&lt;br /&gt;
* Restart apache server with:&lt;br /&gt;
&amp;lt;pre&amp;gt;service httpd restart&amp;lt;/pre&amp;gt; and you should be up and running.&lt;br /&gt;
==== Trouble shooting full drive with CentOS 6 ====&lt;br /&gt;
The default drive structure has chaned from that of CentOS 5 having the full drive allocated to the /root partition. CentOS 6 by default makes a logical volume &amp;#039;LVM&amp;#039; of 10% your drives space for the /root partition and the remaining drive as the /home partion with the exception of the swap and boot partitions.&lt;br /&gt;
&lt;br /&gt;
The will cause Zoneminder to fill the /root partition as the /var/www/html/zm/events directory is by default located here, you can use the system-config-lvm utility to re-adjust this partition balance if your system has been installed with the default partition structure.&lt;br /&gt;
&lt;br /&gt;
It is best to install CentOS 6 with a custom partition layout that is the same as CentOS 5 structure, you can also if using a single physical had drive do with out the LVM drives and create an EXT4 /root partion along with the standard /boot and /swap partitions.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[== &amp;#039;&amp;#039;&amp;#039;P.S.&amp;#039;&amp;#039;&amp;#039; ==]] aspcicc@jumpy.it&lt;br /&gt;
(Update: This does not appear to be required any more.)&lt;br /&gt;
&lt;br /&gt;
Hi! and thanks for your guide.. i want to add a little correction that have made me crazy to resolve, when I poweroff or reboot system i obtain an error related to mysql database and i have    understood that the problem was because mysqld is stopped before zoneminder to be more specific there isn&amp;#039;t a link under rc0.d (halt) and rc6.d (reboot) to zoneminder that for this lack is simply killed by killall. To resolve this problem you need to add at the start of zm (under /etc/init.d) the line&lt;br /&gt;
&lt;br /&gt;
 &amp;#039; # chkconfig: 345 99 01 &amp;#039;  (without &amp;#039; of course)&lt;br /&gt;
&lt;br /&gt;
and then run &lt;br /&gt;
chkconfig --level 345 zm on&lt;br /&gt;
chkconfig --level 06 zm off&lt;br /&gt;
&lt;br /&gt;
So the link to shutdown zm is created under rc0.d and rc6.d and zoneminder is started at the end of poweron and stopped at the beginning of the poweroff&lt;br /&gt;
&lt;br /&gt;
For information about priority starting and stopping processes see: http://www.netadmintools.com/art94.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Added Dependency: ImageMagick&lt;br /&gt;
&lt;br /&gt;
Removed Dependency: perl-Time-HiRes, which causes a conflict with the default perl package.&lt;br /&gt;
&lt;br /&gt;
Also, mysql seems to install with no password for the root user, and the zm DB create script creates the database on the fly, which means that the database create command needs to have the &amp;quot;-p zm&amp;quot; removed from the command line.&lt;br /&gt;
&lt;br /&gt;
Could someone verify that this is correct, to make sure it&amp;#039;s not just something I missed?&lt;br /&gt;
&lt;br /&gt;
Thanks! &lt;br /&gt;
terry@cnysupport.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Struggling to get x264 and ffmpeg working?  I used the latest SVN versions not the Centos packages.  But I was getting&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I followed these instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /etc/ld.so.conf.d&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* add another file:  custom-libs.conf&lt;br /&gt;
* inside, put :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/local/lib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* save the file&lt;br /&gt;
* run ldconfig&lt;br /&gt;
&amp;lt;pre&amp;gt;ldconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BeeryGaz&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== Failed monitors or ZM refusing to start ====&lt;br /&gt;
A problem that took me some time to figure out on two installations was SElinux.&lt;br /&gt;
SElinux stops Zoneminder from accessing some system parts or doing some functions so will cause various errors or simply drive you nuts trying to figure out.&lt;br /&gt;
&lt;br /&gt;
Look at the following page on how to disable SElinux or use permissive mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some of the errors that I was getting with a fresh install on CentOS 6 was&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2013-02-16 16:13:10.828590	zmwatch	14898	ERR	Can&amp;#039;t open memory map file &amp;#039;/dev/shm/zm.mmap.1&amp;#039;: No such file or directory	zmwatch.pl	&lt;br /&gt;
2013-02-16 16:13:10.736988	zmfix	15317	ERR	Can&amp;#039;t stat /dev/video0: Permission denied	zmfix.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== ZoneMinder 1.26.x ==&lt;br /&gt;
&lt;br /&gt;
Zoneminder after a long period of none development is now being developed by the community, these notes are to try and help with the installation of the new release on CentOS 5 and CentOS 6.&lt;br /&gt;
All testing has been done on a CentOS 6.4 fresh install server.&lt;br /&gt;
&lt;br /&gt;
=== Cmake installation notes ===&lt;br /&gt;
&lt;br /&gt;
Compiling of Zoneminder can now be done with the &amp;#039;Cmake&amp;#039; command in replacement of the ./configure command this should automatically configure the build with the minimum of parameters. The &amp;#039;Cmake&amp;#039; command at time of writing produced a partially working installation with the main files installed into /usr/local/bin/zoneminder and associated folders, different from the above guides.&lt;br /&gt;
&lt;br /&gt;
The webfiles require to be linked via a zoneminder.conf file located with in the /disto/redhat directory inside the build directory that requires to be coped to the /etc/httpd/conf.d directory, this will need to be edited to the correct location of the webfiles and remove the local only command as indicated with in the file.&lt;br /&gt;
&lt;br /&gt;
The Cmake install failed to use my BTTV capture card producing various errors with a potential solution given here &amp;lt;pre&amp;gt;http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21709&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ./configure compile ===&lt;br /&gt;
&lt;br /&gt;
To install via the traditional ./configure method you first need to run the ./bootstrap.sh file to generate the required configure file, the install can then progress as the above installation guides.&lt;br /&gt;
&lt;br /&gt;
This method has produced a fully working installation at time of writing.&lt;br /&gt;
&lt;br /&gt;
== pt_BR Instructions ==&lt;br /&gt;
&lt;br /&gt;
Here is a good walkthrough install of zoneminder in CentOS using the rpm package method. It is intended to Portuguese  (pt or pt_BR) audience.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://dulimind.blogspot.com.br/2015/02/zoneminder-no-centos-6-metodo-facil-com.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=6810</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=6810"/>
		<updated>2015-04-04T14:41:05Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Why does ZM stop recording once I have 32000 events for my monitor? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the FAQ page. Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&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 drop down select box labeled &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 never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PURGE BY AGE&lt;br /&gt;
&lt;br /&gt;
To delete events that are older than 7 days, create a new filter with &amp;quot;Date&amp;quot; set to &amp;quot;less than&amp;quot; and a value of &amp;quot;-7 days&amp;quot;, sort by &amp;quot;date/time&amp;quot; in &amp;quot;asc&amp;quot;ending order, then enable the checkbox &amp;quot;delete all matches&amp;quot;. You can also use a value of week or week and days: &amp;quot;-2 week&amp;quot;  or &amp;quot;-2 week 4 day&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save with &amp;#039;Run Filter In Background&amp;#039; enabled to have it run automatically.&lt;br /&gt;
&lt;br /&gt;
Optional skip archived events:  click on the plus sign next to -7 days to add another condition.  &amp;quot;and&amp;quot; &amp;quot;archive status&amp;quot; equal to &amp;quot;unarchived only&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Optional slow delete:  limit the number of results to 3.  If you have a large backlog of events that would be deleted, this can hard spike the CPU usage for a long time.  Limiting the number of results to only the first three each time the filter is run spreads out the delete processes over time, dramatically lessening the CPU load.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&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? and my cameras won&amp;#039;t display video at higher resolutions.===&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, &amp;lt;tt&amp;gt;ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead&amp;lt;/tt&amp;gt;.&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 many 4KB shared memory pages are available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /proc/sys/kernel/shmall&lt;br /&gt;
2097152&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In recent kernels the shmall is set to 2097152 memory pages multiplied by 4096 bytes per page for a total of 8 GB of shared memory available.  You only need to increase the shmall value if you have a computer with more than 8GB of memory and wish to use more of it for shared memory usage, such as large databases.&lt;br /&gt;
&lt;br /&gt;
The most shared memory bytes you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /proc/sys/kernel/shmmax&lt;br /&gt;
33554432&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In recent kernels the shmmax is set to 33554432 bytes for only 32 MB of maximum shared memory allocatable at a time, hardly enough for ZoneMinder to go above 320 x 240 x 24-bit resolution at 40 frames in the buffer if it is using the /dev/shm shared memory device, so this value needs to be increased.  If you are using ZoneMinder with the memory mapped (mmap) compile time option then this doesn&amp;#039;t affect you.&lt;br /&gt;
&lt;br /&gt;
To change the value to 128 MB temporarily during this kernel execution type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 536870912 &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.shmmax = 536870912&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or if your distribution has the &amp;lt;tt&amp;gt;/etc/sysctl.d/&amp;lt;/tt&amp;gt; folder you can create a file in this folder without modifying the &amp;lt;tt&amp;gt;/etc/sysctl.d&amp;lt;/tt&amp;gt; so you won&amp;#039;t lose the changes during distro upgrades :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo kernel.shmmax = 536870912 &amp;gt;/etc/sysctl.d/60-kernel-shm.conf&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;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full color, increase &amp;lt;tt&amp;gt;134217728&amp;lt;/tt&amp;gt; (128 MB) to, for example, &amp;lt;tt&amp;gt;268435456&amp;lt;/tt&amp;gt; (256 MB) and multiple this value by each camera.&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df -h&amp;#039; you should see this area and the size of memory it currently allows. To increase size for tmpfs you need to edit /etc/default/tmpfs. Search for:&lt;br /&gt;
&amp;lt;pre&amp;gt;SHM_SIZE=128M&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change to something like&lt;br /&gt;
&amp;lt;pre&amp;gt;SHM_SIZE=1G&amp;lt;/pre&amp;gt;&lt;br /&gt;
then reboot the system. You could possibly need to change RUN_SIZE, too.&lt;br /&gt;
&lt;br /&gt;
It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&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; margin-top: 6px; padding: 4px;&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;
&amp;lt;pre&amp;gt;kernel.shmall = 2097152&amp;lt;/pre&amp;gt;&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;
&amp;lt;pre&amp;gt;kernel.shmmax = 4294967296&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 2097152&lt;br /&gt;
kernel.shmmax = 4294967296&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;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Logging-&amp;gt;RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Logging-&amp;gt;RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&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 (Options / B/W tabs) WEB_H_CAN_STREAM is set to auto and WEB_H_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod (&amp;#039;&amp;#039;-rwxrwxr-x&amp;#039;&amp;#039;) your (&amp;#039;&amp;#039;usr/share/zoneminder/&amp;#039;&amp;#039;) cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&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 experimentation.&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 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. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&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 frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion 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 your 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;
This function has from time to time been corrupted in the SVN release or in the stable releases, try and reinstall from a fresh download.&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/products/video/design_tool/index.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 its 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;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
Storing more than 32k files in a single folder is a limitation of some filesystems. To avoid this, enable USE_DEEP_STORAGE under Options.&lt;br /&gt;
&lt;br /&gt;
USE_DEEP_STORAGE is now the default for new ZoneMinder systems so this limitation should only apply to users upgrading from a previous version of ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
Versions of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit, this is also somewhat faster. &lt;br /&gt;
&lt;br /&gt;
If you have upgraded from a previous version of ZoneMinder and this option is not already enabled, it is very important to follow the steps below to enable it on an existing system. Failure to properly follow these steps WILL RESULT IN LOSS OF YOUR DATA!&lt;br /&gt;
&lt;br /&gt;
# Stop ZoneMinder&lt;br /&gt;
# Backup your event data and the dB if you have the available storage&lt;br /&gt;
# Enable USE_DEEP_STORAGE under Options.&lt;br /&gt;
# From the command line, run &amp;quot;sudo zmupdate.pl --migrate-events&amp;quot;&lt;br /&gt;
# Monitor the output for any events that fail to convert.&lt;br /&gt;
# After the conversion completes, you can restart ZoneMinder&lt;br /&gt;
&lt;br /&gt;
Note that you can re-run the migrate-events command if any error messages scroll off the screen.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of sub-directories in the ext4 filesystem at:&lt;br /&gt;
  http://kernelnewbies.org/Ext4&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  http://ext4.wiki.kernel.org/index.php/Ext4_Howto&lt;br /&gt;
If you search for ext3 or reiserfs on the forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&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. You may be able to experience substantial Zoneminder performance boosts now by merely upgrading your operating system, without having to download libraries and compile your own binaries, etc. as described in the forum thread linked below.  Some distributions, e.g. Fedora 14 now include library code to utilize the instruction set extensions available in your processor: &lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Fedora_14_Alpha_release_notes#Faster_JPEG_Compression.2FDecompression&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The replacement of libjpeg with libjpeg-turbo brings speed improvements to a wide range of applications when handling images in JPEG format ...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Releases/14/Schedule&lt;br /&gt;
&lt;br /&gt;
still states &amp;quot;2010-11-02 final release&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
CentOS 6.4 now has libjpeg-turbo built in as the default jpeg library allowing the best results out of the box.&lt;br /&gt;
&lt;br /&gt;
  http://libjpeg-turbo.virtualgl.org/&lt;br /&gt;
&lt;br /&gt;
provides some history on its project page.  If you seek confirmation for which library is in use, you may consider querying e.g. while running on a prior distribution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-6b-46.fc12.i686&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and comparing the response to querying when the higher-performance library is available:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-turbo-1.0.1-1.fc14.x86_64&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As noted in other forum postings, some zoneminder camera and usage configurations may not make much use of jpeg processing (e.g. some webcams), and thus obtain little performance benefit.  Otherwise, you should be able to select one or more of:&lt;br /&gt;
* running more cameras,&lt;br /&gt;
* running existing cameras at higher image resolutions,&lt;br /&gt;
* running cameras at a faster frame rate,&lt;br /&gt;
* saving MoDect images with higher quality,&lt;br /&gt;
* having more CPU cycles available for any non-Zoneminder workload, etc.&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info on the download-the-library-yourself, compile-your-own-Zoneminder binary, etc. approach if needed. 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;
&lt;br /&gt;
Try building Zoneminder with processor specific instructions that are optimised to the system it will be running on, also increasing the optimisation level of GCC beyond -O2 will help.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure CFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; CXXFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above command is optimised for an Athlon XP cpu so you will need to use the specific processor tag for your cpu, also the compiler optimisation has been increased to -O3.&lt;br /&gt;
&lt;br /&gt;
You also need to put in your normal ./configure commands as if you were compiling with out this optimisation.&lt;br /&gt;
&lt;br /&gt;
A further note is that the compile must be performed on the system that Zoneminder will be running on as this optimisation will make it hardware specific code.&lt;br /&gt;
&lt;br /&gt;
Processor specific commands can be found in the GCC manual along with some more options that may increase performanc. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The below command has been used to compile Zoneminder on a Athlon XP system running CentOS 5.5 and along with the libjpeg-turbo modification to reduce the CPU load in half, libjpeg-turbo reduced the load by 1/3 before the processor optimisation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin CFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS -g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; --enable-mmap --sysconfdir=/etc/zm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command has been used to compile Zoneminder 1.25 on a CentOS 6.0 system, the native command should choose the processor automatically during compile time, this needs to be performed on the actual system!!.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CFLAGS=&amp;quot;-g -O3 -march=native -mtune=native&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS -g -O3 -march=native -mtune=native&amp;quot; ./configure  --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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;
=== When running configure I am getting a lot of messages about not being able to compile the ffmpeg libraries ===&lt;br /&gt;
&lt;br /&gt;
If you see output from configure that looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;checking libavcodec/avcodec.h usability... no&lt;br /&gt;
checking libavcodec/avcodec.h presence... yes&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h:     check for missing&lt;br /&gt;
prerequisite headers?&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h:     section &amp;quot;Present But&lt;br /&gt;
Cannot Be Compiled&amp;quot;&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler&amp;#039;s&lt;br /&gt;
result&lt;br /&gt;
configure: WARNING:     ## ------------------------------------- ##&lt;br /&gt;
configure: WARNING:     ## Report this to support@zoneminder.com ##&lt;br /&gt;
configure: WARNING:     ## ------------------------------------- ##&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then it is caused not by the ZoneMinder build system but ffmpeg itself. However there is a workaround you can use which is to add&lt;br /&gt;
&lt;br /&gt;
  CPPFLAGS=-D__STDC_CONSTANT_MACROS&lt;br /&gt;
&lt;br /&gt;
to the ZoneMinder ./configure command which should solve the issue. However this is not a proper &amp;#039;fix&amp;#039; as such, which can only come from the ffmpeg project itself.&lt;br /&gt;
&lt;br /&gt;
=== I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&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;
== 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 * * * root /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * root /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;perldoc 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 (M.Id)&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 ( !zmMemVerify( $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;
==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;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&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;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
If you recently upgraded to zoneminder 1.26, there is a per camera option that defaults to black and white and can be mis-set if your upgrade didn&amp;#039;t happen right. See this thread: http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21344&lt;br /&gt;
&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&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;
&lt;br /&gt;
This error some times happens when a linked camera looses its link or it is corrupted by the user or some other system event, try deleting the affected cameras and recreating them in the Zoneminder console.&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;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&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;br /&gt;
&lt;br /&gt;
===Zoneminder doesn&amp;#039;t start automatically on boot===&lt;br /&gt;
Check the list for log entries like &amp;quot;zmfix[766]: ERR [Can&amp;#039;t connect to server: Can&amp;#039;t connect to local MySQL server through socket &amp;#039;/var/run/mysqld/mysqld.sock&amp;#039; (2)] &amp;quot;. &lt;br /&gt;
What can happen is that zoneminder is started too quickly after Mysql and tries to contact the database server before it&amp;#039;s ready. Zoneminder gets no answer and aborts. &lt;br /&gt;
August 2010 - Ubuntu upgrades seem to be leaving several systems in this state. One way around this is to add a delay to the zoneminder startup script allowing Mysql to finish starting. &lt;br /&gt;
&amp;quot;Simply adding &amp;#039;sleep 15&amp;#039; in the line above &amp;#039;zmfix -a&amp;#039; in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!&amp;quot; - credit to Pada.&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circumstances.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=6809</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=6809"/>
		<updated>2015-04-04T14:36:56Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Why does ZM stop recording once I have 32000 events for my monitor? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the FAQ page. Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&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 drop down select box labeled &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 never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PURGE BY AGE&lt;br /&gt;
&lt;br /&gt;
To delete events that are older than 7 days, create a new filter with &amp;quot;Date&amp;quot; set to &amp;quot;less than&amp;quot; and a value of &amp;quot;-7 days&amp;quot;, sort by &amp;quot;date/time&amp;quot; in &amp;quot;asc&amp;quot;ending order, then enable the checkbox &amp;quot;delete all matches&amp;quot;. You can also use a value of week or week and days: &amp;quot;-2 week&amp;quot;  or &amp;quot;-2 week 4 day&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save with &amp;#039;Run Filter In Background&amp;#039; enabled to have it run automatically.&lt;br /&gt;
&lt;br /&gt;
Optional skip archived events:  click on the plus sign next to -7 days to add another condition.  &amp;quot;and&amp;quot; &amp;quot;archive status&amp;quot; equal to &amp;quot;unarchived only&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Optional slow delete:  limit the number of results to 3.  If you have a large backlog of events that would be deleted, this can hard spike the CPU usage for a long time.  Limiting the number of results to only the first three each time the filter is run spreads out the delete processes over time, dramatically lessening the CPU load.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&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? and my cameras won&amp;#039;t display video at higher resolutions.===&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, &amp;lt;tt&amp;gt;ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead&amp;lt;/tt&amp;gt;.&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 many 4KB shared memory pages are available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /proc/sys/kernel/shmall&lt;br /&gt;
2097152&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In recent kernels the shmall is set to 2097152 memory pages multiplied by 4096 bytes per page for a total of 8 GB of shared memory available.  You only need to increase the shmall value if you have a computer with more than 8GB of memory and wish to use more of it for shared memory usage, such as large databases.&lt;br /&gt;
&lt;br /&gt;
The most shared memory bytes you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /proc/sys/kernel/shmmax&lt;br /&gt;
33554432&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In recent kernels the shmmax is set to 33554432 bytes for only 32 MB of maximum shared memory allocatable at a time, hardly enough for ZoneMinder to go above 320 x 240 x 24-bit resolution at 40 frames in the buffer if it is using the /dev/shm shared memory device, so this value needs to be increased.  If you are using ZoneMinder with the memory mapped (mmap) compile time option then this doesn&amp;#039;t affect you.&lt;br /&gt;
&lt;br /&gt;
To change the value to 128 MB temporarily during this kernel execution type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 536870912 &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.shmmax = 536870912&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or if your distribution has the &amp;lt;tt&amp;gt;/etc/sysctl.d/&amp;lt;/tt&amp;gt; folder you can create a file in this folder without modifying the &amp;lt;tt&amp;gt;/etc/sysctl.d&amp;lt;/tt&amp;gt; so you won&amp;#039;t lose the changes during distro upgrades :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo kernel.shmmax = 536870912 &amp;gt;/etc/sysctl.d/60-kernel-shm.conf&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;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full color, increase &amp;lt;tt&amp;gt;134217728&amp;lt;/tt&amp;gt; (128 MB) to, for example, &amp;lt;tt&amp;gt;268435456&amp;lt;/tt&amp;gt; (256 MB) and multiple this value by each camera.&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df -h&amp;#039; you should see this area and the size of memory it currently allows. To increase size for tmpfs you need to edit /etc/default/tmpfs. Search for:&lt;br /&gt;
&amp;lt;pre&amp;gt;SHM_SIZE=128M&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change to something like&lt;br /&gt;
&amp;lt;pre&amp;gt;SHM_SIZE=1G&amp;lt;/pre&amp;gt;&lt;br /&gt;
then reboot the system. You could possibly need to change RUN_SIZE, too.&lt;br /&gt;
&lt;br /&gt;
It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&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; margin-top: 6px; padding: 4px;&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;
&amp;lt;pre&amp;gt;kernel.shmall = 2097152&amp;lt;/pre&amp;gt;&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;
&amp;lt;pre&amp;gt;kernel.shmmax = 4294967296&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 2097152&lt;br /&gt;
kernel.shmmax = 4294967296&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;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Logging-&amp;gt;RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Logging-&amp;gt;RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&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 (Options / B/W tabs) WEB_H_CAN_STREAM is set to auto and WEB_H_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod (&amp;#039;&amp;#039;-rwxrwxr-x&amp;#039;&amp;#039;) your (&amp;#039;&amp;#039;usr/share/zoneminder/&amp;#039;&amp;#039;) cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&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 experimentation.&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 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. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&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 frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion 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 your 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;
This function has from time to time been corrupted in the SVN release or in the stable releases, try and reinstall from a fresh download.&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/products/video/design_tool/index.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 its 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;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
ZM_USE_DEEP_STORAGE is now the default for new ZoneMinder systems so this limitation should only apply to users upgrading from a previous version of ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat faster. &lt;br /&gt;
&lt;br /&gt;
If you have upgraded from a previous version of ZoneMinder and are considering enabling this option, it is very important to follow the steps below.  Failure to properly follow these steps WILL RESULT IN LOSS OF YOUR DATA!&lt;br /&gt;
&lt;br /&gt;
# Stop ZoneMinder&lt;br /&gt;
# Backup your event data and the dB if you have the available storage&lt;br /&gt;
# Enable USE_DEEP_STORAGE under Options.&lt;br /&gt;
# From the command line, run &amp;quot;sudo zmupdate.pl --migrate-events&amp;quot;&lt;br /&gt;
# Monitor the output for any events that fail to convert.&lt;br /&gt;
# After the conversion completes, you can restart ZoneMinder&lt;br /&gt;
&lt;br /&gt;
Note that you can re-run the migrate-events command if any error messages scroll off the screen.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of&lt;br /&gt;
sub-directories in the ext4 filesystem at:&lt;br /&gt;
  http://kernelnewbies.org/Ext4&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  http://ext4.wiki.kernel.org/index.php/Ext4_Howto&lt;br /&gt;
Note that while GParted 0.5.2 recognizes ext4 partitions, at least in&lt;br /&gt;
some circumstances it does not succeed in formatting a partition for&lt;br /&gt;
the ext4 filesystem.  Also, if you search for ext3 or reiserfs on the&lt;br /&gt;
forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&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. You may be able to experience substantial Zoneminder performance boosts now by merely upgrading your operating system, without having to download libraries and compile your own binaries, etc. as described in the forum thread linked below.  Some distributions, e.g. Fedora 14 now include library code to utilize the instruction set extensions available in your processor: &lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Fedora_14_Alpha_release_notes#Faster_JPEG_Compression.2FDecompression&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The replacement of libjpeg with libjpeg-turbo brings speed improvements to a wide range of applications when handling images in JPEG format ...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Releases/14/Schedule&lt;br /&gt;
&lt;br /&gt;
still states &amp;quot;2010-11-02 final release&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
CentOS 6.4 now has libjpeg-turbo built in as the default jpeg library allowing the best results out of the box.&lt;br /&gt;
&lt;br /&gt;
  http://libjpeg-turbo.virtualgl.org/&lt;br /&gt;
&lt;br /&gt;
provides some history on its project page.  If you seek confirmation for which library is in use, you may consider querying e.g. while running on a prior distribution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-6b-46.fc12.i686&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and comparing the response to querying when the higher-performance library is available:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-turbo-1.0.1-1.fc14.x86_64&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As noted in other forum postings, some zoneminder camera and usage configurations may not make much use of jpeg processing (e.g. some webcams), and thus obtain little performance benefit.  Otherwise, you should be able to select one or more of:&lt;br /&gt;
* running more cameras,&lt;br /&gt;
* running existing cameras at higher image resolutions,&lt;br /&gt;
* running cameras at a faster frame rate,&lt;br /&gt;
* saving MoDect images with higher quality,&lt;br /&gt;
* having more CPU cycles available for any non-Zoneminder workload, etc.&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info on the download-the-library-yourself, compile-your-own-Zoneminder binary, etc. approach if needed. 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;
&lt;br /&gt;
Try building Zoneminder with processor specific instructions that are optimised to the system it will be running on, also increasing the optimisation level of GCC beyond -O2 will help.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure CFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; CXXFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above command is optimised for an Athlon XP cpu so you will need to use the specific processor tag for your cpu, also the compiler optimisation has been increased to -O3.&lt;br /&gt;
&lt;br /&gt;
You also need to put in your normal ./configure commands as if you were compiling with out this optimisation.&lt;br /&gt;
&lt;br /&gt;
A further note is that the compile must be performed on the system that Zoneminder will be running on as this optimisation will make it hardware specific code.&lt;br /&gt;
&lt;br /&gt;
Processor specific commands can be found in the GCC manual along with some more options that may increase performanc. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The below command has been used to compile Zoneminder on a Athlon XP system running CentOS 5.5 and along with the libjpeg-turbo modification to reduce the CPU load in half, libjpeg-turbo reduced the load by 1/3 before the processor optimisation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin CFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS -g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; --enable-mmap --sysconfdir=/etc/zm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command has been used to compile Zoneminder 1.25 on a CentOS 6.0 system, the native command should choose the processor automatically during compile time, this needs to be performed on the actual system!!.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CFLAGS=&amp;quot;-g -O3 -march=native -mtune=native&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS -g -O3 -march=native -mtune=native&amp;quot; ./configure  --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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;
=== When running configure I am getting a lot of messages about not being able to compile the ffmpeg libraries ===&lt;br /&gt;
&lt;br /&gt;
If you see output from configure that looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;checking libavcodec/avcodec.h usability... no&lt;br /&gt;
checking libavcodec/avcodec.h presence... yes&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h:     check for missing&lt;br /&gt;
prerequisite headers?&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h:     section &amp;quot;Present But&lt;br /&gt;
Cannot Be Compiled&amp;quot;&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler&amp;#039;s&lt;br /&gt;
result&lt;br /&gt;
configure: WARNING:     ## ------------------------------------- ##&lt;br /&gt;
configure: WARNING:     ## Report this to support@zoneminder.com ##&lt;br /&gt;
configure: WARNING:     ## ------------------------------------- ##&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then it is caused not by the ZoneMinder build system but ffmpeg itself. However there is a workaround you can use which is to add&lt;br /&gt;
&lt;br /&gt;
  CPPFLAGS=-D__STDC_CONSTANT_MACROS&lt;br /&gt;
&lt;br /&gt;
to the ZoneMinder ./configure command which should solve the issue. However this is not a proper &amp;#039;fix&amp;#039; as such, which can only come from the ffmpeg project itself.&lt;br /&gt;
&lt;br /&gt;
=== I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&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;
== 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 * * * root /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * root /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;perldoc 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 (M.Id)&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 ( !zmMemVerify( $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;
==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;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&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;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
If you recently upgraded to zoneminder 1.26, there is a per camera option that defaults to black and white and can be mis-set if your upgrade didn&amp;#039;t happen right. See this thread: http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21344&lt;br /&gt;
&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&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;
&lt;br /&gt;
This error some times happens when a linked camera looses its link or it is corrupted by the user or some other system event, try deleting the affected cameras and recreating them in the Zoneminder console.&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;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&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;br /&gt;
&lt;br /&gt;
===Zoneminder doesn&amp;#039;t start automatically on boot===&lt;br /&gt;
Check the list for log entries like &amp;quot;zmfix[766]: ERR [Can&amp;#039;t connect to server: Can&amp;#039;t connect to local MySQL server through socket &amp;#039;/var/run/mysqld/mysqld.sock&amp;#039; (2)] &amp;quot;. &lt;br /&gt;
What can happen is that zoneminder is started too quickly after Mysql and tries to contact the database server before it&amp;#039;s ready. Zoneminder gets no answer and aborts. &lt;br /&gt;
August 2010 - Ubuntu upgrades seem to be leaving several systems in this state. One way around this is to add a delay to the zoneminder startup script allowing Mysql to finish starting. &lt;br /&gt;
&amp;quot;Simply adding &amp;#039;sleep 15&amp;#039; in the line above &amp;#039;zmfix -a&amp;#039; in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!&amp;quot; - credit to Pada.&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circumstances.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=6808</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=6808"/>
		<updated>2015-04-04T14:29:20Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Why does ZM stop recording once I have 32000 events for my monitor? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the FAQ page. Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&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 drop down select box labeled &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 never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PURGE BY AGE&lt;br /&gt;
&lt;br /&gt;
To delete events that are older than 7 days, create a new filter with &amp;quot;Date&amp;quot; set to &amp;quot;less than&amp;quot; and a value of &amp;quot;-7 days&amp;quot;, sort by &amp;quot;date/time&amp;quot; in &amp;quot;asc&amp;quot;ending order, then enable the checkbox &amp;quot;delete all matches&amp;quot;. You can also use a value of week or week and days: &amp;quot;-2 week&amp;quot;  or &amp;quot;-2 week 4 day&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save with &amp;#039;Run Filter In Background&amp;#039; enabled to have it run automatically.&lt;br /&gt;
&lt;br /&gt;
Optional skip archived events:  click on the plus sign next to -7 days to add another condition.  &amp;quot;and&amp;quot; &amp;quot;archive status&amp;quot; equal to &amp;quot;unarchived only&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Optional slow delete:  limit the number of results to 3.  If you have a large backlog of events that would be deleted, this can hard spike the CPU usage for a long time.  Limiting the number of results to only the first three each time the filter is run spreads out the delete processes over time, dramatically lessening the CPU load.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&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? and my cameras won&amp;#039;t display video at higher resolutions.===&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, &amp;lt;tt&amp;gt;ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead&amp;lt;/tt&amp;gt;.&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 many 4KB shared memory pages are available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /proc/sys/kernel/shmall&lt;br /&gt;
2097152&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In recent kernels the shmall is set to 2097152 memory pages multiplied by 4096 bytes per page for a total of 8 GB of shared memory available.  You only need to increase the shmall value if you have a computer with more than 8GB of memory and wish to use more of it for shared memory usage, such as large databases.&lt;br /&gt;
&lt;br /&gt;
The most shared memory bytes you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /proc/sys/kernel/shmmax&lt;br /&gt;
33554432&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In recent kernels the shmmax is set to 33554432 bytes for only 32 MB of maximum shared memory allocatable at a time, hardly enough for ZoneMinder to go above 320 x 240 x 24-bit resolution at 40 frames in the buffer if it is using the /dev/shm shared memory device, so this value needs to be increased.  If you are using ZoneMinder with the memory mapped (mmap) compile time option then this doesn&amp;#039;t affect you.&lt;br /&gt;
&lt;br /&gt;
To change the value to 128 MB temporarily during this kernel execution type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 536870912 &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.shmmax = 536870912&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or if your distribution has the &amp;lt;tt&amp;gt;/etc/sysctl.d/&amp;lt;/tt&amp;gt; folder you can create a file in this folder without modifying the &amp;lt;tt&amp;gt;/etc/sysctl.d&amp;lt;/tt&amp;gt; so you won&amp;#039;t lose the changes during distro upgrades :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo kernel.shmmax = 536870912 &amp;gt;/etc/sysctl.d/60-kernel-shm.conf&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;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full color, increase &amp;lt;tt&amp;gt;134217728&amp;lt;/tt&amp;gt; (128 MB) to, for example, &amp;lt;tt&amp;gt;268435456&amp;lt;/tt&amp;gt; (256 MB) and multiple this value by each camera.&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df -h&amp;#039; you should see this area and the size of memory it currently allows. To increase size for tmpfs you need to edit /etc/default/tmpfs. Search for:&lt;br /&gt;
&amp;lt;pre&amp;gt;SHM_SIZE=128M&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change to something like&lt;br /&gt;
&amp;lt;pre&amp;gt;SHM_SIZE=1G&amp;lt;/pre&amp;gt;&lt;br /&gt;
then reboot the system. You could possibly need to change RUN_SIZE, too.&lt;br /&gt;
&lt;br /&gt;
It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&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; margin-top: 6px; padding: 4px;&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;
&amp;lt;pre&amp;gt;kernel.shmall = 2097152&amp;lt;/pre&amp;gt;&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;
&amp;lt;pre&amp;gt;kernel.shmmax = 4294967296&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 2097152&lt;br /&gt;
kernel.shmmax = 4294967296&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;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Logging-&amp;gt;RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Logging-&amp;gt;RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&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 (Options / B/W tabs) WEB_H_CAN_STREAM is set to auto and WEB_H_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod (&amp;#039;&amp;#039;-rwxrwxr-x&amp;#039;&amp;#039;) your (&amp;#039;&amp;#039;usr/share/zoneminder/&amp;#039;&amp;#039;) cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&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 experimentation.&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 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. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&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 frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion 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 your 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;
This function has from time to time been corrupted in the SVN release or in the stable releases, try and reinstall from a fresh download.&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/products/video/design_tool/index.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 its 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;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
ZM_USE_DEEP_STORAGE is now the default for new ZoneMinder systems so this limitation should only apply to users upgrading from a previous version of ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat faster. &lt;br /&gt;
&lt;br /&gt;
If you have upgraded from a previous version of ZoneMinder and are considering enabling this option, it is very important to follow the steps below.  Failure to properly follow these steps WILL RESULT IN LOSS OF YOUR DATA!&lt;br /&gt;
&lt;br /&gt;
- Stop ZoneMinder&lt;br /&gt;
- Backup your event data and the dB if you have the available storage&lt;br /&gt;
- Enable USE_DEEP_STORAGE under Options.&lt;br /&gt;
- From the command line, run &amp;quot;sudo zmupdate.pl --migrate-events&amp;quot;&lt;br /&gt;
- Monitor the output for any events that fail to convert.&lt;br /&gt;
- After the conversion completes, you can restart ZoneMinder&lt;br /&gt;
&lt;br /&gt;
Note that you can re-run the migrate-events command if any error messages scroll off the screen.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of&lt;br /&gt;
sub-directories in the ext4 filesystem at:&lt;br /&gt;
  http://kernelnewbies.org/Ext4&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  http://ext4.wiki.kernel.org/index.php/Ext4_Howto&lt;br /&gt;
Note that while GParted 0.5.2 recognizes ext4 partitions, at least in&lt;br /&gt;
some circumstances it does not succeed in formatting a partition for&lt;br /&gt;
the ext4 filesystem.  Also, if you search for ext3 or reiserfs on the&lt;br /&gt;
forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&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. You may be able to experience substantial Zoneminder performance boosts now by merely upgrading your operating system, without having to download libraries and compile your own binaries, etc. as described in the forum thread linked below.  Some distributions, e.g. Fedora 14 now include library code to utilize the instruction set extensions available in your processor: &lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Fedora_14_Alpha_release_notes#Faster_JPEG_Compression.2FDecompression&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The replacement of libjpeg with libjpeg-turbo brings speed improvements to a wide range of applications when handling images in JPEG format ...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Releases/14/Schedule&lt;br /&gt;
&lt;br /&gt;
still states &amp;quot;2010-11-02 final release&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
CentOS 6.4 now has libjpeg-turbo built in as the default jpeg library allowing the best results out of the box.&lt;br /&gt;
&lt;br /&gt;
  http://libjpeg-turbo.virtualgl.org/&lt;br /&gt;
&lt;br /&gt;
provides some history on its project page.  If you seek confirmation for which library is in use, you may consider querying e.g. while running on a prior distribution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-6b-46.fc12.i686&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and comparing the response to querying when the higher-performance library is available:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-turbo-1.0.1-1.fc14.x86_64&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As noted in other forum postings, some zoneminder camera and usage configurations may not make much use of jpeg processing (e.g. some webcams), and thus obtain little performance benefit.  Otherwise, you should be able to select one or more of:&lt;br /&gt;
* running more cameras,&lt;br /&gt;
* running existing cameras at higher image resolutions,&lt;br /&gt;
* running cameras at a faster frame rate,&lt;br /&gt;
* saving MoDect images with higher quality,&lt;br /&gt;
* having more CPU cycles available for any non-Zoneminder workload, etc.&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info on the download-the-library-yourself, compile-your-own-Zoneminder binary, etc. approach if needed. 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;
&lt;br /&gt;
Try building Zoneminder with processor specific instructions that are optimised to the system it will be running on, also increasing the optimisation level of GCC beyond -O2 will help.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure CFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; CXXFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above command is optimised for an Athlon XP cpu so you will need to use the specific processor tag for your cpu, also the compiler optimisation has been increased to -O3.&lt;br /&gt;
&lt;br /&gt;
You also need to put in your normal ./configure commands as if you were compiling with out this optimisation.&lt;br /&gt;
&lt;br /&gt;
A further note is that the compile must be performed on the system that Zoneminder will be running on as this optimisation will make it hardware specific code.&lt;br /&gt;
&lt;br /&gt;
Processor specific commands can be found in the GCC manual along with some more options that may increase performanc. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The below command has been used to compile Zoneminder on a Athlon XP system running CentOS 5.5 and along with the libjpeg-turbo modification to reduce the CPU load in half, libjpeg-turbo reduced the load by 1/3 before the processor optimisation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin CFLAGS=&amp;quot;-g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS -g -O3 -march=athlon-xp -mtune=athlon-xp&amp;quot; --enable-mmap --sysconfdir=/etc/zm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command has been used to compile Zoneminder 1.25 on a CentOS 6.0 system, the native command should choose the processor automatically during compile time, this needs to be performed on the actual system!!.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CFLAGS=&amp;quot;-g -O3 -march=native -mtune=native&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS -g -O3 -march=native -mtune=native&amp;quot; ./configure  --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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;
=== When running configure I am getting a lot of messages about not being able to compile the ffmpeg libraries ===&lt;br /&gt;
&lt;br /&gt;
If you see output from configure that looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;checking libavcodec/avcodec.h usability... no&lt;br /&gt;
checking libavcodec/avcodec.h presence... yes&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h:     check for missing&lt;br /&gt;
prerequisite headers?&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h:     section &amp;quot;Present But&lt;br /&gt;
Cannot Be Compiled&amp;quot;&lt;br /&gt;
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler&amp;#039;s&lt;br /&gt;
result&lt;br /&gt;
configure: WARNING:     ## ------------------------------------- ##&lt;br /&gt;
configure: WARNING:     ## Report this to support@zoneminder.com ##&lt;br /&gt;
configure: WARNING:     ## ------------------------------------- ##&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then it is caused not by the ZoneMinder build system but ffmpeg itself. However there is a workaround you can use which is to add&lt;br /&gt;
&lt;br /&gt;
  CPPFLAGS=-D__STDC_CONSTANT_MACROS&lt;br /&gt;
&lt;br /&gt;
to the ZoneMinder ./configure command which should solve the issue. However this is not a proper &amp;#039;fix&amp;#039; as such, which can only come from the ffmpeg project itself.&lt;br /&gt;
&lt;br /&gt;
=== I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&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;
== 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 * * * root /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * root /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;perldoc 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 (M.Id)&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 ( !zmMemVerify( $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;
==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;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&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;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
If you recently upgraded to zoneminder 1.26, there is a per camera option that defaults to black and white and can be mis-set if your upgrade didn&amp;#039;t happen right. See this thread: http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21344&lt;br /&gt;
&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&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;
&lt;br /&gt;
This error some times happens when a linked camera looses its link or it is corrupted by the user or some other system event, try deleting the affected cameras and recreating them in the Zoneminder console.&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;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&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;br /&gt;
&lt;br /&gt;
===Zoneminder doesn&amp;#039;t start automatically on boot===&lt;br /&gt;
Check the list for log entries like &amp;quot;zmfix[766]: ERR [Can&amp;#039;t connect to server: Can&amp;#039;t connect to local MySQL server through socket &amp;#039;/var/run/mysqld/mysqld.sock&amp;#039; (2)] &amp;quot;. &lt;br /&gt;
What can happen is that zoneminder is started too quickly after Mysql and tries to contact the database server before it&amp;#039;s ready. Zoneminder gets no answer and aborts. &lt;br /&gt;
August 2010 - Ubuntu upgrades seem to be leaving several systems in this state. One way around this is to add a delay to the zoneminder startup script allowing Mysql to finish starting. &lt;br /&gt;
&amp;quot;Simply adding &amp;#039;sleep 15&amp;#039; in the line above &amp;#039;zmfix -a&amp;#039; in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!&amp;quot; - credit to Pada.&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circumstances.&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6593</id>
		<title>Fedora</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Fedora&amp;diff=6593"/>
		<updated>2015-03-11T14:30:07Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&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;
&amp;#039;&amp;#039;&amp;#039;&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;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on Fedora.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. This is in comparison to past ZoneMinder rpm&amp;#039;s found in the Fedora repositories, which do not have ffmpeg support built-in.  Zmrepo includes all dependencies that are not found in the default Fedora repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary purpose for developing ZoneMinder rpms for Fedora is to get an idea of how well ZoneMinder works on the bleeding edge of software development.  We don&amp;#039;t use Fedora in our production systems and consequently these rpms do not get the same share of testing that the ZoneMinder rpms for RHEL/CentOS do.  However, they do give us the unique opportunity to solve any problems caused by new software widgets (looking at you systemd) before they trickle down to RHEL/CentOS.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
Those that want to use the latest and greatest packages available should use this repository over the RHEL/CentOS repository. Keep in mind that this comes with the real possibility Fedora may throw in something new, which might cause a problem with ZoneMinder. &lt;br /&gt;
&lt;br /&gt;
==== Supported Versions ====&lt;br /&gt;
Fedora distributions have a relatively short life cycle. A new version of Fedora is scheduled to be released [https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle every 6 months]. It is the goal of the ZoneMinder development team to provide and support ZoneMinder rpms for the two most recent versions of Fedora. Today, those two versions are Fedora 21 and 20. Rpms built for older versions of Fedora may exist in zmrepo, but they will not be maintained and may be deleted at some point in the future.&lt;br /&gt;
&lt;br /&gt;
==== Installation====&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386 or x86_64 architectures on Fedora 20:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/f/20/i386/zmrepo-20-3.fc20.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-20-3.fc20.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder/README.Fedora&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Fedora before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386 or x86_64 architectures on Fedora 21:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/f/21/i386/zmrepo-21-1.fc21.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-21-1.fc21.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder/README.Fedora&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Fedora before ZoneMinder will function correctly.&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>Knnniggett</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6592</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=6592"/>
		<updated>2015-03-11T14:29:23Z</updated>

		<summary type="html">&lt;p&gt;Knnniggett: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The intent of this walk through is to install a very base/bare bones installation of CentOS that runs only ZoneMinder. This would be for a dedicated ZoneMinder server with no GUI or any unnecessary services running. The reason for the very light-weight installation is to make the majority of system resources available to ZoneMinder, not the OS. With this installation, memory is reduced to around 140-160MB, and CPU usage is practically nonexistent. The CentOS base installation is very easy to install and doesn’t take too much time as long as you have some type of broadband connection. There are many ways to install CentOS, but this article covers only two, because they are related.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;All CLI operations/commands in this How-To are done as root, in the /root directory. The reasoning is that this system would be in a secure environment to begin with. However, if you need to add a user to run these services to better secure the system, then you can, but keep in mind that some items must run as root.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Zmrepo - A ZoneMinder repository for RPM based distros ==&lt;br /&gt;
The ZoneMinder development team would like to introduce you to a new, easier way to install ZoneMinder on CentOS.  Zmrepo is meant to be a turn-key solution.  There is no compiling, no installing modules from CPAN, and no more complicated repository instructions.  &lt;br /&gt;
&lt;br /&gt;
This repository brings together a ZoneMinder rpm built by the development team, with all features enabled. It also includes all dependencies that are not found in the default CentOS repositories.  A few Perl modules are built by us, but all the rest of the dependencies are mirrored from popular sites such as EPEL and RPMFusion.  There is no longer a need to add these additional repositories to your system.  Zmrepo takes care of that for you.&lt;br /&gt;
&lt;br /&gt;
==== Who Should Use ====&lt;br /&gt;
The development team strictly uses CentOS, but these packages should work on Red Hat Enterprise Linux and Scientific Linux. The rpms in zmrepo are intended to work with &amp;#039;&amp;#039;default installations&amp;#039;&amp;#039; of these Linux distributions.  Modified versions are not guaranteed to work. Continue to the Disclaimer below for details.&lt;br /&gt;
&lt;br /&gt;
Please report any issues with RHEL and SL, as we have no way of pro-actively discovering them.&lt;br /&gt;
&lt;br /&gt;
==== Disclaimer ====&lt;br /&gt;
This could also be appropriately called &amp;#039;&amp;#039;&amp;#039;Who should not Use&amp;#039;&amp;#039;&amp;#039; zmrepo. &lt;br /&gt;
&lt;br /&gt;
The goal behind CentOS is that of an enterprise operating system. Stability is prioritized over the latest and greatest version of a particular package. Fortunately, bug fixes are backported. Consequently, you should &amp;#039;&amp;#039;never&amp;#039;&amp;#039; replace the core packages in CentOS! If you truly think that you &amp;quot;have to have&amp;quot; some package that is newer than what is found in the default repository then you should consider using a different Linux distro.&lt;br /&gt;
&lt;br /&gt;
The CentOS maintainers have a great write-up that describes this in much more detail [http://wiki.centos.org/PackageManagement/SourceInstalls here].  Pay close attention to the all the do&amp;#039;s, dont&amp;#039;s, and &amp;quot;this will break&amp;quot; comments.&lt;br /&gt;
&lt;br /&gt;
Zmrepo extends this same philosophy onto ZoneMinder. While ZoneMinder requires many dependencies to work, zmrepo will not overwrite any core packages.  It only adds packages that, otherwise, would not be available.&lt;br /&gt;
&lt;br /&gt;
One other case is worth mentioning. This repository is intended &amp;#039;&amp;#039;only&amp;#039;&amp;#039; for those who have installed RHEL/CentOS/SL using the &amp;#039;&amp;#039;&amp;#039;official installation media for that distribution&amp;#039;&amp;#039;&amp;#039;!  This means that these rpms are not intended to work with third parties that release their own spin of CentOS, which contain their own third party application preinstalled.  Third parties are allowed to modify the original distribution in any way, which means we can&amp;#039;t guarantee the rpms in zmrepo will be compatible.  &lt;br /&gt;
&lt;br /&gt;
For example, if you installed &amp;quot;CentOS&amp;quot; using an installation disk from an Astericks vendor, then the rpms in zmrepo are known not to work.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for i386 or x86_64 architectures on CentOS 6:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/el/6/i386/zmrepo-6-4.el6.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-6-4.el6.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder-*/README.CentOS&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.CentOS before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
NOTE: RHEL users must enable the &amp;quot;rhel-6-server-optional-rpms&amp;quot; repositoy on their system before attempting to install ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
A YouTube video that steps through the installation can be viewed [https://www.youtube.com/watch?v=l2lLvl8WxfU here.]&lt;br /&gt;
&lt;br /&gt;
* Installation Instructions for x86_64 architecture (only) on CentOS 7:&lt;br /&gt;
 wget http://zmrepo.zoneminder.com/el/7/x86_64/zmrepo-7-3.el7.centos.noarch.rpm&lt;br /&gt;
 sudo yum install --nogpgcheck zmrepo-7-3.el7.centos.noarch.rpm&lt;br /&gt;
 sudo yum install zoneminder&lt;br /&gt;
 less /usr/share/doc/zoneminder-*/README.Centos7&lt;br /&gt;
&lt;br /&gt;
You must complete the steps documented in README.Centos7 before ZoneMinder will function correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING: CentOS 7 support is still being developed. This repo is currently not for production and might not yet be error free.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== CentOS 5.6 &amp;amp; ZoneMinder 1.25.0 ==&lt;br /&gt;
This guide is for CentOS v5.6 (&amp;lt;b&amp;gt;Notes for using this guide with CentOS 6 are in chapter 2.&amp;lt;/b&amp;gt;) with ZoneMinder v1.25.0 which are the newest released versions as of this update (Summer 2011).  If you are attempting to install newer versions of either using this guide, you will have to adjust file and directory names denoted below. &lt;br /&gt;
&lt;br /&gt;
=== Step One - Get CentOS ===&lt;br /&gt;
You can download the “.iso” file(s) for CentOS from http://www.centos.org/&amp;lt;br/&amp;gt;&lt;br /&gt;
Alternatively download the net-install version of CentOS which is basically just the first CD.&lt;br /&gt;
Here is one location to download the net-install version:&amp;lt;br/&amp;gt;&lt;br /&gt;
Download i386: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://mirror.symnds.com/distributions/CentOS-vault/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://mirror.centos.org/centos/5/isos/&lt;br /&gt;
&lt;br /&gt;
=== Step Two - Installation Source ===&lt;br /&gt;
Regardless of which method you use, the next few steps are the same.&amp;lt;br/&amp;gt;&lt;br /&gt;
Begin by booting your system up with either cd/dvd.&amp;lt;br/&amp;gt;&lt;br /&gt;
Choose the options that best fit your environment until you reach the “Installation Method”. &lt;br /&gt;
&lt;br /&gt;
[[Image:centosnetinstal-http.png]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;#039;&amp;#039;&amp;#039;HTTP&amp;#039;&amp;#039;&amp;#039; ONLY if you are using the net-install method.  Otherwise, you probably want to choose &amp;#039;&amp;#039;&amp;#039;Local CDROM&amp;#039;&amp;#039;&amp;#039;. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using the net-install method then enter:&amp;lt;br/&amp;gt;&lt;br /&gt;
Website Name: &amp;#039;&amp;#039;&amp;#039;mirror.centos.org&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for i386) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/i386&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
CentOS Directory: (for 64 bit) &amp;#039;&amp;#039;&amp;#039;/centos/5.6/os/x86_64&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Step Three - Installation Packages ===&lt;br /&gt;
On the first screen, un-check &amp;quot;Desktop - Gnome&amp;quot; then check &amp;quot;Server&amp;quot; (not Server-GUI)&amp;lt;br/&amp;gt;&lt;br /&gt;
Make sure that you have &amp;quot;Customize now&amp;quot; selected at the bottom. (do not check &amp;quot;Packages from CentOS Extras&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-packages1.png]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Next&amp;quot; to continue&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once presented with the custom package selection, un-check/check the following:&lt;br /&gt;
 Applications = Check only &amp;quot;Editors&amp;quot; and &amp;quot;Text Based Internet&amp;quot;&lt;br /&gt;
 Development = Check only &amp;quot;Development Libraries&amp;quot; and &amp;quot;Development Tools&amp;quot;&lt;br /&gt;
 Servers = Un-check everything&lt;br /&gt;
 Base System = Check only &amp;quot;Base&amp;quot; (you can check Administration Tools and System Tools if you need them, but they are not necessary)&lt;br /&gt;
&lt;br /&gt;
[[Image:Centosinstall-packages2.png]]&lt;br /&gt;
&lt;br /&gt;
Now let the system finish the installation.&lt;br /&gt;
&lt;br /&gt;
[[Image:centosisntall-end.png]]&lt;br /&gt;
&lt;br /&gt;
=== Step Four - Configuration ===&lt;br /&gt;
After the first reboot, the setup screen should appear. If not, log into the system and type &amp;quot;setup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup1.png]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Firewall Configuration&amp;quot; and set the &amp;quot;Security Level&amp;quot; and &amp;quot;SELinux&amp;quot; to &amp;quot;Disabled.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:centosinstall-setup2.png]]&lt;br /&gt;
&lt;br /&gt;
Next, we are going to disable a number of system services. Go back to the setup screen and select &amp;quot;System Services&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Un-Check:&lt;br /&gt;
 apmd&lt;br /&gt;
 bluetooth&lt;br /&gt;
 cups&lt;br /&gt;
 hidd&lt;br /&gt;
 ip6tables&lt;br /&gt;
 iptables&lt;br /&gt;
 netfs&lt;br /&gt;
 nfslock&lt;br /&gt;
 pcscd&lt;br /&gt;
 portmap&lt;br /&gt;
After disabling the services, select &amp;quot;Disable Now and On Boot&amp;quot;, exit the setup tool, and log into the system if you haven&amp;#039;t already.&lt;br /&gt;
*Screen is a simple program that allows you to run commands from a &amp;quot;Hosted&amp;quot; command line interface. This helps if you loose your connection to the server for any reason in that it enables you to resume (screen -r) right where you left off. Often times, I will start a large update/upgrade, leave it for the day, then come back and see where it&amp;#039;s at later. Screen allows you to do that without having to be connected.&lt;br /&gt;
*Install Screen&lt;br /&gt;
 yum install screen&lt;br /&gt;
*To start a screen session just type&lt;br /&gt;
 screen&lt;br /&gt;
*If you get disconnected and need to resume your session of screen simply type&lt;br /&gt;
 screen -r&lt;br /&gt;
&lt;br /&gt;
=== Step Five - Installing ZoneMinder 1.25.0 ===&lt;br /&gt;
First, we need to download files and prepare the system&lt;br /&gt;
*Add the RPM Forge repository to CentOS. This will allow the installation of a number of services/applications later without having to manually install them.&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i386 CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 5.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the needed files, ZoneMinder 1.25.0 and the Cambozola addon&lt;br /&gt;
 wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 wget http://www.zoneminder.com/sites/zoneminder.com/downloads/cambozola.jar&lt;br /&gt;
*Now let&amp;#039;s install all the services and programs that will be needed (&amp;#039;&amp;#039;If you encounter any dependency errors using yum, try running &amp;#039;&amp;#039;&amp;#039;yum clean all&amp;#039;&amp;#039;&amp;#039; then re-try the install command(s).&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
*tip: Copy/paste two lines at a time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum -y install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc \&lt;br /&gt;
pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel ImageMagick&lt;br /&gt;
&lt;br /&gt;
yum -y install libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools \&lt;br /&gt;
perl-Date-Manip perl-LWP-UserAgent-Determined&lt;br /&gt;
&lt;br /&gt;
yum -y install perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Sys-Mmap \&lt;br /&gt;
perl-Module-Load subversion git yasm bzip2 bzip2-devel bzip2-libs lbzip2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now let&amp;#039;s update everything within the new CentOS install&lt;br /&gt;
 yum -y update&lt;br /&gt;
*At this point, it might be useful to reboot your system. Oddly, sometimes things don&amp;#039;t work right unless you reboot after all the updates&lt;br /&gt;
 reboot   -or-   shutdown -r now&lt;br /&gt;
*After rebooting, log into your system&lt;br /&gt;
==== Install ffmpeg ====&lt;br /&gt;
*Now we need to make sure we use the latest &amp;quot;tested&amp;quot; version of &amp;quot;ffmpeg&amp;quot;. This is the latest version of ffmpeg that the ZoneMinder developers have tested with.  Download, compile and install ffmpeg:&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone git://git.videolan.org/ffmpeg.git&lt;br /&gt;
cd ffmpeg&lt;br /&gt;
./configure --enable-gpl --enable-shared --enable-pthreads&lt;br /&gt;
make &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The following commands must be done as &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install &lt;br /&gt;
make install-libs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
edit /etc/ld.so.conf and add the line &amp;quot;/usr/local/lib&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ldconfig -v&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Next, run &amp;#039;ffmpeg&amp;#039; from the command line. Make sure you do not get any errors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If &amp;#039;ffmpeg&amp;#039; runs correctly, you&amp;#039;ll see something similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg version N-32260-gaebb56e, Copyright (c) 2000-2011 the FFmpeg developers&lt;br /&gt;
  built on Aug 31 2011 21:41:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)&lt;br /&gt;
  configuration: --enable-shared --enable-swscale --enable-gpl --enable-pthreads&lt;br /&gt;
  libavutil    51. 14. 0 / 51. 14. 0&lt;br /&gt;
  libavcodec   53. 12. 0 / 53. 12. 0&lt;br /&gt;
  libavformat  53. 10. 0 / 53. 10. 0&lt;br /&gt;
  libavdevice  53.  3. 0 / 53.  3. 0&lt;br /&gt;
  libavfilter   2. 37. 0 /  2. 37. 0&lt;br /&gt;
  libswscale    2.  0. 0 /  2.  0. 0&lt;br /&gt;
  libpostproc  51.  2. 0 / 51.  2. 0&lt;br /&gt;
Hyper fast Audio and Video encoder&lt;br /&gt;
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&lt;br /&gt;
&lt;br /&gt;
Use -h to get full help or, even better, run &amp;#039;man ffmpeg&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enable services ====&lt;br /&gt;
*Turn everything on.  These commands must be run as root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 chkconfig httpd on &lt;br /&gt;
 chkconfig mysqld on &lt;br /&gt;
 chkconfig ntpd on &lt;br /&gt;
 service httpd start &lt;br /&gt;
 service mysqld start &lt;br /&gt;
 service ntpd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Install Zoneminder ====&lt;br /&gt;
*Next, we need to extract the contents of the ZoneMinder &amp;quot;tar&amp;quot; file, then jump into its directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd /root/  # Or your work directory for this installation&lt;br /&gt;
 tar -zxvf ZoneMinder-1.25.0.tar.gz&lt;br /&gt;
 cd ZoneMinder-1.25.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now we are going to configure ZoneMinder with some additional parameters. What is listed are the default CentOS directory locations.&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin&lt;br /&gt;
&lt;br /&gt;
Note: It seems for Zoneminder to build with newer versions of ffmpeg, (certainly 0.6.3) you&amp;#039;ll need to append CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; to the end of the&lt;br /&gt;
./configure line thus:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
There is a section in the FAQ &amp;#039;&amp;#039;&amp;quot;When running configure, I get a lot of messages about not being able to compile the ffmpeg libraries&amp;quot;&amp;#039;&amp;#039; about this [[http://www.zoneminder.com/wiki/index.php/FAQ]].&lt;br /&gt;
&lt;br /&gt;
Worth mentioning here is the section in the FAQ under the heading &amp;quot;&amp;#039;&amp;#039;My load is too high, how can I reduce it?&amp;#039;&amp;#039;&amp;quot; [[http://www.zoneminder.com/wiki/index.php/FAQ]]. This descibes how you can possibly reduce CPU load by half by &lt;br /&gt;
changing the system&amp;#039;s jpeg libraries and building Zoneminder with processor specific instructions.  &lt;br /&gt;
Since CentOS 6.4 CentOS now comes with libjpeg_turbo as the standard JPEG library leading to a more optimised Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default ZM_DB_HOST=localhost, ZM_DB_NAME=zm, ZM_DB_USER=zmuser, and ZM_DB_PASS=zmpass.&lt;br /&gt;
*Change &amp;quot;zmuser&amp;quot; (if you want) with the user that you will use within MySQL to access the ZoneMinder database&lt;br /&gt;
*Change &amp;quot;zmpass&amp;quot; with the password you will be using with the &amp;quot;zmuser&amp;quot; account&lt;br /&gt;
So if you wish to change it, use a command like:&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 ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass&lt;br /&gt;
&lt;br /&gt;
*if you get the configure &amp;quot;error zm requires libmysqlclient.a&amp;quot; with 64 bit CentOS add the following to the end of your configure statement&lt;br /&gt;
  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
e.g. For CentOS 5.6 64-bit with support for ffmpeg.  The whole command must be executed on one line.  Make sure to change the &amp;#039;&amp;#039;&amp;#039;zmpass&amp;#039;&amp;#039;&amp;#039; to a password that matches your installation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;make install&amp;#039;&amp;#039;&amp;#039; after running the configuration steps above.&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
 # Run the next command as root&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Configure MySQL ====&lt;br /&gt;
*Need to add a password for the root user of MySQL&lt;br /&gt;
*Create the zm database&lt;br /&gt;
*Create the zm database user with permissions and password&lt;br /&gt;
 mysql&lt;br /&gt;
 mysql&amp;gt; SET PASSWORD FOR root@localhost=PASSWORD(&amp;#039;new_root_password&amp;#039;);&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&amp;gt;Query OK, 1 row affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; CREATE USER &amp;#039;your_zm_user&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;your_zm_password_from_above&amp;#039;;&lt;br /&gt;
Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost;&lt;br /&gt;
&amp;gt;Query OK, 0 rows affected (0.02 sec)&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
&amp;gt;Bye&lt;br /&gt;
*Import the tables into the zm database&lt;br /&gt;
 cd /root/ZoneMinder-1.25.0 &lt;br /&gt;
 mysql -u root -p zm &amp;lt; db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
==== Finalize Installation of ZoneMinder ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All remaining CLI commands need to be run as root.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Make ZoneMinder startup automatically after a reboot&lt;br /&gt;
 # from the ZoneMinder-1.25 source directory&lt;br /&gt;
 cp scripts/zm /etc/init.d/&lt;br /&gt;
 chmod +x /etc/init.d/zm&lt;br /&gt;
 chkconfig zm on&lt;br /&gt;
*Add the Cambozola Java web interface&lt;br /&gt;
 cp cambozola.jar /var/www/html/zm/&lt;br /&gt;
*Make sure you have permission to view it from apache:&lt;br /&gt;
 chown apache:apache /var/www/html/zm/cambozola.jar&lt;br /&gt;
*Start ZoneMinder&lt;br /&gt;
 service zm start&lt;br /&gt;
&lt;br /&gt;
Note: You may get an error when you try to start Zoneminder using the &amp;#039;zm&amp;#039; startup script as per this forum post: [[http://www.zoneminder.com/forums/viewtopic.php?f=21&amp;amp;t=17827]] .&lt;br /&gt;
The reason for this was the default &amp;#039;zm&amp;#039; startup script was formatted with DOS line endings. If you get the errors as detailed in the above post then the fix is to convert the &lt;br /&gt;
&amp;#039;zm&amp;#039; file to use UNIX style line endings. You can do this in the Vim text editor whilst editing the &amp;#039;zm&amp;#039; file thus: &amp;#039;:set fileformat=unix&amp;#039; then save the file &amp;#039;:wq&amp;#039;. You can also &lt;br /&gt;
use the utility dos2unix to convert the file. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
* tick the box for support for the Cambozola addon within your ZoneMinder installation: http://ip-address/zm (Options-&amp;gt;Images&amp;amp;nbsp;tab-&amp;gt;OPT_CAMBOZOLA)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now have fun and add your cameras to ZoneMinder knowing you now have a very stable and streamlined OS to run it on.&lt;br /&gt;
&lt;br /&gt;
== CentOS 6 Notes ==&lt;br /&gt;
&lt;br /&gt;
The installation for CentOS 6 is pretty much the same.&lt;br /&gt;
Download CentOS 6 minimal installation ISO (CentOS-6.0-i386-minimal.iso – 257MB).  Burn to CD and install. We only want to be running in console text mode not GUI graphics mode. During installation configure network and tick to enable network adapter.&lt;br /&gt;
* Login as root and update the base install:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum -y update&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install required packages, other useful packages, and their dependencies&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum groupinstall core&lt;br /&gt;
yum groupinstall base&lt;br /&gt;
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring \&lt;br /&gt;
nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver \&lt;br /&gt;
sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel \&lt;br /&gt;
bison-devel ncurses zlib zlib-devel openssl openssl-devel gnutls-devel php-process perl-Time-HiRes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
To remove various configure/make errors in Centos 6.2, you may also want to install:&amp;lt;pre&amp;gt;&lt;br /&gt;
bzip2-libs ffmpeg-devel ffmpeg-php perl-Net-SFTP-Foreign perl-Expect perl-LWPx-ParanoidAgent.x86_64&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we continue from step four (4).&lt;br /&gt;
==== Installation of ZoneMinder ====&lt;br /&gt;
* In step five (5) the correct RPM Forge repository is:&lt;br /&gt;
&amp;lt;pre&amp;gt;# For i686 CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm&lt;br /&gt;
&lt;br /&gt;
# For 64 bit CentOS 6.x run:&lt;br /&gt;
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In step five (5) the command that seems to configure zoneminder correctly is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/html/zm \&lt;br /&gt;
 --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache \&lt;br /&gt;
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=your_zm_user ZM_DB_PASS=your_zm_password ZM_SSL_LIB=openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion:&lt;br /&gt;
For Centos 6.2, I used the following configure string for success:&amp;lt;pre&amp;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 ZM_DB_NAME=zm ZM_DB_USER=&amp;lt;zm user&amp;gt; ZM_DB_PASS=&amp;lt;zm user passwd&amp;gt; ZM_SSL_LIB=openssl  --with-extralibs=&amp;quot;-L/usr/lib64 -L/usr/lib64/mysql&amp;quot; --with-ffmpeg=/usr/share/ffmpeg  CXXFLAGS=&amp;quot;-D__STDC_CONSTANT_MACROS&amp;quot; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting FFmpeg Errors Building ZoneMinder ====&lt;br /&gt;
Using the git version of FFmpeg can cause the ZoneMinder make process to fail with unresolved symbols in ffmpeg. To remedy this, use version 0.6.5 of FFmpeg with the same configure instructions as the normal install above.&lt;br /&gt;
FFmpeg 0.6.5: http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.bz2&lt;br /&gt;
==== Troubleshooting Blank Page ====&lt;br /&gt;
If everything went ok but when accessing zoneminder&amp;#039;s web page at http://localhost/zm, the page is blank this means that there is a problem with PHP short tags. Edit setting short_open_tag in php.ini (/etc/php.ini) and change it to On.&lt;br /&gt;
* Restart apache server with:&lt;br /&gt;
&amp;lt;pre&amp;gt;service httpd restart&amp;lt;/pre&amp;gt; and you should be up and running.&lt;br /&gt;
==== Trouble shooting full drive with CentOS 6 ====&lt;br /&gt;
The default drive structure has chaned from that of CentOS 5 having the full drive allocated to the /root partition. CentOS 6 by default makes a logical volume &amp;#039;LVM&amp;#039; of 10% your drives space for the /root partition and the remaining drive as the /home partion with the exception of the swap and boot partitions.&lt;br /&gt;
&lt;br /&gt;
The will cause Zoneminder to fill the /root partition as the /var/www/html/zm/events directory is by default located here, you can use the system-config-lvm utility to re-adjust this partition balance if your system has been installed with the default partition structure.&lt;br /&gt;
&lt;br /&gt;
It is best to install CentOS 6 with a custom partition layout that is the same as CentOS 5 structure, you can also if using a single physical had drive do with out the LVM drives and create an EXT4 /root partion along with the standard /boot and /swap partitions.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[== &amp;#039;&amp;#039;&amp;#039;P.S.&amp;#039;&amp;#039;&amp;#039; ==]] aspcicc@jumpy.it&lt;br /&gt;
(Update: This does not appear to be required any more.)&lt;br /&gt;
&lt;br /&gt;
Hi! and thanks for your guide.. i want to add a little correction that have made me crazy to resolve, when I poweroff or reboot system i obtain an error related to mysql database and i have    understood that the problem was because mysqld is stopped before zoneminder to be more specific there isn&amp;#039;t a link under rc0.d (halt) and rc6.d (reboot) to zoneminder that for this lack is simply killed by killall. To resolve this problem you need to add at the start of zm (under /etc/init.d) the line&lt;br /&gt;
&lt;br /&gt;
 &amp;#039; # chkconfig: 345 99 01 &amp;#039;  (without &amp;#039; of course)&lt;br /&gt;
&lt;br /&gt;
and then run &lt;br /&gt;
chkconfig --level 345 zm on&lt;br /&gt;
chkconfig --level 06 zm off&lt;br /&gt;
&lt;br /&gt;
So the link to shutdown zm is created under rc0.d and rc6.d and zoneminder is started at the end of poweron and stopped at the beginning of the poweroff&lt;br /&gt;
&lt;br /&gt;
For information about priority starting and stopping processes see: http://www.netadmintools.com/art94.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Added Dependency: ImageMagick&lt;br /&gt;
&lt;br /&gt;
Removed Dependency: perl-Time-HiRes, which causes a conflict with the default perl package.&lt;br /&gt;
&lt;br /&gt;
Also, mysql seems to install with no password for the root user, and the zm DB create script creates the database on the fly, which means that the database create command needs to have the &amp;quot;-p zm&amp;quot; removed from the command line.&lt;br /&gt;
&lt;br /&gt;
Could someone verify that this is correct, to make sure it&amp;#039;s not just something I missed?&lt;br /&gt;
&lt;br /&gt;
Thanks! &lt;br /&gt;
terry@cnysupport.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Struggling to get x264 and ffmpeg working?  I used the latest SVN versions not the Centos packages.  But I was getting&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I followed these instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /etc/ld.so.conf.d&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* add another file:  custom-libs.conf&lt;br /&gt;
* inside, put :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/local/lib&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* save the file&lt;br /&gt;
* run ldconfig&lt;br /&gt;
&amp;lt;pre&amp;gt;ldconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BeeryGaz&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== Failed monitors or ZM refusing to start ====&lt;br /&gt;
A problem that took me some time to figure out on two installations was SElinux.&lt;br /&gt;
SElinux stops Zoneminder from accessing some system parts or doing some functions so will cause various errors or simply drive you nuts trying to figure out.&lt;br /&gt;
&lt;br /&gt;
Look at the following page on how to disable SElinux or use permissive mode.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some of the errors that I was getting with a fresh install on CentOS 6 was&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2013-02-16 16:13:10.828590	zmwatch	14898	ERR	Can&amp;#039;t open memory map file &amp;#039;/dev/shm/zm.mmap.1&amp;#039;: No such file or directory	zmwatch.pl	&lt;br /&gt;
2013-02-16 16:13:10.736988	zmfix	15317	ERR	Can&amp;#039;t stat /dev/video0: Permission denied	zmfix.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== ZoneMinder 1.26.x ==&lt;br /&gt;
&lt;br /&gt;
Zoneminder after a long period of none development is now being developed by the community, these notes are to try and help with the installation of the new release on CentOS 5 and CentOS 6.&lt;br /&gt;
All testing has been done on a CentOS 6.4 fresh install server.&lt;br /&gt;
&lt;br /&gt;
=== Cmake installation notes ===&lt;br /&gt;
&lt;br /&gt;
Compiling of Zoneminder can now be done with the &amp;#039;Cmake&amp;#039; command in replacement of the ./configure command this should automatically configure the build with the minimum of parameters. The &amp;#039;Cmake&amp;#039; command at time of writing produced a partially working installation with the main files installed into /usr/local/bin/zoneminder and associated folders, different from the above guides.&lt;br /&gt;
&lt;br /&gt;
The webfiles require to be linked via a zoneminder.conf file located with in the /disto/redhat directory inside the build directory that requires to be coped to the /etc/httpd/conf.d directory, this will need to be edited to the correct location of the webfiles and remove the local only command as indicated with in the file.&lt;br /&gt;
&lt;br /&gt;
The Cmake install failed to use my BTTV capture card producing various errors with a potential solution given here &amp;lt;pre&amp;gt;http://www.zoneminder.com/forums/viewtopic.php?f=30&amp;amp;t=21709&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ./configure compile ===&lt;br /&gt;
&lt;br /&gt;
To install via the traditional ./configure method you first need to run the ./bootstrap.sh file to generate the required configure file, the install can then progress as the above installation guides.&lt;br /&gt;
&lt;br /&gt;
This method has produced a fully working installation at time of writing.&lt;br /&gt;
&lt;br /&gt;
== pt_BR Instructions ==&lt;br /&gt;
&lt;br /&gt;
Here is a good walkthrough install of zoneminder in CentOS using the rpm package method. It is intended to Portuguese  (pt or pt_BR) audience.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://dulimind.blogspot.com.br/2015/02/zoneminder-no-centos-6-metodo-facil-com.html&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Knnniggett</name></author>
	</entry>
</feed>