Linux-based Security Camera Solution

By jbayer - Last updated: Monday, January 31, 2011 - Save & Share - One Comment

With the explosion of inexpensive video cameras for computer use, (both USB and IP cameras), it has become fairly easy to set up a comprehensive video surveillance system.  You can go out and buy complete kits, which include a set of cameras and a central control station.  Or, you could roll your own, giving you the ability to totally customize your solution for your budget and needs.

ZoneMinder is a free, open source package designed to do exactly that.   We’ve been using it for several years to monitor the outside of our building.  It can control a large number of cameras, and has a large feature list.

I recently had to rebuild our installation, and in the process I developed a script to take a bare-bones CentOS 5.5 system and install everything needed to run ZoneMinder.  I was inspired by a set of steps written by a user called butlerm1977 in the Zoneminder forums.  However, the steps he published didn’t work as written.

The attached script will install all needed packages, and the ZoneMinder system.  I use the checkinstall program to build an RPM of the ZoneMinder system so that it is installed as a package instead of from a build directory.  This enables both the ability to install it on other systems from an RPM as well as removing it, if so desired.

While ZoneMinder has the ability to control X10 devices, X10 control requires installation of a perl module, which I did not include in this script.  If you want X10 control, use the following (untested by myself) commands to install the perl module, switch on X10 in the options, then restart:

perl -MCPAN -eshell
install X10::ActiveHome
quit

If you don’t want to use cpan, you can install it manually as follows:

wget http://search.cpan.org/CPAN/authors/id/R/RO/ROBF/X10-0.03.tar.gz
tar xzf X10-0.03.tar.gz
cd X10-0.03
perl Makefile.PL
make
make install

This script has been tested on CentOS, both 32 and 64 bit, minimal install.   While not tested, it will probably work on a simple desktop install.

The download was updated on 3/2/2011 to fix a small bug in the install.

  installZoneminder.tar.gz (8.9 KiB, 422 hits)

Posted in Administration, Bash, Open Source • Tags: , Top Of Page
2,088 views

One Response to “Linux-based Security Camera Solution”

Comment from digit400
Time December 7, 2011 at 4:09 pm

Many thanks for this script. CENTOS5.5 & ZoneMinder together is running well

Write a comment

asd