How to install zoneminder on ubuntu 10.04 server

Forum for questions and support relating to the 1.24.x releases only.
Locked
JCL
Posts: 3
Joined: Fri May 29, 2009 10:00 am

How to install zoneminder on ubuntu 10.04 server

Post by JCL »

Where do i find a working step-by-step guide on how to install latest zoneminder on ubuntu 10.04 server?

I tried this link, but with no success:
http://viktorpetersson.com/2010/05/23/h ... ts-server/

Thanks

JCL
storrgie
Posts: 6
Joined: Sun Jun 27, 2010 5:19 pm

Post by storrgie »

Its packaged in ubuntu:

sudo apt-get install zoneminder
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Post by Flasheart »

^ that, did it myself on a ubuntu box a few months ago.

Gone are the days of struggling to meet dependencies when building zm!
carlexpc
Posts: 3
Joined: Wed Jan 06, 2010 7:13 am

Post by carlexpc »

storrgie is right.

install ubuntu maintained package straightforward.

sudo apt-get install zoneminder
carlexpc
Posts: 3
Joined: Wed Jan 06, 2010 7:13 am

Re: How to install zoneminder on ubuntu 10.04 server

Post by carlexpc »

JCL wrote:Where do i find a working step-by-step guide on how to install latest zoneminder on ubuntu 10.04 server?

I tried this link, but with no success:
http://viktorpetersson.com/2010/05/23/h ... ts-server/

Thanks

JCL
Try this:

1. Install the package:
$ sudo apt-get install zoneminder

2. After the zoneminder installation completes, create a symbolic link to your zoneminder installation in apache's default web directory.

$ cd /var/www
$ sudo ln -s /usr/share/zoneminder .

3. To make sure, restart your apache server.

$ sudo /etc/init.d/apache2 restart

4. To test if your installation works, access your zoneminder remotely using an internet browser on another workstation.

http://<your zoneminder's ip>/zoneminder


That would work for now.
Kuwona
Posts: 7
Joined: Thu Jul 15, 2010 11:49 pm

Post by Kuwona »

This is very helpful for us beginners...

1 - I really don't know what Apache is, but I'm guessing that by typing the "$" I am at the 'Apache prompt'? Or should I type "root login" first befor entering:

$ cd /var/www
$ sudo ln -s /usr/share/zoneminder ?

2 - How do I find out what my zoneminder's IP is?

Thanks!
eternaluxe
Posts: 11
Joined: Wed Jul 21, 2010 4:57 pm

Post by eternaluxe »

1-
Apache is a web server. Use Google.

The $ is a shell prompt, like c:\ in DOS or Windows.. Type what you see after it.

2-
Your zoneminder IP... same as the ip of the computer you installed it on.

$ ifconfig
Kuwona
Posts: 7
Joined: Thu Jul 15, 2010 11:49 pm

Post by Kuwona »

Thanks - I think I'm starting to get it.

Once I get to step 3 above, I think it said something like "could not reliably identify IP address" (best I an remember from yesterday).

Does this mean I have to set up a static IP address?

When I do ifconfig, it shows me several different xxx.xxx.xxx.xxx-type addresses. Some are under the eth0 heading and some are under the lo heading. How do I determine which ones to use and how to make them static?

I'm I on the right track here?

Thanks again!
TheWaterman1000
Posts: 1
Joined: Thu Jul 22, 2010 3:14 pm

Install error

Post by TheWaterman1000 »

I've just about trider everything to install on ubuntu 10.04 LTS. I follow the install info here and other sites. I'm getting error. Just tried the ubuntu software center again and get the following errors

installArchives() failed: Preconfiguring packages ...

Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN0> line 7.

Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83.

Use of uninitialized value $val in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84.

Preconfiguring packages ...

Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN0> line 7.

Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83.

Use of uninitialized value $val in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84.

dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you requested:

apache2 depends on apache2-mpm-worker (= 2.2.14-5ubuntu8) | apache2-mpm-prefork (= 2.2.14-5ubuntu8) | apache2-mpm-event (= 2.2.14-5ubuntu8) | apache2-mpm-itk (= 2.2.14-5ubuntu8); however:

Package apache2-mpm-worker is to be removed.

Package apache2-mpm-prefork is not installed.

Package apache2-mpm-event is not installed.

Package apache2-mpm-itk is not installed.

(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 184480 files and directories currently installed.)

Removing apache2-mpm-worker ...

* Stopping web server apache2

...done.

