Tuesday 9 December 2008

New Zoneminder Installation

We are busy building a new separate Zoneminder machine installation on a new dedicated machine for use on an external site .

Here's how:

Installed Ubuntu 8.04 server edition with LAMP and SSH services selected.

Created a seperate partition for the Zoneminder events.

Downloaded a complete Zoneminder Debian package from here:
ftp://ftp.northern-ridge.com.au/zoneminder/1.23/ubuntu/gutsy/zoneminder_1.23.3-3_i386.deb

sudo apt-get update
sudo apt-get upgrade

dpkg -i zoneminder_1.23.3-3_i386.deb
(You will get errors, just ignore!)

apt-get install -f

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

sudo /etc/init.d/apache2 reload

Pointed Seamonkey browser to:
http://hostname/zm

In the config view of Zoneminder do this (SAVE EACH TAB SEPARATELY!!!):

Turn off analyses of frame in config tab.

Turned of the new version online check.

Turned off ffmpeg stuff, we need to know more about this before we use this at external sites.

Turn off statistics stuff in debug tab.

Enlarged the shared memory in /etc/sysctl.conf by adding these lines:
kernel.shmall = 134217728
kernel.shmmax = 134217728

Configure the modules:
sudo nano /etc/modprobe.d/devfsd

And add the following when using one AD-Link RTV24 card:
alias char-major-81 bttv
options bttv card=134,134,134,134
options bttv tuner=0,0,0,0
options bttv autoload=0,0,0,0
options bttv radio=0,0,0,0

And add the following when using two AD-Link RTV24 card:
alias char-major-81 bttv
options bttv card=134,134,134,134,134,134,134,134
options bttv tuner=0,0,0,0,0,0,0,0
options bttv autoload=0,0,0,0,0,0,0,0
options bttv radio=0,0,0,0,0,0,0,0

Fix the permission using:
sudo chmod 777 /dev/video*

To be save edit /etc/php5/apache2/php.ini and set this:
display_errors = Off
log_errors = On

When adding cameras remeber that the max for a PAL camera is 384x288 pixels. Higher will give interlacing problems.

This machines harddisk crashed later on, in this post the rebuild is documented:
http://selfmadenetadmin.blogspot.com/2009/04/rebuilding-zoneminder-system-after.html

No comments: