ZONEMINDER 1.24.2 EASY INSTALL ON UBUNTU SERVER 9.10 amd64

Forum for questions and support relating to the 1.24.x releases only.
Post Reply
MILxDOT
Posts: 64
Joined: Wed Mar 29, 2006 5:12 am

ZONEMINDER 1.24.2 EASY INSTALL ON UBUNTU SERVER 9.10 amd64

Post by MILxDOT » Mon Nov 09, 2009 4:46 am

PERFORM A BASE INSTALL OF UBUNTU SERVER 9.10 amd64 WITH NO OPTIONAL PACKAGES

LOGIN WITH SUPER USER PRIVILEGES
sudo -i

UPDATE UBUNTU
apt-get update
apt-get dist-upgrade

INSTALL OPEN SSH SERVER
apt-get install openssh-server

(now you can ssh to the server) (/sbin/ifconfig to get the server's ip)

INSTALL ALL OF THE PREREQUISITES
apt-get install libts-0.0-0 libnet-daemon-perl libmime-types-perl libswscale0 libavutil49 libio-stringy-perl mysql-server php5 libdbi-perl libavfilter0 libarchive-zip-perl libmime-tools-perl libspeex1 libdate-manip-perl libapr1 libhtml-template-perl libavdevice52 libmime-perl libapache2-mod-php5 mysql-server-core-5.1 libaprutil1-ldap apache2-mpm-prefork libsdl1.2debian-alsa libmysqlclient16 libavcodec52 apache2-utils apache2 libdirectfb-1.2-0 apache2.2-common libsdl1.2debian libaprutil1-dbd-sqlite3 apache2.2-bin libtheora0 ssl-cert libdbd-mysql-perl ffmpeg libpostproc51 nullmailer libasound2 libraw1394-11 libgsm1 libvorbisenc2 libphp-serialization-perl libschroedinger-1.0-0 libavformat52 libemail-date-format-perl libdc1394-22 libjpeg62 libplrpc-perl tsconf libsysfs2 php5-mysql liboil0.3 libdevice-serialport-perl libvorbis0a libconvert-binhex-perl libaprutil1 libmime-lite-perl mysql-common php5-common mysql-server-5.1 mysql-client-5.1 libogg0 unzip

(do not enter a mysql password)

DOWNLOAD THE OTHER DEBIAN DEPENDENCIES
wget http://http.us.debian.org/debian/pool/m ... _amd64.deb

INSTALL THE OTHER DEBIAN DEPENDENCIES
dpkg -i libdirac-encoder0_1.0.2-2_amd64.deb

DOWNLOAD THE 1.24.2 PACKAGE
wget http://http.us.debian.org/debian/pool/m ... _amd64.deb

INSTALL THE 1.24.2 PACKAGE
dpkg -i zoneminder_1.24.2-1_amd64.deb

CONFIGURE APACHE2
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
sudo /etc/init.d/apache2 force-reload

INSTALL CAMBOZOLA
cd /usr/src
wget http://www.charliemouse.com:8080/code/c ... est.tar.gz
tar -xzvf cambozola-latest.tar.gz
cp cambozola-0.76/dist/cambozola.jar /usr/share/zoneminder/

INSTALL JSCALENDAR
cd /usr/src
wget http://prdownloads.sourceforge.net/jsca ... p?download
unzip jscalendar-1.0.zip
mkdir /usr/share/zoneminder/tools/jscalendar
cp -R jscalendar-1.0/* /usr/share/zoneminder/tools/jscalendar

CONFIGURE MYSQL FOR BETTER PERFORMANCE
nano /etc/mysql/my.cnf

CHANGE THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:
max_allowed_packet = 32M
thread_stack = 128K
query_cache_size = 24M

ADD THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:
skip-innodb
tmp_table_size = 32M
max_heap_table_size = 16M

REBOOT THE SERVER
/sbin/shutdown now -r

ACCESS THE ZONEMINDER WEB INTERFACE AND BEGIN WEB CONFIGURATION
http://ip.of.your.server/zm

crates
Posts: 13
Joined: Sun Apr 10, 2005 11:18 am
Location: UK

Post by crates » Mon Nov 09, 2009 11:18 am

Interesting, thanks for this.

I installed the Ubuntu 1.24.1 package on my 9.10(desktop) AMD64.

I'd like to upgrade to 1.24.2 but I'm not sure what's involved. I presume I can use the DEB package above but I'm not sure quite what to do with it.

Do I need to stop ZM/apache/mysql before installing it... or does it handle these things ? Does it upgrade the database automatically ?

Is there a how-to anywhere ?

trendkill
Posts: 35
Joined: Sat Mar 10, 2007 1:48 pm
Contact:

Post by trendkill » Mon Nov 09, 2009 2:29 pm

I have an installed and working ZM 1.24.2 with Karmic and I did the same method. Can I apply the mysql tweak in a working system? Isn't the extant database goes broke?

trendkill
Posts: 35
Joined: Sat Mar 10, 2007 1:48 pm
Contact:

Post by trendkill » Mon Nov 09, 2009 3:49 pm

there is a bug in the debian repo,
you have to modify the file:
/usr/share/zoneminder/skins/classic/views/timeline.php at line 811

Code: Select all

<?= makePopupLink( '?view=events&page=1&filter=1'.$filterQuery, 'zmEvents', 'events', $SLANG['List'], canView( 'Events' ) ) ?>
to

Code: Select all

<?= makePopupLink( '?view=events&page=1&'.$filterQuery, 'zmEvents', 'events', $SLANG['List'], canView( 'Events' ) ) ?>
http://www.zoneminder.com/forums/viewtopic.php?t=14694

siki
Posts: 3
Joined: Sun Nov 15, 2009 11:39 pm

Post by siki » Mon Nov 16, 2009 12:02 am

I have working server with 4 cameras build with livecd, working fine for some time. I make another server build as described here.
I have the same setup as working server using rtsp streaming but on the ubuntu 64bit server nothing work as expected :-(

I make some tests and that seem for me that rtsp has some problems on 64bit servers

Please help


[log]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Sequence in probation 2, out of sequence]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding frame 0]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding incomplete frame 0, 0 bytes]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Unable to get picture from frame]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: ERR [Error while decoding frame 0]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: ERR [256: e6 21 e1 f6 81 67 4e 90 05 30 4c 06 61 ad 3a f3 43 ec 59 da 44 14 80 ac c7 1c 79 57 6f 65 9a 69 c0 84 04 c1 70 34 60 68 24 10 90 b8 9c e0 f8 78 bb c2 84 40 bd 38 f2 e2 dc 26 e2 c7 00 a5 03 30 76 18 24 0e 82 37 bc c9 73 3a 2b 99 b4 d0 53 40 13 bd 7b cd 7d c7 44 62 60 36 11 b1 ec ee a7 b9 f9 7a a4 1c 4c fd 26 03 c7 e1 04 91 7e 09 31 60 71 f2 e2 cf 01 83 75 d7 a6 9e 97 a2 bc 0d f2 19 50 85 d4 28 67 dc 82 85 40 6a dd eb af 85 9c 8a c0 5c 68 85 20 60 d9 ce e5 df 56 08 a3 80 d0 e3 b5 3d aa 93 a2 e8 5d 5e 21 80 68 2d 71 f4 fb cb a0 50 05 c0 d0 12 23 0c 07 41 60 2b e3 e0 c7 02 e0 90 19 54 71 e1 5c 13 37 e5 79 71 f2 10 23 08 e7 a9 62 2b 3e cf 4a 26 0a 20 26 2a 75 e7 e6 99 23 03 28 49 30 d4 94 f2 6f aa 6d 28 22 4b f7 81 ad f8 72 a9 c9 5a b9 ad 41 ca 2b 72 20 35 48 5b]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: ERR [Error while decoding frame 0]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: ERR [256: 64 e9 e1 f9 06 4c 21 0b 40 84 89 c7 f7 66 00 46 36 70 0a 11 81 82 20 48 20 12 04 c3 33 2a da dc fe 0c cd 81 64 07 02 40 78 06 81 90 86 09 1d 33 f3 35 b2 60 47 02 21 0c 60 84 0e 02 e1 0f 7e 5e 93 85 c1 70 04 ff cd 2b 54 68 29 80 91 1c 30 77 87 ff 44 48 f5 66 82 c0 0e 2a fb 0d 4b d3 a1 42 05 c0 61 8f 9b 56 9e f0 62 60 29 81 c4 76 e1 f3 14 ea be 30 79 c1 64 01 8c eb d5 e7 89 1c 05 c0 50 31 87 05 88 38 42 be 19 22 0a 50 48 de 19 dc 3c 5e 01 04 40 50 81 62 0e 1d 18 1b 13 cd bf 84 c1 64 00 c2 af fb ae 27 16 cf 13 00 d0 12 24 23 e2 ad 9e 9c 25 3c c0 64 c7 b1 ca a6 90 da e2 68 8c 84 0b 80 18 40 98 c2 02 c1 70 bf 90 66 93 85 30 0f 2d 3b f3 1f 3c f0 b4 6a 14 30 54 4f 0c c3 3a 32 0a 20 06 01 e4 07 1e af e4 60 10 16 40 28 58 ea 79 5d 99 3c 98 9b ca a5 32 09 60 90 08 03]

Nov 15 18:50:42 ubuntu zmc_m2[1922]: ERR [Error while decoding frame 0]
Nov 15 18:50:42 ubuntu zmc_m2[1922]: ERR [256: 98 38 28 80 e2 30 4e 47 83 88 00 60 38 56 2a c1 ce 07 36 35 1a 60 96 0e 21 3a 93 13 08 00 e5 d2 9d 42 0b 76 30 70 54 2a e0 39 c0 ba d8 c4 20 4c 8b cf 7e 3f 09 06 d8 38 6c 68 68 ce 09 e6 84 2c c9 48 2c 86 c0 e2 30 a2 85 93 02 bc 66 8f 04 73 60 25 28 0b 45 8b 85 01 80 8f 0e c1 c7 41 c2 d0 16 0e 2d 48 36 3a 54 1a 8c 93 c1 62 0e 04 73 a0 bb 40 17 08 78 4e 11 0b 80 43 58 38 6e 18 ab 80 a0 70 b9 26 4e 0e 8d 0e 05 40 e0 9d 0b 20 07 1f 8a 30 4e 07 11 fa 78 38 3a 19 03 85 e1 3a c0 e1 88 9b 04 40 e0 98 54 26 cb 01 6a 0e 16 08 f0 f0 25 10 01 72 0b 30 70 c4 5c 28 c1 c1 40 0e 1a 60 e3 82 00 38 e1 20 87 83 84 30 ac 1c 28 21 0f ce 08 79 90 4e 07 09 86 82 3c 1c 13 8c db 19 8b 0a 41 26 93 13 03 82 c0 58 37 83 85 68 f0 70 98 16 00 8c 09 0c 6d 03 88 04 16 0e 0d 05 a0 e1 30 2c]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding packet for unrecognised ssrc e88813d8]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding packet for unrecognised ssrc d4e58bd0]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding packet for unrecognised ssrc d74c7edc]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding packet for unrecognised ssrc 802c088]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding packet for unrecognised ssrc adca428]
Nov 15 18:50:42 ubuntu zmc_m1[1919]: WAR [Discarding packet for unrecognised ssrc 39c831e9]

jd896
Posts: 16
Joined: Sat Nov 14, 2009 12:55 pm
Location: sheffield uk

update for guide

Post by jd896 » Sun Mar 14, 2010 11:58 am

follow the guide up to downloading the deb but instead use this url as when i tried this the address was no longer found

ftp://www.northern-ridge.com.au/zonemin ... _amd64.deb

and update the install command as needed

i think this was all i needed to install following this guide
the install of the deb may complain about a missing package i can not remember weather it will if it does just a sudo apt-get install (package-name)

should finish the install automaticly

p.s. thanks for the guide other than the above worked like a treat althought i installed server using lvm as this kind of server is very storage needy

any one unsure about lvm a quick google will do the trick

EDIT> just remembered any one using network cams these may not work, this beeing the case apparmor has blocked the activity (you will get a red source in the zm page)

to allow the zm to fetch images from the cams use this command to see any complaints
sudo aa-logprof
then awnser d (say no to the repository)
then it will ask you about the problematic program/package

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests