MDV 2008 and 1.23.0

From ZoneMinder Wiki
Jump to navigationJump to search

Here is a set of instructions that has worked for me to install ZoneMinder 1.23.0 on a fresh install of Mandriva One 2008 using RPMs by rdmelin. See http://www.zoneminder.com/wiki/index.php/ZMliveCD and http://www.zoneminder.com/wiki/index.php/ZMliveCD_Update_RPM_notes

Use at your own risk, your mileage may vary, may cause drowsiness, keep out of reach of children, do not operate heavy machinery ...

Start by downloading and installing the 'One' (livecd) version of Mandriva 2008.0. During set up, do NOT select 3d desktop effects. Not that it won't work, just that I didn't select it when I created this howto.

I do everything in a konsole (as root!) from this point on.

set up urpmi sources. I am using this set because it worked - feel free to go to http://easyurpmi.zarb.org and select your own sources. I like carroll.cac.psu.edu because it's fast ;)

urpmi.addmedia --update plf-free ftp://spirit.bentel.sk/mirrors/plf/mandriva/2008.0/free/release/binary/i586/ with media_info/hdlist.cz
urpmi.addmedia plf-free_backports ftp://spirit.bentel.sk/mirrors/plf/mandriva/2008.0/free/backports/binary/i586/ with media_info/hdlist.cz
urpmi.addmedia --update plf-nonfree ftp://spirit.bentel.sk/mirrors/plf/mandriva/2008.0/non-free/release/binary/i586/ with media_info/hdlist.cz
urpmi.addmedia plf-nonfree_backports ftp://spirit.bentel.sk/mirrors/plf/mandriva/2008.0/non-free/backports/binary/i586/ with media_info/hdlist.cz
urpmi.addmedia main ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/main/release with media_info/hdlist.cz
urpmi.addmedia --update main_updates ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/main/updates with media_info/hdlist.cz
urpmi.addmedia main_backports ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/main/backports with media_info/hdlist.cz
urpmi.addmedia contrib ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/contrib/release with media_info/hdlist.cz
urpmi.addmedia --update contrib_updates ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/contrib/updates with media_info/hdlist.cz
urpmi.addmedia contrib_backports ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/contrib/backports with media_info/hdlist.cz
urpmi.addmedia non-free ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/non-free/release with media_info/hdlist.cz
urpmi.addmedia --update non-free_updates ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/non-free/updates with media_info/hdlist.cz
urpmi.addmedia non-free_backports ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.0/i586/media/non-free/backports with media_info/hdlist.cz

do not update yet ...

We need a text editor. There are several that come with the distro, but I like kate, so I install it

urpmi kate

get the zm files

wget http://sentrix.homeip.net/rpms/noarch/perl-Astro-SunTime-0.01-1.noarch.rpm
wget http://sentrix.homeip.net/rpms/noarch/perl-PHP-Serialization-0.27-1.noarch.rpm
wget http://sentrix.homeip.net/rpms/mdv_2008.0/perl-Device-SerialPort-1.002-1.i586.rpm
wget http://sentrix.homeip.net/rpms/noarch/perl-X10-0.03-1.noarch.rpm
         Note - Look for the latest version 
wget http://sentrix.homeip.net/rpms/mdv_2008.0/zm-1.23.2-1mdv2008.0.i586.rpm

install the rpms -

urpmi perl-Astro-SunTime-0.01-1.noarch.rpm
urpmi perl-Device-SerialPort-1.002-1.i586.rpm
urpmi perl-PHP-Serialization-0.27-1.noarch.rpm
urpmi perl-X10-0.03-1.noarch.rpm
urpmi zm-1.23.2-1mdv2008.0.i586.rpm

if when installing the zm package you get

A requested package cannot be installed:
zm-1.23.0-2mdv2008.0.i586 (due to unsatisfied /usr/bin/mysql)
Continue installation anyway? (Y/n) n

install mysql ...

urpmi mysql

try again with zm -

urpmi zm-1.23.2-1mdv2008.0.i586.rpm

Edit /etc/zm.conf to add mysql user and password

kate /etc/zm.conf

(set the user and password respectively to zmuser, zmpass)

start mysql and apache

service mysqld start
service httpd start

Start zm the first time

service zm start
ERROR 1045 (28000): Access denied for user 'zmuser'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'zmuser'@'localhost' (using password: YES)
You must run /usr/lib/zm/bin/zminit manually

Follow the instructions ...

/usr/lib/zm/bin/zminit

enter your mysql user and password - the default is root and [blank]

Try again to start zm

service zm start 

Open a browser, go to http://127.0.0.1/zm and log in as admin / admin

Now play with your system ;)

Tracy Markham
tracy [at] webwarrior [dot] c o m

.