Difference between revisions of "Fedora Core 6 Step-by-Step"
Line 9: | Line 9: | ||
---- | ---- | ||
As root | |||
yum install mysql-server mysql-devel php-mysql pcre-devel perl-DateManip perl-libwww-perl perl-Device-SerialPort perl-MIME-Lite perl-Archive-Zip | |||
--- | |||
'''Install ffmpeg from Livna''' | |||
yum install | rpm -Uvh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm | ||
yum install ffmpeg | |||
'''OR''' | |||
'''Install ffmeg from source''' | '''Install ffmeg from source''' | ||
Line 36: | Line 26: | ||
---- | ---- | ||
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg | svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg | ||
cd ffmpeg/ | |||
cd ffmpeg/ | ./configure | ||
make | |||
./configure | make install | ||
make install-libs | |||
make | cd .. | ||
make install | |||
make install-libs | |||
cd .. | |||
Line 57: | Line 41: | ||
---- | ---- | ||
chkconfig --add mysqld | chkconfig --add mysqld | ||
chkconfig --level 345 mysqld on | |||
chkconfig --level 345 mysqld on | chkconfig --level 345 httpd on | ||
service mysqld start | |||
chkconfig --level 345 httpd on | service httpd start | ||
service mysqld start | |||
service httpd start | |||
Line 74: | Line 54: | ||
---- | ---- | ||
wget http://www.zoneminder.com/downloads/ZoneMinder-1.22.3.tar.gz | wget http://www.zoneminder.com/downloads/ZoneMinder-1.22.3.tar.gz | ||
tar xvfz ZoneMinder-1.22.3.tar.gz | |||
tar xvfz ZoneMinder-1.22.3.tar.gz | cd ZoneMinder-1.22.3 | ||
cd ZoneMinder-1.22.3 | |||
---- | ---- | ||
Line 86: | Line 64: | ||
---- | ---- | ||
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass CFLAGS="-g -O3 -march=pentium4" CXXFLAGS="-g -O3 -march=pentium4" | ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass CFLAGS="-g -O3 -march=pentium4" CXXFLAGS="-g -O3 -march=pentium4" | ||
make | |||
make | make install | ||
install scripts/zm /etc/init.d/ | |||
make install | chkconfig --add zm | ||
install scripts/zm /etc/init.d/ | |||
chkconfig --add zm | |||
---- | ---- | ||
Line 103: | Line 76: | ||
---- | ---- | ||
mysql mysql < db/zm_create.sql | mysql mysql < db/zm_create.sql | ||
mysql mysql | |||
mysql mysql | grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass'; | ||
quit | |||
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass'; | mysqladmin reload | ||
quit | |||
mysqladmin reload | |||
Line 120: | Line 89: | ||
---- | ---- | ||
service zm start | service zm start |
Revision as of 17:32, 12 March 2007
This short guide takes you through the specific tasks you need to install ZoneMinder 1.22.3 from scratch onto a Fedora Core 6 box. It assumes you have selected the 'Server' and 'Development' package options during install. If you select 'All Packages' then you can probably skip most of the first section. It also assumes you have disabled selinux during installation. If not then you will need to disable it by editing /etc/selinux/config or create appropriate policies for the various system components to allow ZoneMinder to run.
The instructions assume a database name of 'zm', a database user of 'zmuser' and a database password of 'zmpass'. You should change these to something more secure in the ZoneMinder 'configure' line and the database 'grant' line.
Install Required Packages
As root
yum install mysql-server mysql-devel php-mysql pcre-devel perl-DateManip perl-libwww-perl perl-Device-SerialPort perl-MIME-Lite perl-Archive-Zip
---
Install ffmpeg from Livna
rpm -Uvh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm yum install ffmpeg
OR
Install ffmeg from source
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg/ ./configure make make install make install-libs cd ..
Configure system daemons
chkconfig --add mysqld chkconfig --level 345 mysqld on chkconfig --level 345 httpd on service mysqld start service httpd start
Download and install ZoneMinder
wget http://www.zoneminder.com/downloads/ZoneMinder-1.22.3.tar.gz tar xvfz ZoneMinder-1.22.3.tar.gz cd ZoneMinder-1.22.3
At this point you will need to patch the software to correct a problem with the monitor configuration presets (See patches in wiki table of contents) After you patch the software, continue with the following.
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass CFLAGS="-g -O3 -march=pentium4" CXXFLAGS="-g -O3 -march=pentium4" make make install install scripts/zm /etc/init.d/ chkconfig --add zm
Create and configure the ZoneMinder database
mysql mysql < db/zm_create.sql mysql mysql grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass'; quit mysqladmin reload
Start ZoneMinder
service zm start