Selecting previously deselected package mysql-server-5.1.

(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 184476 files and directories currently installed.)

Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb) ...

Selecting previously deselected package apache2-mpm-prefork.

Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.14-5ubuntu8_i386.deb) ...

Selecting previously deselected package php5-common.

Unpacking php5-common (from .../php5-common_5.3.2-1ubuntu4.2_i386.deb) ...

Selecting previously deselected package libapache2-mod-php5.

Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.2-1ubuntu4.2_i386.deb) ...

Selecting previously deselected package libarchive-zip-perl.

Unpacking libarchive-zip-perl (from .../libarchive-zip-perl_1.30-2_all.deb) ...

Selecting previously deselected package libconvert-binhex-perl.

Unpacking libconvert-binhex-perl (from .../libconvert-binhex-perl_1.119+pristine-3_all.deb) ...

Selecting previously deselected package libemail-date-format-perl.

Unpacking libemail-date-format-perl (from .../libemail-date-format-perl_1.002-1_all.deb) ...

Selecting previously deselected package libhtml-template-perl.

Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-1_all.deb) ...

Selecting previously deselected package libmime-lite-perl.

Unpacking libmime-lite-perl (from .../libmime-lite-perl_3.027-1_all.deb) ...

Selecting previously deselected package libmime-tools-perl.

Unpacking libmime-tools-perl (from .../libmime-tools-perl_5.427-2_all.deb) ...

Selecting previously deselected package libmime-perl.

Unpacking libmime-perl (from .../libmime-perl_5.427-2_all.deb) ...

Selecting previously deselected package libmime-types-perl.

Unpacking libmime-types-perl (from .../libmime-types-perl_1.28-1_all.deb) ...

Selecting previously deselected package mysql-server.

Unpacking mysql-server (from .../mysql-server_5.1.41-3ubuntu12.3_all.deb) ...

Selecting previously deselected package php5.

Unpacking php5 (from .../php5_5.3.2-1ubuntu4.2_all.deb) ...

Selecting previously deselected package php5-mysql.

Unpacking php5-mysql (from .../php5-mysql_5.3.2-1ubuntu4.2_i386.deb) ...

Selecting previously deselected package libdevice-serialport-perl.

Unpacking libdevice-serialport-perl (from .../libdevice-serialport-perl_1.04-2_i386.deb) ...

Selecting previously deselected package zoneminder.

Unpacking zoneminder (from .../zoneminder_1.24.2-2build3_i386.deb) ...

Processing triggers for ureadahead ...

ureadahead will be reprofiled on next reboot

Processing triggers for man-db ...

Setting up mysql-server-5.1 (5.1.41-3ubuntu12.3) ...

mysql stop/waiting

mysql start/running, process 2088



Setting up apache2-mpm-prefork (2.2.14-5ubuntu8) ...

* Starting web server apache2

Syntax error on line 4 of /etc/apache2/sites-enabled/001-zoneminder:

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

...fail!

invoke-rc.d: initscript apache2, action "start" failed.



Setting up php5-common (5.3.2-1ubuntu4.2) ...

Setting up libapache2-mod-php5 (5.3.2-1ubuntu4.2) ...

* Reloading web server config apache2



Setting up libarchive-zip-perl (1.30-2) ...

Setting up libconvert-binhex-perl (1.119+pristine-3) ...

Setting up libemail-date-format-perl (1.002-1) ...

Setting up libhtml-template-perl (2.9-1) ...

Setting up libmime-lite-perl (3.027-1) ...

Setting up libmime-tools-perl (5.427-2) ...

Setting up libmime-perl (5.427-2) ...

Setting up libmime-types-perl (1.28-1) ...

Setting up mysql-server (5.1.41-3ubuntu12.3) ...

Setting up php5 (5.3.2-1ubuntu4.2) ...

Setting up php5-mysql (5.3.2-1ubuntu4.2) ...

Setting up libdevice-serialport-perl (1.04-2) ...

Setting up zoneminder (1.24.2-2build3) ...

Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89

Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.

BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.

Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.

BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.

Compilation failed in require at /usr/bin/zmpkg.pl line 45.

BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.

failure



invoke-rc.d: initscript zoneminder, action "start" failed.

dpkg: error processing zoneminder (--configure):

subprocess installed post-installation script returned error exit status 255

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

Errors were encountered while processing:

zoneminder

Setting up zoneminder (1.24.2-2build3) ...

Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89

Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.

BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.

Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.

BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.

