Difference between revisions of "Fedora Core 6 Step-by-Step"

From ZoneMinder Wiki
Jump to navigationJump to search
 
Line 1: Line 1:
This short guide takes you through the specific taks 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.
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.


<pre>The instructions assume a database name of 'zm', a database user of 'zmuser' and a database password of 'zmpass'.
<pre>The instructions assume a database name of 'zm', a database user of 'zmuser' and a database password of 'zmpass'.

Revision as of 07:32, 11 December 2006

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


yum install mysql-server

yum install mysql-devel

yum install php-mysql

yum install pcre-devel

yum install perl-DateManip

yum install perl-libwww-perl

yum install perl-Device-Serial

yum install perl-MIME-Lite

yum install perl-Archive-Zip



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

./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

mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';

mysql> quit

mysqladmin reload



Start ZoneMinder


service zm start