Page 2 of 2

Re: Backports used in Ubuntu Dapper install of ZM

Posted: Thu May 10, 2007 6:09 pm
by scorptig
perspectoff wrote:Thanks to Peter Howard for the Debian package in unstable at:

http://packages.debian.org/unstable/net/zoneminder

I installed ZoneMinder in Ubuntu Dapper (LAMP server) successfully for the first time using this package. Of course, I had to satisfy a lot of dependencies manually and use a lot of backports, as the package uses many newer modules than are available in Dapper.

Specifically, as mentioned in the Dapper wiki, I installed:

sudo apt-get install apache2 php5 php5-mysql libapache2-mod-auth-mysql mysql-server g++ \
make netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl \
libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql-perl \
libpcre3-dev libmysqlclient12-dev libcurl3-openssl-dev libjpeg-mmx-dev \
liblwp-protocol-http-socketunix-perl mc ffmpeg xawtv

(Note: I already had apache2 php5 php5-mysql as part of my LAMP server installation so I didn't need to install those. If you don't have a LAMP server, you obviously will need these).

Then I also installed (or obtained through Dapper's Synaptic Package Manager, which I generally prefer):

sudo apt-get install libdate-manip-perl libavcodec-dev libavformat-dev tzdata

(Note: libavcodec-dev and libavformat-dev handled the ogg, theora, dc1394 error problems.)

Then I had to install dependencies from a number of non-dapper sources (in all cases I first searched for an Ubuntu specific package at http://packages.ubuntu.com/ before accepting the Debian package):

It is possible to install downloaded packages from the Nautilus File Browser by clicking on them. This invokes the GDebi Package Installer to install them automatically. However, GDebi usually hides or reports errors in a cryptic manner. A better alternative is to use the command line terminal and dpkg -i. Using this command line terminal method (while logged in as root using sudo -s), it is easier to see error messages.

sudo -s
dpkg -i libc6_2.5-0ubuntu14_i386.deb (must be the ubuntu package)
(downloaded from http://packages.ubuntu.com/feisty/base/libc6)
dpkg -i libc6-i686_2.5-0ubuntu14_i386.deb
(downloaded from http://packages.ubuntu.com/feisty/libs/libc6-i686)
dpkg -i belocs-locales-bin_2.4-1ubuntu6_i386.deb
(downloaded from http://packages.ubuntu.com/feisty/misc/ ... ocales-bin)
dpkg -i locales_2.3.22_all.deb
(downloaded from http://packages.ubuntu.com/feisty/base/locales)
dpkg -i gcc-4.1-base_4.1.1-21_i386.deb (no other version will do)
(available at http://packages.debian.org/unstable/devel/gcc-4.1-base)
dpkg -i libgcc1_4.1.1-21_i386.deb (no other version will do)
(available at http://packages.debian.org/unstable/libs/libgcc1)
dpkg -i libstdc++6_4.1.1-21_i386.deb (no other version will do)
(available at http://packages.debian.org/unstable/libs/libstdc++6)

[Note: I also tried the three Ubuntu packages
dpkg -i gcc-4.1-base_4.1.2-0ubuntu4_i386.deb
(available at http://packages.ubuntu.com/feisty/libs/gcc-4.1-base)
dpkg -i libgcc1_4.1.2-0ubuntu4_i386.deb
(available at http://packages.ubuntu.com/feisty/libs/libgcc1)
libstdc++6_4.1.2-0ubuntu4_i386.deb
(available at http://packages.ubuntu.com/feisty/base/libstdc++6)
instead of the Debian packages, but they didn't seem to satisfy the ZoneMinder dependencies.]

dpkg -i mysql-common_5.0.38-0ubuntu1_all.deb
(available at http://packages.ubuntu.com/feisty/misc/mysql-common)
dpkg -i libmysqlclient15off_5.0.38-0ubuntu1_i386.deb
(available at http://packages.ubuntu.com/feisty/libs/ ... lient15off)

After these were all satisfied, I installed the zoneminder debian package:

dpkg -i zoneminder_1.2.3-4_i386.deb

Success.

For the database creation I used a slightly different method than in the wiki:

fido@zmserver:~$ sudo -s
root@zmserver:# mysqladmin -u zmusername -p create zmdatabase

(you can use any database name instead of zmdatabase, and any username that you have previously created. For example, I used

root@zmserver:# mysqladmin -u fido -p create zmdbase
root@zmserver:# mysql -u fido -p

(note: you must have fido set up as a mysql superuser to do this. If you have troubles, then use root as the mysql superuser, i.e.

root@zmserver:# mysql -u root -p )

(More information on mySQL initial privileges are at:

http://dev.mysql.com/doc/refman/5.0/en/ ... leges.html )

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdbase.* TO 'zmuser'@'localhost' IDENTIFIED BY 'password';

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdbase.* TO 'root'@'localhost' IDENTIFIED BY 'password';

(I used my usual passwords here. Also note that MySql commands end with a semicolon.)

mysql> quit
root@zmserver:# mysqladmin reload

These methods seemed to have avoided a lot of the errors others have written about in Dapper.
Hi There perspectoff,
I was on a discuss with Peter Howard about install of ZoneMinder on Ubuntu 7.04, so any assistance right now, is welcomed.

Thank you.

Re: RE:Feisty Fawn install

Posted: Thu May 10, 2007 11:40 pm
by PeterHoward
scorptig wrote:[

OK Good Day Peter, I tried
First thing - don't use the debian package - I have .debs for Ubuntu (dapper and edgy) at ftp://www.northern-ridge.com.au/zonemidner/

your ftp is down I am ready to test this, see my last posting of data.

I'll check back tonight.
AAAGGGHH!

That will teach me not to check when I type in URL's. Not the misspelling in the above. It should be
ftp://www.northern-ridge.com.au/zoneminder

Sorry about that.

ZoneMinder 1.22x Ubuntu 7.04

Posted: Fri May 11, 2007 3:11 pm
by scorptig
OK Peter I downloaded your .deb of Zoneminder, I found Feisty link in Wiki.
I was reading earlier posting with required librairies, started on that and most are required. Today is Friday, I should have it completed in a few hours.
I guess reading Manual on how to start ZM might be in order, have not touched that, may have some questions along the way.
Thank You.

Ubuntu 7.04 Feisty Fawn

Posted: Wed May 16, 2007 11:57 pm
by scorptig
OK, I'm back, I re-installed my OS, I realized some of the links downloaded newer versions, and you pointed out, use only this, and going back to Wiki
I noticed steps to take there. So In a step by step method I'll install all needed
components, then I need to set up MySQL, I will I can assure you have some questions later this evening and or tomorrow.

Talk Soon, Thanks in advance.