Zoneminder: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
=Debian Squeeze= | =Debian Squeeze= | ||
*Enable Backports | |||
nano /etc/apt/sources.list | nano /etc/apt/sources.list | ||
add: | add: | ||
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free | deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free | ||
Install other stuff: | |||
apt-get install libfaac-dev | apt-get install libfaac-dev | ||
| Line 14: | Line 15: | ||
apt-get install libx264-dev | apt-get install libx264-dev | ||
apt-get -t squeeze-backports install libxvidcore-dev | apt-get -t squeeze-backports install libxvidcore-dev | ||
Install Zoneminder: | |||
apt-get install zoneminder | apt-get install zoneminder | ||
| Line 19: | Line 22: | ||
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf | ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf | ||
/etc/init.d/apache2 restart | /etc/init.d/apache2 restart | ||
Make shared memory key work: | |||
Test it: | |||
echo 167772160 >/proc/sys/kernel/shmall | |||
echo 167772160 >/proc/sys/kernel/shmmax | |||
Restart Zoneminder | |||
/etc/init.d/zoneminder stop | |||
Make it perm | |||
nano /etc/sysctl.conf | |||
# Increase the maximum shared memory | |||
kernel.shmall = 167772160 | |||
kernel.shmmax = 167772160 | |||
/etc/init.d/zoneminder start | |||
Revision as of 13:31, 4 August 2012
Debian Squeeze
- Enable Backports
nano /etc/apt/sources.list
add:
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
Install other stuff:
apt-get install libfaac-dev apt-get install libmp3lame-dev apt-get install libogg-dev apt-get install libjpeg-dev apt-get install libtheora-dev apt-get install libvorbis-dev apt-get install libx264-dev apt-get -t squeeze-backports install libxvidcore-dev
Install Zoneminder:
apt-get install zoneminder
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf /etc/init.d/apache2 restart
Make shared memory key work:
Test it:
echo 167772160 >/proc/sys/kernel/shmall echo 167772160 >/proc/sys/kernel/shmmax
Restart Zoneminder
/etc/init.d/zoneminder stop
Make it perm
nano /etc/sysctl.conf # Increase the maximum shared memory kernel.shmall = 167772160 kernel.shmmax = 167772160
/etc/init.d/zoneminder start