Install the package:
Code:
pacman -S zoneminder
Code:
sudoedit /etc/sysctl.conf
and append these two lines:
Quote:
kernel.shmall = 134217728
kernel.shmmax = 134217728
Code:
sudo /sbin/sysctl -p /etc/sysctl.conf
to make settings take effect
Fix the zm.conf so you can initialize the database:
Code:
echo ZM_PATH_UPDATE=/usr/lib/zm/upgrade | sudo tee -a /etc/zm.conf
Initialize database:
Code:
sudo /usr/lib/zm/bin/zminit
Code:
sudoedit /etc/lighttpd/lighttpd.conf
and uncomment mod_alias and then append.
Code:
sudoedit /etc/lighttpd/conf.include
Quote:
alias.url = (
"/cgi-bin" => "/srv/zoneminder/cgi-bin/",
"/zm" => "/srv/zoneminder/www/"
)
restart lighttpd
Code:
sudo killall lighttpd
Fix log permissions
Code:
mkdir /var/log/zm
sudo chown -R http:http /var/log/zm
Fix data directory permissions
Code:
sudo chown -R http:http /var/lib/zm
Configure logrotate to notify zoneminder when log files have been rotated:
Code:
sudoedit /etc/logrotate.d/zm
and add
Quote:
postrotate
/usr/lib/zm/bin/zmpkg.pl logrot
endscript
below in the /var/log/zm/*log section
Have zm run at boot-up
Code:
sudo add_service.sh zm
Use you favorite web browser to configure zoneminder.