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

From ZoneMinder Wiki
Jump to navigationJump to search
 
(11 intermediate revisions by 4 users not shown)
Line 9: Line 9:


----
----
As root


yum install mysql-server
yum install mysql-server mysql-devel php-mysql pcre-devel perl-DateManip perl-libwww-perl perl-Device-SerialPort \
perl-MIME-Lite perl-Archive-Zip


yum install mysql-devel
----


yum install php-mysql
'''Either Install ffmpeg from Livna'''


yum install pcre-devel
rpm -Uvh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm
 
yum install ffmpeg
yum install perl-DateManip
 
yum install perl-libwww-perl
 
yum install perl-Device-Serial
 
yum install perl-MIME-Lite
 
yum install perl-Archive-Zip


'''Or Install ffmeg from source'''


----
----


'''Install ffmeg from source'''
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
 
cd ffmpeg/
----
./configure
 
make
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
make install
 
make install-libs [This step not required in recent versions of ffmpeg]
cd ffmpeg/
cd ..
 
./configure
 
make
 
make install
 
make install-libs
 
cd ..
 


----
----
Line 56: Line 39:
----
----


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 73: Line 51:
----
----


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
cd ZoneMinder-1.22.3


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"
./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
Alternate configure command you could use instead of above (check where ffmpg is installed e.g. /usr/bin or /usr/local/bin)
 
make install
 
install scripts/zm /etc/init.d/
 
chkconfig --add zm


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


Line 96: Line 83:
----
----


mysql mysql < db/zm_create.sql
mysql mysql < db/zm_create.sql  
mysql mysql
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit
mysqladmin reload


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


'''Start ZoneMinder'''


----
----


'''Start ZoneMinder'''
service zm start


----
Point your web browser at http://127.0.0.1/zm and you should now see the ZoneMinder Console


service zm start
Refer to the Readme for details on how to set up and configure monitors.

Latest revision as of 04:17, 20 September 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 [This step not required in recent versions of ffmpeg]
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

Point your web browser at http://127.0.0.1/zm and you should now see the ZoneMinder Console

Refer to the Readme for details on how to set up and configure monitors.