ZONEMINDER for video surveillance.
Introduction:
This document is provided to help you install Linux (UBUNTU) along with Zoneminder for video surveillance.
1.1 References
Ubuntu.com
Zoneminder.com
1.2 Glossary, Terms & Abbreviations
zm Zoneminder sudo Root user Terminal Command prompt window
2 Assumptions The user would have basic knowledge of Linux and terminal window. Preferred P4 machine with 1 GB ram and available free PCI slot.
3 System Install
3.1 Install UBUNTU 11.10 server 32bit → VirtualBox
Make sure you write down all the passwords you use.
3.2 Install LAMP ( Linux, Apache, MySql, Php ) Server on Ubuntu Open the terminal window and issue following commands.
Install mysql
$ sudo apt-get install mysql-server
Install Apache2
$ sudo apt-get install apache2
Install php and the apache module for it (select apache option in php install when prompted)
$ sudo apt-get install php5 libapache2-mod-php5
Reboot apache (very important!)
$ sudo /etc/init.d/apache2 restart
PhpMyAdmin, if you need it
$ sudo apt-get install phpmyadmin
TEST http://localhost
it should work and give u a webpage saying “IT WORKS!”
3.3 SSH server and client optional to enable remote shell
$ sudo apt-get install openssh-server openssh-client
3.4 Install Zoneminder
$ sudo apt-get install zoneminder
Installation should go on with no complications. If needed, fix broken dependencies with
$ sudo apt-get -f install
Instruct apache what to do with Zoneminder a force a reload:
$ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
$ sudo /etc/init.d/apache2 force-reload
For zm you need to run
$ sudo mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
$ mysql -u root -p
>grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
>flush privileges;
>quit
$ sudo chmod 4755 /usr/bin/zmfix
$ zmfix -a
$ sudo adduser www-data video
MY-SCENARIO:
url → http:\\192.168.2.14\zm
my-camera:
DLINK DCS-930L
Source Type: Remote
Remote Host Name: user:pass@<IP Address of Camera> (exmaple: admin:AdmiN@192.168.2.12)
Remote Host Port: 80 (Default)
Remote Host Path: /image/jpeg.cgi
http://www.zoneminder.com/wiki/index.php/Ubuntu_9.10_Desktop
STOP
zmserver@zmserver:~$sudo service zoneminder stop
START
zmserver@zmserver:~$sudo service zoneminder start