Debian 3.1 install
From ZoneMinder
+ Zoneminder 1.22.x from source (without ffmpeg)
NOTES: this guide uses ZoneMinder-1.22.1, but 1.22.2 should work without problem.
ZoneMinder-1.22.3 apparently has SQL statements that don't work in sarge.
recommended knowledge level: installing Debian + basic linux
Contents |
Debian and Zoneminder installation
Install Debian and required LAMP packages
start PC with [Debian 3.1] bootCD and install with default options - no software packages
login as root and install apache 1.3, mysql server 4.0, php 4.3, required libraries...
debian:~# apt-get install apache mysql-server libmysqlclient12-dev php4 php4-mysql \ g++ make netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl \ libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql-perl libpcre3-dev
increase shared memory and reboot...
debian:~# echo kernel.shmmax = 134217728 >> /etc/sysctl.conf debian:~# reboot
Install Zoneminder and configure SQL
download, extract, configure zoneminder, import sql structure, create zmuser, compile...
debian:~# wget http://www2.zoneminder.com/downloads/ZoneMinder-1.22.1.tar.gz debian:~# tar -xvzf ZoneMinder-1.22.1.tar.gz debian:~# cd ZoneMinder-1.22.1 debian:~/ZoneMinder-1.22.1# ./configure --with-webdir=/var/www/zm \ --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data debian:~/ZoneMinder-1.22.1# mysql mysql < db/zm_create.sql debian:~/ZoneMinder-1.22.1# mysql mysql mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass'; mysql> quit debian:~/ZoneMinder-1.22.1# mysqladmin reload debian:~/ZoneMinder-1.22.1# make install
Modify two ZM parameters
connect to http://debian/zm and in Options choose...
System/ZM_AUTH_RELAY - none
Paths/ZM_PATH_ZMS - /cgi-bin/zms
Recommended
create a script to start ZM during boot
follow these Debian_init.d instructions, and start ZM...
debian:~# /etc/init.d/zm start
enable web authentication
turn on System/ZM_OPT_USE_AUTH and change the admin password
change mysql root password
debian:~# mysqladmin -u root password 'passwordyouwant'
disable directory listings in apache
debian:~# nano -w /etc/apache/httpd.conf
hit CTRL-W and find: Directory /var/www
scroll down a few lines to Options and remove the word: Indexes
hit CTRL-O to save the file and CTRL-X to exit
finally restart apache...
debian:~# /etc/init.d/apache restart
install and configure a firewall to only allow incoming http
debian:~# apt-get install firehol debian:~# firehol-wizard
install and configure a network time protocol client
debian:~# apt-get install ntpdate debian:~# echo NTPSERVERS="pool.ntp.org" >> /etc/default/ntpdate


