Ubuntu 10.10 (Maverick Meerkat) Desktop

From ZoneMinder

Jump to: navigation, search

Contents

Installing ZoneMinder from Packages

  1. open a terminal window (Applications > Accessories > Terminal)
  2. sudo apt-get install zoneminder (install the package)
  3. sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf (add a config to apache)
  4. sudo /etc/init.d/apache2 force-reload (restarts Apache)
  5. service zoneminder start
  6. Open a web browser to http://localhost/zm/

Installing ZoneMinder from Sources

Why I chose to Install from Sources

First I installed everything from Ubuntu packaging but noticed that ffmpeg had random segfaults, especially when under ffserver. In fact, ffmpeg segfaulted 2 seconds after fired by ffserver. I downloaded ffmpeg-0.6.1 from source and built it just to test if my theory was correct and it was: ffmpeg binary had problems. Also since my Ubuntu ZoneMinder would not see my USB WebCam (a cheap A4Tech) I decided to purge ZoneMinder and ffmpeg with apt-get purge and apt-get autoremove and try the software from source.

This is my experience. It's not meant as an exhaustive guide, just the outline and the problems I ran into.

Versions Compiled

ffmpeg-0.6.1

ZoneMinder-1.24.2

Debian Dependencies

You can install these with apt-get. They may not be all that is needed as I develop in this machine and probably have other -dev packages installed already. These are the ones I did not have:

  1. libmysqlclient-dev
  2. libjpeg-dev
  3. libpcre3-dev
  4. build-essential

CPAN Dependencies

Date::Manip

PHP::Serialization


Making

The make process of ffmpeg was smoooth, just:

   ./configure
   make
   sudo make install

The make process of ZoneMinder gave me a few problems. One was solved with the CXXFLAGS switch in configure below. The other by adding an include to zm_utils.cpp:

Add the line:

   #include <cstdio> 

In the file src/zm_utils.cpp. Then run the configure script like so (please adjust to your likes/needs):

   CXXFLAGS=-D__STDC_CONSTANT_MACROS ZM_SSL_LIB=openssl ./configure --with-webdir=/var/www/zm --with-cgidir=/var/www/zm/cgi --with-webuser=www-data --with-webgroup=www-data
   make

It should compile ok, then I followed the instructions given here: [Documentation#Building] and here is a summary (but please read the linked doc before!):

  sudo mysql
  mysql> create database zm;
  Query OK, 1 row affected (0.00 sec)
  mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
  Query OK, 0 rows affected (0.04 sec)
  mysql> exit;
  mysql -u root zm < db/zm_create.sql
  sudo make install
Personal tools