install zoneminder
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
$ sudo nano /etc/sysctl.conf
1. Shared memory settings changed for ZoneMinder (ZM) add this at bottom (128 MB)
kernel.shmall = 134217728 kernel.shmmax = 134217728
$ sudo gedit /etc/modules
#This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
rtc
bttv
$sudo gedit /etc/modprobe.d/options#add these scripts below
alias char-major-81 bttv
options bttv gbuffers=16 card=150
#add these scripts below
$ sudo gedit /etc/modprobe.d/bttv
# i2c
alias char-major-89 i2c-devb
options i2c-algo-bit bit_test=1
# bttv
alias char-major-81 videodev
alias char-major-81-0 bttv
options bttv card=150