Difference between revisions of "Mandrake-Mandriva"

From ZoneMinder Wiki
Jump to navigationJump to search
 
Line 4: Line 4:


To install RPMs on a Mandriva system several perl modules that are not part of the Mandriva distro are required. RPMs for these are availible from the same dowload location as the zm packages.
To install RPMs on a Mandriva system several perl modules that are not part of the Mandriva distro are required. RPMs for these are availible from the same dowload location as the zm packages.
[['''Installing Zonenminder 1.22.2 on Mandriva 2007.0 free''']]
1.] install Mandriva 2007.0 free with all options, but Games.
NOTE: 
If you enable the Firewall ensure that you have access to your machine!
2.] Open a Terminal and become root:
Code:
# su
3.] update your sourcelist
A very good site for Mirrors is http://easyurpmi.zarb.org/
-> here are a example of my sourcelist:
Code:
# urpmi.addmedia plf-free rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2007.0/free/release/binary/i586/ with hdlist.cz
# urpmi.addmedia --update updates ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/updates/2007.0/i586/media/main/updates/ with media_info/hdlist.cz
# urpmi.addmedia main ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2007.0/i586/media/main/release with media_info/hdlist.cz
# urpmi.addmedia contrib ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2007.0/i586/media/contrib/release with media_info/hdlist.cz 
4.] Install essential packets:
Code:
# urpmi ffmpeg xawtv phpmyadmin mysql libmysql-devel ant
5.] Starting MySQL:
Code:
# /etc/init.d/mysqld start
6.] Download, build and install ZM:
Code:
# cd /usr/local/src
# wget http://www2.zoneminder.com/downloads/ZoneMinder-1.22.2.tar.gz
# tar -xvzf ZoneMinder-1.22.2.tar.gz
# cd ZoneMinder-1.22.2
# ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=usr/include/mysql --with-ffmpeg=/usr/bin
# mysql mysql < db/zm_create.sql
# mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
mysql> quit
# mysqladmin reload
# make install
7.] Install Cambozola
Code:
# cd /usr/local/src
# wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz
# tar xvfz cambozola-latest.tar.gz
# cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/html/zm
# chmod 775 /var/www/html/zm/cambozola.jar
Then under the Images tab in the Web-Interface enable ZM_OPT_CAMBOZOLA
That's all. --> Should work now.

Revision as of 07:12, 29 October 2006

ZoneMinder has worked well with Mandr* since v1.17.0 on Mandrake 9.2. This combo was the basis of the first ZMliveCD.

RPM packages have been availible since Mandrake 10.0. A link to download can be found here: http://www.zoneminder.com/wiki/index.php/ZMliveCD

To install RPMs on a Mandriva system several perl modules that are not part of the Mandriva distro are required. RPMs for these are availible from the same dowload location as the zm packages.

'''Installing Zonenminder 1.22.2 on Mandriva 2007.0 free'''

1.] install Mandriva 2007.0 free with all options, but Games. 
NOTE:  

If you enable the Firewall ensure that you have access to your machine!

2.] Open a Terminal and become root: 

Code:

  1. su


3.] update your sourcelist 

A very good site for Mirrors is http://easyurpmi.zarb.org/ -> here are a example of my sourcelist:

Code:

  1. urpmi.addmedia plf-free rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2007.0/free/release/binary/i586/ with hdlist.cz
  1. urpmi.addmedia --update updates ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/updates/2007.0/i586/media/main/updates/ with media_info/hdlist.cz
  1. urpmi.addmedia main ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2007.0/i586/media/main/release with media_info/hdlist.cz
  1. urpmi.addmedia contrib ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2007.0/i586/media/contrib/release with media_info/hdlist.cz


4.] Install essential packets: 

Code:

  1. urpmi ffmpeg xawtv phpmyadmin mysql libmysql-devel ant


5.] Starting MySQL: 

Code:

  1. /etc/init.d/mysqld start


6.] Download, build and install ZM: 

Code:

  1. cd /usr/local/src
  2. wget http://www2.zoneminder.com/downloads/ZoneMinder-1.22.2.tar.gz
  3. tar -xvzf ZoneMinder-1.22.2.tar.gz
  4. cd ZoneMinder-1.22.2
  5. ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=usr/include/mysql --with-ffmpeg=/usr/bin
  1. mysql mysql < db/zm_create.sql
  1. mysql

mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';

mysql> quit

  1. mysqladmin reload
  1. make install


7.] Install Cambozola 

Code:

  1. cd /usr/local/src
  2. wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz
  3. tar xvfz cambozola-latest.tar.gz
  4. cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/html/zm
  5. chmod 775 /var/www/html/zm/cambozola.jar

Then under the Images tab in the Web-Interface enable ZM_OPT_CAMBOZOLA


That's all. --> Should work now.