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

From ZoneMinder Wiki
Jump to navigationJump to search
Line 16: Line 16:
----
----


'''Install ffmpeg from Livna'''
'''Either Install ffmpeg from Livna'''


  rpm -Uvh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm
  rpm -Uvh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm
  yum install ffmpeg
  yum install ffmpeg


'''OR'''
'''Or Install ffmeg from source'''
 
'''Install ffmeg from source'''


----
----
Line 34: Line 32:
  make install-libs
  make install-libs
  cd ..
  cd ..


----
----
Line 47: Line 44:
  service mysqld start
  service mysqld start
  service httpd start
  service httpd start


----
----

Revision as of 19:00, 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

Either 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"

Alternate configure command you could use instead of above (check where ffmpg is installed e.g. /usr/bin or /usr/local/bin)

./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/bin  \
--with-lame=/usr/lib --with-webuser=apache --with-webgroup=apache

Compile Zoneminder

make

As root

make install

Install ZM startup script

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