Ubuntu Server 12.04 & ZM 1.25 package Install notes

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
parky
Posts: 8
Joined: Sun Aug 28, 2011 8:41 am

Ubuntu Server 12.04 & ZM 1.25 package Install notes

Post by parky » Sat May 05, 2012 1:16 pm

Ello
I have been running ZM for some time and then my 10.10 Desktop ran out of Ubuntu updates. So I bit the bullet and went for a server install to give better performance and the LTS which is good for 3 years updates. I also moved to a 1TB drive to cope with my increasing camera numbers and improved retention space.

I started out using the comprehensive WIKI source install for 11.10 server and then found out that ZM 1.25 has been packaged. Well below is my notes for doing a clean install on 12.04 server, which is sort of a hash of the WIKI items. I don't possess a major amount of Linux knowlwedge but can use the search function, so thought this might be useful to others in a similar position.

1. Install Ubuntu Server 12.04 x86_64
select openssh-server as an optional package for remote admin

2. Update the system:
$ sudo apt-get update
$ sudo apt-get upgrade

3.Install Zoneminder
$ sudo apt-get install zoneminder
when asked for, enter a password for the Mysql admin

4. Instruct apache what to do with Zoneminder
$ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

5. Increase the memory allocation
$ sudo nano /etc/sysctl.conf
paste in these lines at the end and save
kernel.shmall = 167772160
kernel.shmmax = 167772160

6. For bttv 878 cards, define the card for Ubuntu
$ sudo nano /etc/modprobe.d/bttv.conf
paste this in and save
options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4

7. Restart your server

8. Access Zoneminder for configuration
http://server_ip/zm

It should work after that. If you can see the ZM admin page, but cannot get an image in a monitor then it might be hardware related.
Check that your card is configured and working by 'ls /dev'. If Video0,1,2,3 is not there then that is a good pointer.
If missing you need to go deeper and 'lspci' should show your '878' card.

I did try the LAMP install as the server built, but the ZoneMinder package likes to install all it's own dependencies.

Hope this helps people. I like it as it's a simple, repeatable build which can be done in less than an hour if the worst should happen to your hardware.

Cheers
Alan

B F
Posts: 29
Joined: Sat May 05, 2012 5:06 pm

Re: Ubuntu Server 12.04 & ZM 1.25 package Install notes

Post by B F » Sat May 05, 2012 5:36 pm

To get SFTP working I first needed to install the compilers 'build-essential' under aptitude / apt-get so the Perl modules could build.

Then using CPAN I installed the 'Net::SFTP::Foreign' package although I didn't realise this was the required one until after I had installed 'Net::SFTP' (which took ages & kept hanging for ~10 mins at a time).

The message:

Code: Select all

ERR ['zmfilter.pl ' exited abnormally, exit status 9]
or running 'zmfilter.pl' manually as the www-data user:

Code: Select all

Name "Net::SFTP::Foreign::debug" used only once: possible typo at /usr/bin/zmfilter.pl line 812.
was caused by not having the 'IO::Pty' module installed which is required for password authentication.

parky
Posts: 8
Joined: Sun Aug 28, 2011 8:41 am

Re: Ubuntu Server 12.04 & ZM 1.25 package Install notes

Post by parky » Mon May 07, 2012 5:03 pm

Glad to see someone has added a guide in the WIKI. 'The easy way', nice title !

There are a few bits in there that I might try to enhance my install

francisuk22
Posts: 13
Joined: Thu Jun 14, 2012 10:09 am

Re: Ubuntu Server 12.04 & ZM 1.25 package Install notes

Post by francisuk22 » Fri Jul 20, 2012 11:19 am

Dont forget ZoneMinder Viewer for Linux x32 / Windows download from http://sourceforge.net/projects/zmviewer/

Im running on a DELL GX520 with a Pentium 4 HT 3.00GHz with a

At first i had a CPU hog at 1.82 Load so i downloaded there daily live CD images from http://cdimage.ubuntu.com/ubuntu-server ... -amd64.iso - And it works perfect! :)

My PCI card is a Digi-IT DIT-4 based on a conexant 878A 4-port PCI DVR Card from http://www.irc.com.my/ircsystem/digiit/4ch.php
1 CCTV at 640 X 480 with motion at 0.41 Load :) not bad for a P4 HT 3GHz with SSH installed?
PLEASE NOTE! THIS CARD WONT MONITOR!! it will ONLY go on Modect, Record

First! my card wasn't working but i got it going by...

Download or have your favorite SSH client, Mine would be KiTTY http://www.9bis.net/kitty/?page=Download

In terminal command
sudo cd /etc/modprobe.d
sudo wget http://dl.dropbox.com/u/18157475/bttv.conf
reboot

