Zoneminder

From MattWiki
Jump to: navigation, search

FedoraLogo infinity-2.png Note: This Page was written with Fedora in mind, and may not work correctly with other versions or distributions.

yum -y install mysql-devel mysql httpd perl-MIME-tools perl-MIME-Lite perl-Date-Manip perl-Device-SerialPort \
perl-Archive-Zip perl-Archive-Tar pcre-devel ffmpeg-devel perl-DBD-MySQL perl-PHP-Serialization
cd /tmp/svn
wget http://www.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz
tar -xzf ZoneMinder-1.23.3.tar.gz
cd ZoneMinder-1.23.3
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin && make
echo $?
make install
echo $?

Then Set it up.

mysql < db/zm_create.sql
mysql -e "grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';"
cp scripts/zm /etc/rc.d/init.d/zm
cp zm.conf /usr/local/etc/zm.conf
chmod 755 /etc/rc.d/init.d/zm
/sbin/chkconfig --add zm
/sbin/chkconfig zm on
/sbin/service zm start

The crontab can run something like this

30 08 * * * /usr/local/bin/zmpkg.pl on
30 15 * * * /usr/local/bin/zmpkg.pl off

To Control the Trendnet IP-400 webcam