<?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=Jeffmings</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=Jeffmings"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Jeffmings"/>
	<updated>2026-04-19T18:54:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=5836</id>
		<title>Panasonic</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Panasonic&amp;diff=5836"/>
		<updated>2013-09-07T05:05:47Z</updated>

		<summary type="html">&lt;p&gt;Jeffmings: Added Panasonic BL-VT164&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All members of the BL and BB model families are likely to be compatible, including PTZ support.  The &amp;quot;Panasonic IP&amp;quot; monitor preset in ZoneMinder is known to be compatible with these Panasonic netcam models:&lt;br /&gt;
&lt;br /&gt;
* BL-C1A, BL-C1CN, BL-C1E&lt;br /&gt;
* BL-C20A, BL-C20CN, BL-C20E&lt;br /&gt;
* BL-C30A, BL-C30CN, BL-C30E&lt;br /&gt;
* BL-C101A, BL-C101CN, BL-C101E&lt;br /&gt;
* BL-C111A, BL-C111CN, BL-C111E&lt;br /&gt;
* BL-C121A, BL-C121CN, BL-C121E&lt;br /&gt;
* BL-C131A, BL-C131CN, BL-C131E&lt;br /&gt;
* BL-C140A, BL-C140CN, BL-C140E&lt;br /&gt;
* BL-C160A, BL-C160CN, BL-C160E&lt;br /&gt;
* BB-HCM381A, BB-HCM381CN, BB-HCM381E&lt;br /&gt;
* BB-HCM511A, BB-HCM511CN, BB-HCM511E&lt;br /&gt;
* BB-HCM527A, BB-HCM527CN, BB-HCM527E&lt;br /&gt;
* BB-HCM531A, BB-HCM531CN, BB-HCM531E&lt;br /&gt;
* BB-HCM547A, BB-HCM547CN, BB-HCM547E&lt;br /&gt;
* BB-HCM580A, BB-HCM580CN, BB-HCM580E&lt;br /&gt;
* BB-HCM581A, BB-HCM581CN, BB-HCM581E&lt;br /&gt;
* KX-HCM10&lt;br /&gt;
* BB-HCM705CE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Initial Hardware Setup=&lt;br /&gt;
&lt;br /&gt;
# The camera uses a default IP address of 192.168.0.254 if it does not get a DHCP lease.  Many firmware revisions ship with DHCP disabled by default.  If you are not using the configuration utility for Microsoft Windows, then you may need to do something like `sudo ifconfig eth0:0 192.168.0.2` at a terminal prompt to access the camera and enable DHCP.&lt;br /&gt;
# Upgrade the firmware. ZoneMinder 1.25 expects version 3.00 or later.&lt;br /&gt;
# Enable the guest account:&lt;br /&gt;
## Click &amp;#039;&amp;#039;Setup&amp;#039;&amp;#039; in the top menu.&lt;br /&gt;
## Click &amp;#039;&amp;#039;Administrator&amp;#039;&amp;#039; in the side menu.&lt;br /&gt;
## Choose &amp;#039;&amp;#039;Permit access from guest users&amp;#039;&amp;#039;.&lt;br /&gt;
## Click the &amp;#039;&amp;#039;Save&amp;#039;&amp;#039; button.&lt;br /&gt;
# Set privileges on the guest account for ZoneMinder:&lt;br /&gt;
## Click &amp;#039;&amp;#039;Setup&amp;#039;&amp;#039; in the top menu.&lt;br /&gt;
## Click &amp;#039;&amp;#039;General User&amp;#039;&amp;#039; in the side menu.&lt;br /&gt;
## Choose &amp;#039;&amp;#039;Guest User&amp;#039;&amp;#039; in the menu.&lt;br /&gt;
## Click the &amp;#039;&amp;#039;Modify&amp;#039;&amp;#039; button.&lt;br /&gt;
## Change &amp;#039;&amp;#039;Video Display Time&amp;#039;&amp;#039; to &amp;#039;&amp;#039;Unlimited&amp;#039;&amp;#039;.&lt;br /&gt;
## Enable all &amp;#039;&amp;#039;Access Level&amp;#039;&amp;#039; checkboxes.&lt;br /&gt;
## Click the &amp;#039;&amp;#039;Save&amp;#039;&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
Only set access credentials on Panasonic equipment after you have a working ZoneMinder configuration.&lt;br /&gt;
&lt;br /&gt;
=MJPEG Configuration=&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
At the &amp;#039;&amp;#039;Monitor -&amp;gt; Source&amp;#039;&amp;#039; page for the camera:&lt;br /&gt;
&lt;br /&gt;
  Remote Protocol: HTTP&lt;br /&gt;
  Remote Method: Simple&lt;br /&gt;
  Remote Host Name: 192.168.1.254&lt;br /&gt;
  Remote Host Port: 80&lt;br /&gt;
  Remote Host Path: nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
  Remote Image Colors: 24 bit color&lt;br /&gt;
  Capture Width (pixels): 640&lt;br /&gt;
  Capture Height (pixels): 480&lt;br /&gt;
  Preserve Aspect Ratio: Off&lt;br /&gt;
  Orientation: Normal&lt;br /&gt;