This will reboot your Server

Edit: My cards intos

04:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Subsystem: Device 300a:dd11
Flags: bus master, medium devsel, latency 64, IRQ 18
Memory at f0001000 (32-bit, prefetchable)
Capabilities: <access denied>
Kernel driver in use: bttv
Kernel modules: bttv

04:02.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Subsystem: Device 300a:dd11
Flags: bus master, medium devsel, latency 64, IRQ 3
Memory at f0000000 (32-bit, prefetchable)
Capabilities: <access denied>

francis@DELLGX520 ~ $ sudo lsmod |grep videodev
[sudo] password for francis:
videodev 85626 5 tuner,tvaudio,tda7432,bttv,v4l2_common

sudo lspci | grep Bt878

04:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
04:02.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Intel Dual Core 3.0GHz
1GB RAM
80GB HDD

francisuk22
Posts: 13
Joined: Thu Jun 14, 2012 10:09 am

Re: Ubuntu Server 12.04 & ZM 1.25 package Install notes

Post by francisuk22 » Fri Jul 20, 2012 9:51 pm

Dont forget ZoneMinder Viewer for Linux x32 / Windows download from http://sourceforge.net/projects/zmviewer/

Im running on a DELL GX520 with a Pentium 4 HT 3.00GHz with
Digi-IT DIT-4 based on a conexant 878A 4-port PCI DVR Card from http://www.irc.com.my/ircsystem/digiit/4ch.php

Frame Rate for Monitoring: 30 fps (NTSC) / 25 fps (PAL) - I get it running at 25.00 what gived me 25.67fps
Image Size (resolution) NTSC 320x240, 640x240, 640x480 - Never tryed yet
PAL 352x288, 704x288, 704x576 I get it running at 704x576 what gived me 25.21fps
Remote Control: Setting, Display Control, Relay Output, PTZ Camera - PTZ is what im hoping to get going but 100% is a serial port you attach on the DVR card, Relay Output Don't attend to us it!
Watchdog (I have no idea what is it)
1x Audio Record channel (I have no need to record so i dunno)
Operating System Windows 2000, XP, 2003 (Tryed it on XP and windows 2003 with i-Catcher Console using http://www.icode.co.uk/icatcher/products/console.html

At first i had a CPU hog at 1.82 Load so i downloaded there daily live CD images from http://cdimage.ubuntu.com/ubuntu-server ... -amd64.iso - And it works perfect! :) 1 CCTV at 640 X 480 with motion at 0.41 Load :) not bad for a P4 HT 3GHz with SSH installed?
PLEASE NOTE! THIS CARD WONT MONITOR!! it will ONLY go on Modect, Record

First! my card wasn't working but i got it going by...

Download or have your favorite SSH client, Mine would be KiTTY http://www.9bis.net/kitty/?page=Download

In terminal command
sudo cd /etc/modprobe.d
sudo wget http://dl.dropbox.com/u/18157475/bttv.conf
reboot

This will reboot your Server

Edit: My cards intos

04:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Subsystem: Device 300a:dd11
Flags: bus master, medium devsel, latency 64, IRQ 18
Memory at f0001000 (32-bit, prefetchable)
Capabilities: <access denied>
Kernel driver in use: bttv
Kernel modules: bttv

04:02.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Subsystem: Device 300a:dd11
Flags: bus master, medium devsel, latency 64, IRQ 3
Memory at f0000000 (32-bit, prefetchable)
Capabilities: <access denied>

francis@DELLGX520 ~ $ sudo lsmod |grep videodev
[sudo] password for francis:
videodev 85626 5 tuner,tvaudio,tda7432,bttv,v4l2_common

sudo lspci | grep Bt878

04:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
04:02.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)[/quote]

http://ubuntuforums.org/showthread.php?t=2030259
(If anyone wonts to help get this card going for more channels :) )
Intel Dual Core 3.0GHz
1GB RAM
80GB HDD

eufreka
Posts: 15
Joined: Tue Jun 14, 2011 4:07 pm

Re: Ubuntu Server 12.04 & ZM 1.25 package Install notes

Post by eufreka » Tue Oct 23, 2012 5:30 am

Straight install of the 64-bit version. Everything went fine. Except....

My analog cameras do NOT show on the Montage View (in Safari, apparently); however, they do show and stream correctly on the individual monitor link under "Name" on the web console view.

They DO show on my iPhone using EyeZM also.

They DO record and images show on the Events page too.

The only obvious issue so far, is that they do NOT display on the montage view (in Safari; they do work in Firefox).

EDIT: Actually, it appears to work properly in Firefox; it does NOT work in Safari.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests