How to install Zoneminder 1.29.0 on Raspberry pi 3 with Raspbian 8.1 (Jessy)

First of all you will have to install Raspbian using Noobs on a class 10 sd card (16 GB or more) Pl refer this web site

screenshot-from-2016-11-23-224857

Please check the available version of zoneminder in Raspbian software center .You can see the available version version is zoneminder 1.26 wich is out dated .Therefore we will have to add the Jessie backports to source list and then update in order to obtain latest stable zoneminder version for Raspbian.

Using the terminal

Add The Jessie backports

sudo gedit  /etc/apt/sources.list

Then add following line to the bottom of the file and save

deb http://http.debian.net/debian jessie-backports main

screenshot-from-2016-11-23-213441

Adding  priority to this repository

sudo gedit /etc/apt/preferences.d/zoneminder

Add following lines to the above file and save

Package: *
Pin: origin http.debian.net
Pin-Priority: 1100

Then Update Sources 
sudo apt-get update

There are signature errors can be found

To fix those errors run following on the terminal

gpg --keyserver pgpkeys.mit.edu --recv-key  8B48AD6246925553
gpg -a --export 8B48AD6246925553 | sudo apt-key add -
gpg --keyserver pgpkeys.mit.edu --recv-key  7638D0442B90D010
gpg -a --export 7638D0442B90D010 | sudo apt-key add -

 

Then run on the terminal

sudo apt-get update

The Package ‘tar’ (tar (1.29b-1~bpo8+1)) seems to be broken.

Therefore exclude tar from upgrade

sudo aptitude hold tar

Then run

sudo apt-get upgrade
sudo apt-get dist-upgrade

 


Now if you check the software center you see the latest zoneminder version 1.29 on it .

 

Install PHP, and MySQL server. You will be prompted to set a MySQL password

sudo apt-get install php5 mysql-server php-pear php5-mysql php5-gd

Then install zoneminder 1.29 using the software center of Raspbian

Create Zoneminder database in MySQL

Run following on the terminal

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* 
to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
sudo chmod 740 /etc/zm/zm.conf
sudo chown root:www-data /etc/zm/zm.conf
sudo systemctl enable zoneminder.service
sudo adduser www-data video

sudo a2enmod cgi
sudo a2enconf zoneminder
sudo a2enmod rewrite
sudo chown -R www-data:www-data /usr/share/zoneminder/
sudo systemctl enable zoneminder
sudo service zoneminder start

Adding  timezone to PHP
sudo gedit /etc/php5/apache2/php.ini

Edit 894 line to enter your time zone as follows and save the php.ini file

screenshot-from-2016-11-23-213648
Your time zone can be get from here 


sudo service apache2 reload

Open Zoneminder http://localhost/zm/


Screenshot from 2016-11-23 21:29:42.png

 

ZM Console on Rasberry Pi 3

screenshot-from-2016-11-23-213014

Adding a monitor for IP Camera

screenshot-from-2016-11-23-213046

Adding a monitor for IP Camera

screenshot-from-2016-11-23-213201

IP Camera view

Reference

1 .Zoneminder wiki

2. Zoneminder wiki

Advertisements