&lt;br /&gt;
==Example for Old Firmware==&lt;br /&gt;
&lt;br /&gt;
Change &amp;#039;&amp;#039;&amp;#039;nphMotionJpeg&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;nphContinuousServerPush&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;cgi-bin/nphContinuousServerPush&amp;#039;&amp;#039;&amp;#039; if the camera has old firmware like this:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: cgi-bin/nphContinuousServerPush?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
&lt;br /&gt;
Cameras models that only have the old version 2.00 firmware interface are:&lt;br /&gt;
&lt;br /&gt;
* BL-C20A&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
The required &amp;#039;&amp;#039;&amp;#039;Quality&amp;#039;&amp;#039;&amp;#039; CGI parameter sets JPEG quality and can be one of Clarity, Standard, or Motion.&lt;br /&gt;
&lt;br /&gt;
The required &amp;#039;&amp;#039;&amp;#039;Resolution&amp;#039;&amp;#039;&amp;#039; CGI parameter can be one of 1280x1024, 640x480, 320x240, or 160x120 pixels.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Only hi-def models support the 1280x1024 resolution, and some low end models like the Panasonic BL-C1A Petcam do not support the 640x480 resolution.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! MJPEG Frame Size&lt;br /&gt;
| Quality=Clarity&lt;br /&gt;
| Quality=Standard&lt;br /&gt;
| Quality=Motion&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=1280x1024&lt;br /&gt;
| ?&lt;br /&gt;
| ?&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=640x480&lt;br /&gt;
| 50kB&lt;br /&gt;
| 30kB&lt;br /&gt;
| 20kb&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=320x240&lt;br /&gt;
| 25kB&lt;br /&gt;
| 15kB&lt;br /&gt;
| 8kB&lt;br /&gt;
|-&lt;br /&gt;
| Resolution=160x120&lt;br /&gt;
| 8kB&lt;br /&gt;
| 5kB&lt;br /&gt;
| 3kB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The optional &amp;#039;&amp;#039;&amp;#039;Framerate&amp;#039;&amp;#039;&amp;#039; parameter can be 0.1 through 30.00 frames per second in one-tenth increments.  For example, to take an image every other second:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&amp;amp;Framerate=0.5&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; The default MJPEG frame rate in the web interface is the same as &amp;quot;MPEG-4 Max. Frame Rate&amp;quot; option, which is set on the &amp;#039;&amp;#039;Video Streaming&amp;#039;&amp;#039; page.&lt;br /&gt;
&lt;br /&gt;
==Performance==&lt;br /&gt;
&lt;br /&gt;
In MJPEG mode with a default configuration, ZoneMinder can sustain approximately 5 fps from a Panasonic netcam.  In ideal conditions with tuning, the maximum is approximately 25 fps.&lt;br /&gt;
&lt;br /&gt;
On slow or busy systems, ZoneMinder performs better if the frame rate is externally limited at the camera.  For example, to limit capture to 10 fps, set:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&amp;amp;Framerate=10&lt;br /&gt;
&lt;br /&gt;
On the &amp;#039;&amp;#039;Monitor -&amp;gt; General&amp;#039;&amp;#039; configuration page for the camera in ZoneMinder, leave the &amp;#039;&amp;#039;&amp;#039;Maximum FPS&amp;#039;&amp;#039;&amp;#039; field empty.&lt;br /&gt;
&lt;br /&gt;
=RTSP/MPEG4 Configuration=&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;:  Low end models like the Panasonic BL-C1A Petcam only support MJPEG because they do not have an MPEG4 encoder.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
At the &amp;#039;&amp;#039;Monitor -&amp;gt; Source&amp;#039;&amp;#039; page for the camera:&lt;br /&gt;
&lt;br /&gt;
  Remote Protocol: RTSP&lt;br /&gt;
  Remote Method: RTP/Unicast&lt;br /&gt;
  Remote Host Name: 192.168.1.254&lt;br /&gt;
  Remote Host Port: 554&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-640x480&lt;br /&gt;
  Remote Image Colors: 24 bitcolor&lt;br /&gt;
  Capture Width (pixels): 640&lt;br /&gt;
  Capture Height (pixels): 480&lt;br /&gt;
  Preserve Aspect Ratio: Off&lt;br /&gt;
  Orientation: Normal&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Only high definition models support the 1280x1024 resolution.&lt;br /&gt;
&lt;br /&gt;
Available streaming resolutions are:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-1280x1024&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-640x480&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-320x240&lt;br /&gt;
  Remote Host Path: nphMpeg4/nil-160x120&lt;br /&gt;
&lt;br /&gt;
None of these URIs take parameters. Video streaming options are always global and can only be changed through the CGI or web interface.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; The camera must be manually rebooted for MPEG-4 or H.264 options to take affect.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Audio can be enabled on models that have it by changing the &amp;#039;&amp;#039;&amp;#039;nil&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;g726&amp;#039;&amp;#039;&amp;#039;, but ZoneMinder lacks audio support, so doing this would waste network capacity and storage.  For example:&lt;br /&gt;
&lt;br /&gt;
  Remote Host Path: nphMpeg4/g726-640x480&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Performance==&lt;br /&gt;
&lt;br /&gt;
In RTSP mode, ZoneMinder can get 30 fps from a Panasonic netcam that has an MPEG4 encoder.  The raw idle RTP output of a bright quiet scene for these cameras is usually 400 kbps, or 5GB per day.&lt;br /&gt;
&lt;br /&gt;
Even if the RTSP stream is frame limited by the camera, the transport will be at 30fps.  If the frame rate is decreased at the default maximum bit rate, then streaming image quality will noticeably improve.  To reduce streaming bandwidth, reduce both the frame rate and the maximum bit rate on the &amp;quot;Setup -&amp;gt; Video Streaming&amp;quot; page. Remember to reboot the camera on the &amp;quot;Maintenance&amp;quot; tab after changing these options.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder transcodes the MPEG4 stream to add a banner or stream through the web interface.  Doing this on one 640x480@30fps stream can consume an entire core on a modern CPU.  If the CPU becomes overloaded, then the zmc process will crash and the Feed Watch page will be blank or show the broken image icon.  An easy way to reduce CPU load is to set the &amp;quot;Maximum FPS&amp;quot; field on the monitor General tab to 15 or less, but ZoneMinder performs better if frame rate limiting happens at the camera.&lt;br /&gt;
&lt;br /&gt;
=Authentication=&lt;br /&gt;
&lt;br /&gt;
If the camera requires a username and password, then put the credentials in the &amp;#039;&amp;#039;&amp;#039;Remote Host Name&amp;#039;&amp;#039;&amp;#039; field on the &amp;#039;&amp;#039;Monitor -&amp;gt; Source&amp;#039;&amp;#039; tab for the camera in ZoneMinder like this:&lt;br /&gt;
&lt;br /&gt;
  Remote Protocol: HTTP&lt;br /&gt;
  Remote Method: Simple&lt;br /&gt;
  Remote Host Name: &amp;#039;&amp;#039;&amp;#039;MyUser:MyPass@&amp;#039;&amp;#039;&amp;#039;192.168.1.254&lt;br /&gt;
  Remote Host Port: 80&lt;br /&gt;
  Remote Host Path: /nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&lt;br /&gt;
  Remote Image Colors: 24 bit color&lt;br /&gt;
  Capture Width (pixels): 640&lt;br /&gt;
  Capture Height (pixels): 480&lt;br /&gt;
  Preserve Aspect Ratio: Off&lt;br /&gt;
  Orientation: Normal&lt;br /&gt;