Compilation failed in require at /usr/bin/zmpkg.pl line 45.

BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.

failure



invoke-rc.d: initscript zoneminder, action "start" failed.

dpkg: error processing zoneminder (--configure):

subprocess installed post-installation script returned error exit status 255


Then finshes with a green check mark. I'm coming back to linux from wincrap and would be gratefull for a compleat install info that shows all the software that need to be installed. This is one big reason many won't come over from windows to linux. It a new learning experience.
Thanks Dave
eternaluxe
Posts: 11
Joined: Wed Jul 21, 2010 4:57 pm

Post by eternaluxe »

Alot of thread jacking going on here....
. Some are under the eth0 heading and some are under the lo heading. How do I determine which ones to use and how to make them static?
eth0 is your physical ethernet port. If you are trying to connect to the ZM machine from a different machine on the same network, this is the ip address that you need.

lo is the loop back device, basically the internal network of the ZM computer itself.

post the output of the following command:

Code: Select all

$ ifconfig eth0
execute the following command and post its output, as well:

Code: Select all

$ cat /etc/network/interfaces
That file contains the ip configuration for you computer.
eternaluxe
Posts: 11
Joined: Wed Jul 21, 2010 4:57 pm

Re: Install error

Post by eternaluxe »

TheWaterman1000 wrote:I've just about trider everything to install on ubuntu 10.04 LTS. I follow the install info here and other sites. I'm getting error. Just tried the ubuntu software center again and get the following errors
...
Then finshes with a green check mark. I'm coming back to linux from wincrap and would be gratefull for a compleat install info that shows all the software that need to be installed. This is one big reason many won't come over from windows to linux. It a new learning experience.
Thanks Dave
Dave, Sorry for your troubles. You are correct Linux != Windows.
Keep learning, but let me warn you: It never gets any easier cause there is always more to learn.

Try this approach.
http://kirichkov.com/368/howto-make-a-c ... oneminder/
I can't vouch for how well it will work since I run a Debian Lenny system and not Ubuntu.
Kuwona
Posts: 7
Joined: Thu Jul 15, 2010 11:49 pm

Post by Kuwona »

Thanks Eternaluxe -

I'll try to post the output - probably Monday - from the two commands you gave me. I'll have to transcribe it with a pen and paper, because I don't know how to get on the web from my ubunto server machine.

If this is helpful, the output from ifconfig included...
eth0
inet addr 192.168.1.33
bcast 192.168.1.255
mask 255.255.255.0

lo
inet addr 127.0.0.1
mask 255.0.0.0

There are no other machines on the network. I'm using an earthlink dsl "router?"

My ultimate goal is to log onto the ubuntu server machine from another compter on the internet.
Kuwona
Posts: 7
Joined: Thu Jul 15, 2010 11:49 pm

Post by Kuwona »

Okay - Here's the output you asked for (possibly with some details lost in transcription on my little notepad). By the way, I am typing the comands at a prompt that says "root@route38:/etc/network#"...

eth0 link encap: ethernet hwaddr 00:19:d1:54:a4:c2
inet addr: 192.168.1.33 bcast: 192.168.1.225 mask: 255.255.255.0
inet6 addr: fe80: : 219:diff:fe54:a4c2/64 scope:link
ip broadcast running multicast mtu:1500 metric:1
rx packets: 47632 errors:0 dropped:0 overruns:0 frame:0
tx packets: 8433 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
rx bytes:23965163 (23.9 mb) tx bytes:651214 (651.2 kb)
memory:30200000-30220000

and...

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces (5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

Thanks again.
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

I've installed ZM 1.24.2 via the package manager on my copy of Ubuntu 10.04 x64 Desktop. The installation went fine, but I was unable to stream my video of my ACM-4100 camera via RTSP.

Installing ZM from the repo's source fixed my problems!
The download, configure & installation of ffmpeg & ZM wasn't that difficult. It just took me a while to download on my 384kbps ADSL line and then to compile within a Virtual Machine.

I've basically followed a mixture of Ubuntu 9.10 Desktop (for installing LAMP) and Ubuntu 9.10 x86 server (for installing all the ZM stuff).
There was 1 place where I got stuck, and that was because the ZM configure script's arguments was missing CPPFLAGS="-D__STDC_CONSTANT_MACROS".
So my configure line looked like follow:

Code: Select all

./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data --enable-mmap CPPFLAGS="-D__STDC_CONSTANT_MACROS"
I hope this would help some of you.
Locked