24 thoughts on “How to install Zoneminder 1.29.0 on Raspberry pi 3 with Raspbian 8.1 (Jessy)

  1. Thanks for showing how it´s done. 🙂 Can you tell me how high the load is when you turn on modect mode? Can you maybe hook up a cam that ist 1280 x 720 pixels for that? I´m wondering if I can use 5 of those cams with modect mode on raspberry pi 3.

    • Hi Christian
      Even without modect for 320x180pixels I have got load 5.15/Disk 30%. I think it may be difficult to cope with 5 IP cams ( 1280×720 pixels with modect) as Rapberry pi3 has a small RAM (1 GB ). You will also have to provide a better cooling facility to the processor if the load is high .

  2. Hi BK,

    I have followed the instructions but get a problem with installing ZoneMinder 1.29 from the app installer. Having updated the repository, I can see the new version (1.29) and click Apply / OK and the system just loops attempting to install and never exits. If I force exit from the installer, ZoneMinder has not been installed.

    Any ideas?

  3. When I follow the process, at the point where I enter the command:

    sudo a2enconf zoneminder

    It returns:

    ERROR: Conf zoneminder does not exist

    Did I miss something?

    • Hi Darwin
      Please check and verify weather the zoneminder version is 1.29 .If the zoneminder version is below 1.29 try the procedure in zonemineder wiki.
      Please create link for apache (paths can differ-go to the paths and see). On the terminal run sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf

    • Try this:


      cd /etc/apache2/conf-enabled
      rm zoneminder.conf
      ln -s ../conf-available/zoneminder.conf

      Apparently there is something to do with the Apache configuration
      I had the same error and those lines helped me

  4. Hi,

    I’m following the steps pf your manual to install zoneminder in my raspberry pi, but in moment to install package :

    sudo apt-get install php5 mysql-server php-pear php5-mysql php5-gd

    I have a message from depencdencies and i can’t do anything:

    pi@raspberrypi:~/.homeassistant $ sudo apt-get install php5 mysql-server php-pear php5-mysql
    Leyendo lista de paquetes… Hecho
    Creando árbol de dependencias
    Leyendo la información de estado… Hecho
    Tal vez quiera ejecutar «apt-get -f install» para corregirlo:
    Los siguientes paquetes tienen dependencias incumplidas:
    gdb : Depende: libbabeltrace1 (>= 1.2.1) pero no va a instalarse
    libavfilter6 : Depende: libbs2b0 pero no va a instalarse
    libbabeltrace-ctf1 : Depende: libbabeltrace1 (>= 1.2.1) pero no va a instalarse
    libreoffice : Depende: libreoffice-java-common (>= 1:5.2.6~) pero 1:4.3.3-2+rpi4 va a ser instalado
    libreoffice-base : Depende: libreoffice-core (= 1:4.3.3-2+rpi4) pero 1:5.2.6-2~bpo8+1 va a ser instalado
    libreoffice-base-core : Depende: libreoffice-core (= 1:4.3.3-2+rpi4) pero 1:5.2.6-2~bpo8+1 va a ser instalado
    libreoffice-calc : Depende: libreoffice-core (= 1:4.3.3-2+rpi4) pero 1:5.2.6-2~bpo8+1 va a ser instalado
    libreoffice-common : Rompe: libreoffice-style-galaxy (< 1:5.2~) pero 1:4.3.3-2+rpi4 va a ser instalado
    libreoffice-core : Rompe: libreoffice-base (< 1:5.2.6-2~bpo8+1) pero 1:4.3.3-2+rpi4 va a ser instalado
    Rompe: libreoffice-calc (< 1:5.2.6-2~bpo8+1) pero 1:4.3.3-2+rpi4 va a ser instalado
    Rompe: libreoffice-draw (< 1:5.2.6-2~bpo8+1) pero 1:4.3.3-2+rpi4 va a ser instalado
    Rompe: libreoffice-impress (< 1:5.2.6-2~bpo8+1) pero 1:4.3.3-2+rpi4 va a ser instalado
    Rompe: libreoffice-writer (< 1:5.2.6-2~bpo8+1) pero 1:4.3.3-2+rpi4 va a ser instalado
    libreoffice-draw : Depende: libreoffice-core (= 1:4.3.3-2+rpi4) pero 1:5.2.6-2~bpo8+1 va a ser instalado
    libreoffice-gtk : Depende: libreoffice-core (= 1:4.3.3-2+rpi4) pero 1:5.2.6-2~bpo8+1 va a ser instalado
    libreoffice-gtk2 : Rompe: libreoffice-gtk (= 1:5.2.6) pero 1:4.3.3-2+rpi4 va a ser instalad o
    libreoffice-writer : Depende: libreoffice-core (= 1:4.3.3-2+rpi4) pero 1:5.2.6-2~bpo8+1 va a ser instalado
    mysql-server : Depende: mysql-server-5.5 pero no va a instalarse
    php-pear : Depende: php5-common (>= 5.6.30+dfsg-0+deb8u1~) pero no va a instalarse
    Depende: php5-cli pero no va a instalarse
    php5 : Depende: libapache2-mod-php5 (>= 5.6.30+dfsg-0+deb8u1~) pero no va a instalarse o
    libapache2-mod-php5filter (>= 5.6.30+dfsg-0+deb8u1~) pero no va a instalarse o
    php5-cgi (>= 5.6.30+dfsg-0+deb8u1~) pero no va a instalarse o
    php5-fpm (>= 5.6.30+dfsg-0+deb8u1~) pero no va a instalarse
    Depende: php5-common (>= 5.6.30+dfsg-0+deb8u1~) pero no va a instalarse
    php5-mysql : Depende: libmysqlclient18 (>= 5.5.24+dfsg-1) pero no va a instalarse
    Depende: phpapi-20131226
    Depende: php5-common (= 5.6.30+dfsg-0+deb8u1) pero no va a instalarse
    E: Dependencias incumplidas. Intente «apt-get -f install» sin paquetes (o especifique una solución).

    Then i tried to make “sudo apt-get -f install” but i have a error from package systemd:

    Se liberarán 19,1 MB después de esta operación.
    ¿Desea continuar? [S/n] s
    Leyendo lista de cambios… Hecho.
    Segmentation fault
    Configurando systemd (230-7~bpo8+2) …
    Segmentation fault
    dpkg: error al procesar el paquete systemd (–configure):
    el subproceso instalado el script post-installation devolvió el código de salida de error 139
    Se encontraron errores al procesar:
    systemd
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    can you help me? thanks

    • Hi garvarma.It seems there is a dependency problem as libreoffice may be using php 7 in the latest Raspbian
      Therefore it is better to install zoneminder 1.30 with php7
      Please try this link
      or downgrade php 7 to 5 .Please refer this link

  5. Hi Jayasundera,

    I followed your instructions and they were excellent. Thanks for the time you spent making them.

    For the community:

    I had problems doing the dist-upgrade. Exactly this:

    E: Failed to fetch http://archive.raspberrypi.org/debian/pool/main/p/python-click/python-click_6.6-1~bpo8+1_all.deb Size mismatch

    What I had to make was to download and install manually python-click_6.6-1~bpo8+1_all.deb, and then I had to apt-get install every package from the dist-upgrade, leaving the python-* ones for the end.

  6. Please can you help?
    I am getting this error
    sudo gedit /etc/apt/sources.list
    ** (gedit:1839): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

    (gedit:1839): GLib-GIO-ERROR **: Settings schema ‘org.gnome.gedit.preferences.editor’ is not installed

    • Hi garmus
      I think gedit has not been installed correctly .Reinstall and try.
      sudo apt-get purge gedit
      sudo apt update && sudo apt install gedit gedit-plugins gedit-common

      If the error is still there, please try nano command instead of gedit.
      Please refer ZM wiki

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s