yadig? yet another debian install guide
Posted: Sat May 20, 2006 10:30 am
hi,
here is how I install zm on debian. I like to keep things simple (using default stable versions of apache/mysql/php) and compile the latest ZM without ffmpeg.
1. install debian usings defaults, without software packages
to use the 2.6 kernel (recommended for bttv cards) type in linux26 at the cd-boot prompt.
use expert26 for a more verbose 2.6 kernel install, or expert24 for a verbose 2.4 kernel install
debian installation manual if needed: http://www.debian.org/releases/stable/installmanual
2. login as root and install apache 1.3, mysql server 4.0, php 4.3, required libraries...
3. increase shared memory and reboot
4. download, extract, configure zoneminder, import sql structure, create zmuser, compile...
5. connect to http://debian/zm and change these options...
System/ZM_AUTH_RELAY - none
Paths/ZM_PATH_ZMS - /cgi-bin/zms
---optional security settings---
6. turn on System/ZM_OPT_USE_AUTH and change the admin password
7. change mysql root password
8. install and configure a network time protocol client
9. install and configure a firewall to only allow incoming http
here is how I install zm on debian. I like to keep things simple (using default stable versions of apache/mysql/php) and compile the latest ZM without ffmpeg.
1. install debian usings defaults, without software packages
to use the 2.6 kernel (recommended for bttv cards) type in linux26 at the cd-boot prompt.
use expert26 for a more verbose 2.6 kernel install, or expert24 for a verbose 2.4 kernel install
debian installation manual if needed: http://www.debian.org/releases/stable/installmanual
2. login as root and install apache 1.3, mysql server 4.0, php 4.3, required libraries...
Code: Select all
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
Code: Select all
debian:~# echo kernel.shmmax = 134217728 >> /etc/sysctl.conf
debian:~# reboot
Code: Select all
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
System/ZM_AUTH_RELAY - none
Paths/ZM_PATH_ZMS - /cgi-bin/zms
---optional security settings---
6. turn on System/ZM_OPT_USE_AUTH and change the admin password
7. change mysql root password
Code: Select all
debian:~# mysqladmin -u root password 'passwordyouwant'
Code: Select all
debian:~# apt-get install ntpdate
debian:~# echo NTPSERVERS="pool.ntp.org" >> /etc/default/ntpdate
Code: Select all
debian:~# apt-get install firehol
debian:~# firehol-wizard