Zoneminder Installation:

ZoneMinderSmall.gif

The idea of getting survalience into my home - startet this little project and the meaning was just getting the survalience iup and running and afterwards during the action og activate the cameras - should allso take action on my House alarm, which was a future idea of mine - But this is how I started.. The concrete idea from drawing view:

Zoneminderdraw.png

The installation:

Normally you'll be able to use whatever kind of Computer that you want, but my thoughts was getting a little server with low poweruse and able to handle the request. I found a little Geode PC and installed a Debian Squeeze i386 on it. the setup I using is this:

16GB CF Flash Card
320GB external USB Harddisk

2xGadget-spot NC1000 LAN IP camera

My idea with the setup was getting the whole LinuxOS up and running on the CF-card, and using the external harddisk for storage of the recorded materiale from the different Cameraes. So It looks like this:

/ - created 14GB rootpartition ext4
/swap - created 2GB swap partition
/storage - mounted external USB-harddisk 320GB ext4

After installing the default Debian OS system, I've added the following lines to /etc/apt/sources.list :

# Zoneminder
deb ftp://mirrors.dotsrc.org/debian-multimedia/ testing main
deb-src ftp://mirrors.dotsrc.org/debian-multimedia/ testing main

Afterwards I did the following connand:

apt-get update
apt-get dist-upgrade
apt-get isntall zoneminder

This will install a lot of packages needed for running Zoneminder -and afterwards there 's plenty og small tricks we're need to make this work. Add the following command to /etc/sysctl.conf

# Zoneminder
kernel.shmall = 134217728
kernel.shmmax = 134217728

And the last thing we're need is to tell apache where the installation is:

ln -sf /etc/zm/apache.conf /etc/apache2/sites-enabled/zoneminder.conf

And now we should fit the Zoneminder installation to fit our needs and thoughts in this setup. So I edited the file /etc/zm/zm.conf to change the path to the webfiles(inkl images etc)

# Path to ZoneMinder web files
ZM_PATH_WEB=/usr/share/zoneminder

I've changed to :

# Path to ZoneMinder web files
ZM_PATH_WEB=/storage/zoneminder

and then moved the dir /usr/share/zoneminder to /storage with this command

mv /usr/share/zoneminder /storage/

So now Zoneminder now where it should look for it's file for creating and using the WEBINTERFACE. Now we should edit the linked file from Apache - to allso use this dir for its aliases - so edit the file /etc/apache2/sites-enabled/zoneminder.conf and change the dirs to /storage/zoneminder instead of /usr/share/zoneminder.

And now you should reboot the server and then have a look at the webinterface to see how it works and howto setup. There's plenty og options and predefined Cameraes to get startet from - But I thought the easiest way is to manually set it up along the way through your plans. My plan was - carse of the needed bandwidth - to create a seperate subnet where the survalience system should run from - but the biggest problem so far is that my Router Soekris isn't supporting GB-LAN - SUCKS :-(

So Start your favorite webbrowser up from an external laptop/desktop and go to your servers IP adresse like this http://127.0.0.1/zm and it'll give you your ZM konsole windows and administration interface. It's a good idea to make this webinterface protected with user authentication carse this can really screw up the server if not. But in the end It'll look like this:

zmkonsol.png

And now you should create your different Cameras and add them, configure where it'll get the streaming from etc. The easiest way to start is to set the Camera for monitor so you'll be sure there's a image getting through. You'll really need to investigate your cameraes here for you self - carse no Cameraes are alike - allmost :-) My old Gadget-spot NC1000 Cameraes could be added with these settings on page 2 of Camera-setup:

IPadress and /Jpeg/CamImg.jpg in the rigth places - but you should allso set size and bitrate etc. Looks like this:

camera-setup.png

But there's plenty of readingstuff and information etc to make this work - here at Zoneminder Wiki.

My next plan is getting this to work along my MythTV setup in the house. Under Extra's you can find out how I did the trick with a Stand alone Mythzmserver on the Zoneminder server.