&lt;br /&gt;
The username and password are separated by one colon character, which are separated from the IP address or host name by the &amp;#039;at&amp;#039; symbol.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting=&lt;br /&gt;
&lt;br /&gt;
* Using the anonymous guest account with default permissions, or using incorrect credentials, will result in a black box or this error in the zmdc.log file:&lt;br /&gt;
&lt;br /&gt;
  zmdc.ERR [&amp;#039;zmc -m 1&amp;#039; exited abnormally, exit status 255]&lt;br /&gt;
&lt;br /&gt;
* All CGI parameters are case sensitive.  Using &amp;quot;nphmotionjpeg?resolution=640x480&amp;amp;quality=standard&amp;quot; instead of &amp;quot;nphMotionJpeg?Resolution=640x480&amp;amp;Quality=Standard&amp;quot; will cause the camera to return a &amp;quot;400 Bad Request&amp;quot; error.&lt;br /&gt;
&lt;br /&gt;
* Remember to grant all permissions to the ZoneMinder account in the camera and double check the spelling of the username and password.  ZoneMinder does not log a sensible error message if the access privileges or credentials are incorrect, it just crashes.&lt;br /&gt;
&lt;br /&gt;
* Use the VideoLAN player to test RTSP like this:&lt;br /&gt;
&lt;br /&gt;
  vlc rtsp://192.168.0.254/nphMpeg4/nil-640x480&lt;br /&gt;
&lt;br /&gt;
If VLC cannot play the stream, then ZoneMinder cannot record it. (Many other RTSP players are incompatible with Panasonic network cameras.  Use VLC.)&lt;br /&gt;
&lt;br /&gt;
* Using RTSP through NAT usually requires a custom firewall configuration.  Always get MJPEG working first.&lt;br /&gt;
&lt;br /&gt;
* These cameras also provide an RTP-over-HTTP interface over a single port.  In VLC, click &amp;#039;&amp;#039;Media -&amp;gt; Open Network Stream&amp;#039;&amp;#039; and input this URL:&lt;br /&gt;
&lt;br /&gt;
  http://192.168.0.254/rtpOverHttp?Url=nphMpeg4/nil-640x480&lt;br /&gt;
&lt;br /&gt;
This is easier to punch through a firewall, but it has timing and sync problems.&lt;br /&gt;
&lt;br /&gt;
==Hidden Configuration Options==&lt;br /&gt;
&lt;br /&gt;
Login to the web interface, and manually open this URI:&lt;br /&gt;
&lt;br /&gt;
  http://192.168.0.254/Get?Func=VDelivery&amp;amp;Kind=1&lt;br /&gt;
&lt;br /&gt;
The camera could return a list of configuration options like this:&lt;br /&gt;
&lt;br /&gt;
  640framerate:15&lt;br /&gt;
  320framerate:15&lt;br /&gt;
  192framerate:15&lt;br /&gt;
  640bitrateL:256&lt;br /&gt;
  640bitrateH:1024&lt;br /&gt;
  320bitrateL:128&lt;br /&gt;
  320bitrateH:512&lt;br /&gt;
  192bitrateL:64&lt;br /&gt;
  192bitrateH:256&lt;br /&gt;
  RTSPPortNo:554&lt;br /&gt;
  RTPPortMin:33000&lt;br /&gt;
  Multicast:0 &lt;br /&gt;
&lt;br /&gt;
Not all of these options will be exposed in the web interface.  For example, firmware version 3.50 does not expose the MPEG4 framerate option, which is the first line in the example.  You can set it by manually opening this URI in a web browser:&lt;br /&gt;
&lt;br /&gt;
  http://192.168.0.254/Set?Func=VDelivery&amp;amp;Kind=1&amp;amp;640framerate=30&lt;br /&gt;
&lt;br /&gt;
A plain web page like this means success:&lt;br /&gt;
&lt;br /&gt;
  Return:0&lt;br /&gt;
&lt;br /&gt;
=Specific Panasonic models=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Panasonic BL-VT164=&lt;br /&gt;
&lt;br /&gt;
This camera marks a decidedly negative turn from the many other models that have worked extremely well in general and in ZoneMinder in particular.&lt;br /&gt;
The new and regrettable interface is masked behind layers of Javascript, but I discovered that the 640x480 requested is received as 640x360.&lt;br /&gt;
Thus, after many hours of searching, I found the following working settings:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote Protocol: HTTP&lt;br /&gt;
* Remote Method: Simple&lt;br /&gt;
* Remote Host Name: &amp;lt;user&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;hostname or IP&amp;gt;&lt;br /&gt;
* Remote Host Port: 80&lt;br /&gt;
* Remote Host Path: /SnapshotJPEG?Resolution=640x480&lt;br /&gt;
* Remote Image Colours: &amp;lt;24 bit color&amp;gt;&lt;br /&gt;
* Capture Width (pixels): 640&lt;br /&gt;
* Capture Height (pixels): 360&lt;br /&gt;
&lt;br /&gt;
The new firmware, which ONLY works with certain versions of Internet Explorer, is highly dysfunctional.  This camera is NOT recommended.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=External Resources=&lt;br /&gt;
&lt;br /&gt;
* [http://panasonic.net/pcc/support/netwkcam/download/index.html Panasonic Network Camera Downloads - Firmware, Manuals, and Application Software]&lt;br /&gt;
* [http://panasonic.net/pcc/cgi-bin/products/netwkcam/download_us/tbookmarka_m.cgi?mm=2007032816275868 Panasonic Camera CGI Specification]&lt;br /&gt;
* [http://shop.panasonic.com/shop/cameras-and-camcorders-network-cameras?support Current Panasonic Netcam Catalog]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cameras]]&lt;/div&gt;</summary>
		<author><name>Jeffmings</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Axis&amp;diff=5835</id>
		<title>Axis</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Axis&amp;diff=5835"/>
		<updated>2013-09-07T02:20:43Z</updated>

		<summary type="html">&lt;p&gt;Jeffmings: Additions for Axis M7014&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Axis cameras.jpg]]&lt;br /&gt;
&lt;br /&gt;
ZoneMinder will work well with just about any [http://www.axis.com Axis camera], including the 205, 206, 207, 209, 210, 211 and M10 ranges. It will also work with the 213 and 2130 cameras and support their [[PTZ]] functions through the web interface. &lt;br /&gt;
&lt;br /&gt;
Please note that early 207&amp;#039;s has some hardware issues. See [http://www.zoneminder.com/forums/viewtopic.php?t=5022 this thread] in the forum for details.&lt;br /&gt;
Also note that the [http://www.axis.com/techsup/cam_servers/cam_2100/index.htm 2100 has been discontinued by Axis] and no longer supported, possibly due to hardware related problems. It&amp;#039;s noted in the [http://www.zoneminder.com/forums/viewtopic.php?t=10079 forums that the camera sends the pictures it captures somewhat diced up.]&lt;br /&gt;
&lt;br /&gt;
How to Offload the Motion to cameras [[AxisMotionDetection]]&lt;br /&gt;
&lt;br /&gt;
Axis publishes their full, open API named VAPIX; documentation may be found at [http://www.axis.com/techsup/cam_servers/dev/index.htm Axis Developer Pages].  Note in particular the HTTP API which defines the remote host path arguments which may be used by Zoneminder.&lt;br /&gt;
&lt;br /&gt;
== AXIS 2110 ==&lt;br /&gt;
&lt;br /&gt;
/axis-cgi/mjpg/video.cgi?camera=&amp;amp;resolution=320×240&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AXIS 207W ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;User&amp;gt;:&amp;lt;Password&amp;gt;@&amp;lt;IP Address&amp;gt;/axis-cgi/mjpg/video.cgi?camera=&amp;amp;resolution=320×240&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AXIS P33XX-V/VE ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;User&amp;gt;:&amp;lt;Password&amp;gt;@&amp;lt;IP Address&amp;gt;/axis-cgi/mjpg/video.cgi?camera=&amp;amp;resolution=320×240&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;User&amp;gt;:&amp;lt;Password&amp;gt;@&amp;lt;IP Address&amp;gt;/mjpg/video.mjpg&lt;br /&gt;
&lt;br /&gt;
== AXIS P1311 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;User&amp;gt;:&amp;lt;Password&amp;gt;@&amp;lt;IP Address&amp;gt;/mjpg/video.mjpg&lt;br /&gt;
&lt;br /&gt;
== AXIS 213PTZ ==&lt;br /&gt;
The axis 213PTZ works perfectly. Use the folowing settings:&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;SOURCE&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 Remote Protocol: RTSP&lt;br /&gt;
 Remote Method: RTP/RTSP&lt;br /&gt;
 Remote Host Name: &amp;lt;USER&amp;gt;:&amp;lt;PASS&amp;gt;@&amp;lt;CAM IP/HOSTNAME&amp;gt;&lt;br /&gt;
 Remote Host Port: 554&lt;br /&gt;
 Remote Host Path: /mpeg4/media.amp&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;CONTROL&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 Controllable: Yes&lt;br /&gt;
 Control Type: Axis API v2&lt;br /&gt;
 Control Address: &amp;lt;USER&amp;gt;:&amp;lt;PASS&amp;gt;@&amp;lt;CAM IP/HOSTNAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resolution must match the one especified in the camera settings. Resolutions up to CIF will work without any problems but 2CIF and 4CIF will need the shared memory tweak (lean more at the [[FAQ]])&lt;br /&gt;
&lt;br /&gt;
The [[AxisMotionDetection]] trick works quite well with this camera.&lt;br /&gt;
&lt;br /&gt;
The Max FPS option of zoneminder introduces very big latency, so I use the option of the camera for limiting the FPS.&lt;br /&gt;
&lt;br /&gt;
This was tested with zoneminder 1.24.2 running on Gentoo stable&lt;br /&gt;
&lt;br /&gt;
== AXIS M1011-W ==&lt;br /&gt;
&lt;br /&gt;
[http://www.axis.com/products/cam_m1011w/ M1011-W]&lt;br /&gt;
&lt;br /&gt;
I get a lower load by using the MJPEG stream compared to the JPEG still images. [[User:Mathieumd|Mathieumd]] 15:52, 17 May 2012 (BST)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;General&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Tab/Label&lt;br /&gt;
! MJPEG Stream&lt;br /&gt;
! JPEG Stills&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;3&amp;quot; | &amp;#039;&amp;#039;&amp;#039;General&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| Source Type&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Remote&lt;br /&gt;
|- &lt;br /&gt;
| Maximum FPS&lt;br /&gt;
|&lt;br /&gt;
| 5&lt;br /&gt;
|- &lt;br /&gt;
| Alarm Maximum FPS&lt;br /&gt;
|&lt;br /&gt;
| 15&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;3&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Source&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| Remote Protocol&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | HTTP&lt;br /&gt;
|- &lt;br /&gt;
| Remote Method&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Simple&lt;br /&gt;
|- &lt;br /&gt;
| Remote Host Name&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | [&amp;lt;USER&amp;gt;:&amp;lt;PASS&amp;gt;@]&amp;#039;&amp;#039;&amp;#039;&amp;lt;CAM IP/HOSTNAME&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|- &lt;br /&gt;
| Remote Host Port&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | &amp;lt;CAM PORT&amp;gt; (usually 80 or 443)&lt;br /&gt;
|- &lt;br /&gt;
| Remote Host Path&lt;br /&gt;
| /axis-cgi/&amp;#039;&amp;#039;&amp;#039;mjpg/video&amp;#039;&amp;#039;&amp;#039;.cgi?resolution=640x480&amp;amp;fps=15&lt;br /&gt;
| /axis-cgi/&amp;#039;&amp;#039;&amp;#039;jpg/image&amp;#039;&amp;#039;&amp;#039;.cgi?resolution=640x480&lt;br /&gt;
|- &lt;br /&gt;
| Capture Width (pixels)&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | 640&lt;br /&gt;
|- &lt;br /&gt;
| Capture Height (pixels)&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | 480&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== AXIS M1031-W ==&lt;br /&gt;
&lt;br /&gt;
[http://www.axis.com/products/cam_m1031w/ M1031-W]&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;SOURCE&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 Remote Protocol: HTTP&lt;br /&gt;
 Remote Method: Simple&lt;br /&gt;
 Remote Host Name: &amp;lt;CAM IP/HOSTNAME&amp;gt;&lt;br /&gt;
 Remote Host Port: &amp;lt;CAM PORT&amp;gt;&lt;br /&gt;
 Remote Host Path: /axis-cgi/mjpg/video.cgi?resolution=640x480&lt;br /&gt;
&lt;br /&gt;
OR for mpeg-4&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;SOURCE&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 Remote Protocol: RTSP&lt;br /&gt;
 Remote Method: RTP/RTSP/HTTP&lt;br /&gt;
 Remote Host Name: &amp;lt;USER&amp;gt;:&amp;lt;PASS&amp;gt;@&amp;lt;CAM IP/HOSTNAME&amp;gt;&lt;br /&gt;
 Remote Host Port: &amp;lt;CAM PORT&amp;gt;&lt;br /&gt;
 Remote Host Path: /mpeg4/media.amp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Cameras]]&lt;br /&gt;
&lt;br /&gt;
== AXIS M1054 ==&lt;br /&gt;
&lt;br /&gt;
Working just fine with my zoneminder setup under Ubuntu 10.04 and 11.04, using MJPEG setup.&lt;br /&gt;
&lt;br /&gt;
My camera setup:&lt;br /&gt;
* Source type: remote&lt;br /&gt;
* Function: modect&lt;br /&gt;
* maximum fps 8.00&lt;br /&gt;
* alarm fps 30.00&lt;br /&gt;
* remote protocol: http&lt;br /&gt;
* remote method: simple&lt;br /&gt;
* remote host name: the DNS name of the camera (or IP adress I suppose)&lt;br /&gt;
* remote host port: 80&lt;br /&gt;
* remote host path: /axis-cgi/mjpg/video.cgi&lt;br /&gt;
* capture width: 1280&lt;br /&gt;
* capture height: 800&lt;br /&gt;
&lt;br /&gt;
I just captured some thiefs with this setup, police caught them and used the pictures as proof. High quality pictures for that price of a camera and very reliable (running 1/2 year now without a single crash or disfunction).[http://www.blognesian.com/ ]&lt;br /&gt;
&lt;br /&gt;
==AXIS M1114==&lt;br /&gt;
works with following entrys&lt;br /&gt;
* Source type: remote&lt;br /&gt;
* Function: [what_you_want]&lt;br /&gt;
* maximum fps 0 # don&amp;#039;t put any value here&lt;br /&gt;
* alarm fps 0 # don&amp;#039;t put any value here&lt;br /&gt;
* remote protocol: http&lt;br /&gt;
* remote method: simple&lt;br /&gt;
* remote host name: user:password@IP-Address or user:password@DNS_Name&lt;br /&gt;
* remote host port: 80&lt;br /&gt;
* remote host path: /mjpg/video.mjpg?resolution=480x360&lt;br /&gt;
* capture width: 480  #depends on your &amp;quot;remote host path&amp;quot; setting, must to be the same!&lt;br /&gt;
* capture height: 360  #depends on your &amp;quot;remote host path&amp;quot; setting, must to be the same!&lt;br /&gt;
&lt;br /&gt;
Using remote host path and arguments from the Axis VAPIX HTTP API.  Includes limiting the frame rate (fps=x)&lt;br /&gt;
&lt;br /&gt;
* Remote Protocol: HTTP&lt;br /&gt;
* Remote Method: Simple&lt;br /&gt;
* Remote Host Name: &amp;lt;user&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;hostname or IP&amp;gt;&lt;br /&gt;
* Remote Host Port: 80&lt;br /&gt;
* Remote Host Path: /axis-cgi/mjpg/video.cgi?fps=15&amp;amp;resolution=1024x640&lt;br /&gt;
* Remote Image Colours: 24 bit color&lt;br /&gt;
* Capture Width (pixels): 1024&lt;br /&gt;
* Capture Height (pixels): 640&lt;br /&gt;
&lt;br /&gt;
==AXIS Q6032-E==&lt;br /&gt;
&lt;br /&gt;
* Remote Protocol: HTTP&lt;br /&gt;
* Remote Method: Simple&lt;br /&gt;
* Remote Host Name: &amp;lt;user&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;hostname or IP&amp;gt;&lt;br /&gt;
* Remote Host Port: 80&lt;br /&gt;
* Remote Host Path: /mjpg/video.mjpg&lt;br /&gt;
* Remote Image Colours: &amp;lt;24 bit color|32 bit color&amp;gt;&lt;br /&gt;
* Capture Width (pixels): 704&lt;br /&gt;
* Capture Height (pixels): 480&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AXIS M7014==&lt;br /&gt;
&lt;br /&gt;
-4 channel video encoder with receives signal from a Closed-Circuit-style camera via a BNC connector for each channel.&lt;br /&gt;
&lt;br /&gt;
Works very well with zoneminder using the following settings:&lt;br /&gt;
&lt;br /&gt;
* Remote Protocol: HTTP&lt;br /&gt;
* Remote Method: Simple&lt;br /&gt;
* Remote Host Name: &amp;lt;user&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;hostname or IP&amp;gt;&lt;br /&gt;
* Remote Host Port: 80&lt;br /&gt;
* Remote Host Path: /axis-cgi/jpg/image.cgi?camera=X  where X is 1,2,3 or 4 - for each channel&lt;br /&gt;
* Remote Image Colours: &amp;lt;24 bit color|32 bit color&amp;gt;&lt;br /&gt;
* Capture Width (pixels): 704&lt;br /&gt;
* Capture Height (pixels): 480&lt;br /&gt;
&lt;br /&gt;
Note: An axis tech suggested using:&lt;br /&gt;
rtsp://&amp;lt;ip&amp;gt;/axis-media/media.amp?camera=X  but I didn&amp;#039;t try it.&lt;br /&gt;
This is a really nice device for ZoneMinder - lets you use legacy cams easily.  Highly recommended.&lt;/div&gt;</summary>
		<author><name>Jeffmings</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=5378</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=5378"/>
		<updated>2012-06-28T07:38:51Z</updated>

		<summary type="html">&lt;p&gt;Jeffmings: /* Installation of ZoneMinder */&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;
== 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.chpc.utah.edu/pub/centos/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://centos.cs.wisc.edu/pub/mirrors/linux/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://www.centos.org/mirrors/&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&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;
&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 &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 when in Modcord mode ====&lt;br /&gt;
Since CentOS 5 the default structure that the system install on to you hard disk has changed, they now make a logical volume of 10% your dives space for the /root drive and the remaining drive as /home with the exception of the swap drive.&lt;br /&gt;
The will cause Zoneminder to fill the /root drive very fast 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.&lt;br /&gt;
&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;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Jeffmings</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=5377</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=5377"/>
		<updated>2012-06-28T07:37:59Z</updated>

		<summary type="html">&lt;p&gt;Jeffmings: /* CentOS 6 Notes */&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;
== 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.chpc.utah.edu/pub/centos/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://centos.cs.wisc.edu/pub/mirrors/linux/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://www.centos.org/mirrors/&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&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;
&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 &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:&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;&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 when in Modcord mode ====&lt;br /&gt;
Since CentOS 5 the default structure that the system install on to you hard disk has changed, they now make a logical volume of 10% your dives space for the /root drive and the remaining drive as /home with the exception of the swap drive.&lt;br /&gt;
The will cause Zoneminder to fill the /root drive very fast 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.&lt;br /&gt;
&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;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Jeffmings</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=5376</id>
		<title>CentOS</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=CentOS&amp;diff=5376"/>
		<updated>2012-06-28T07:32:34Z</updated>

		<summary type="html">&lt;p&gt;Jeffmings: /* Installation of ZoneMinder */&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;
== 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.chpc.utah.edu/pub/centos/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Download 64 bit: http://centos.cs.wisc.edu/pub/mirrors/linux/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-netinstall.iso&amp;lt;br/&amp;gt;&lt;br /&gt;
Mirrors List: http://www.centos.org/mirrors/&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&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;
&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;
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:&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;&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 when in Modcord mode ====&lt;br /&gt;
Since CentOS 5 the default structure that the system install on to you hard disk has changed, they now make a logical volume of 10% your dives space for the /root drive and the remaining drive as /home with the exception of the swap drive.&lt;br /&gt;
The will cause Zoneminder to fill the /root drive very fast 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.&lt;br /&gt;
&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;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Jeffmings</name></author>
	</entry>
</feed>