Most of this is taken from the wiki, others from various posts on this board. This setup includes RAID 1 redundancy in my setup. Ignore if only using 1 drive.
Install 32 bit CentOS using raid 1 on at least a pair of TB drives.
1. Confirm RAID with "mount" and "df -h"
2. yum update then reboot
3. Setup -> Firewall -> disable Security Level and SELinux
4. Disable the following services and then reboot...apmd bluetooth cups hidd ip6tables iptables netfs nfslock pcscd portmap
5. Add RPM Forge repo to CentOS...
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpm ... f.i386.rpm
6. Install additional software...
yum -y install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel ImageMagick libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools perl-Date-Manip perl-LWP-UserAgent-Determined perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Sys-Mmap.i386 perl-Module-Load subversion git screen yasm
7. Confirm installation and then reboot.
8. yum -y update
9. reboot
10. install ffmpeg
rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpm ... f.i386.rpm
yum install ffmpeg ffmpeg-devel
ffmpeg --version
11. Turn on services
chkconfig httpd on
chkconfig mysqld on
chkconfig ntpd on
ntpdate pool.ntp.org
service httpd start
service mysqld start
service ntpd start
12. Setup mysql...
/usr/bin/mysql_secure_installation
(default is no pass, then add local root password)
13. Extract ZM files
cd /root
tar -zxvf ZoneMinder-1.24.2.tar.gz
cd /ZoneMinder-1.24.2
14. Install
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=yourpassword
make
make install
15. Mysql commands
mysql -u root -p
create database zm;
grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to zmuser@localhost;
SET PASSWORD FOR zmuser@localhost=PASSWORD('yourpassword');
exit
16. Import SQL DB
cd /root/ZoneMinder-1.24.2
mysql -u root -p zm <db>Images tab->OPT_CAMBOZOLA)
17. Final Steps
cp scripts/zm /etc/init.d/
chmod +x /etc/init.d/zm
chkconfig zm on
cd ..
cp cambozola.jar /var/www/html/zm/
chown apache:apache /var/www/html/zm/cambozola.jar
service zm start
18. Enable Cambozola
tick the box for support for the Cambozola addon within your ZoneMinder installation: http://ip-address/zm (Options->Images tab->OPT_CAMBOZOLA)
19. Set JPG quality to 80...Options -> Image
20. Set appropriate ffmpeg quality settings for exporting video using this guide...http://ffmpeg.org/ffmpeg-doc.html (Options -> Images -> ffmpeg_output_options)
21. Options -> Images -> PATH_FFMPEG change to /usr/bin/ffmpeg
My install guide for CentOS 5.5 - 32 bit...
-
- Posts: 36
- Joined: Wed Sep 09, 2009 4:47 pm