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


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 jessie-backports main


Adding  priority to this repository

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

Add following lines to the above file and save

Package: *
Pin: origin
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 --recv-key  8B48AD6246925553
gpg -a --export 8B48AD6246925553 | sudo apt-key add -
gpg --keyserver --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

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


Adding a monitor for IP Camera


Adding a monitor for IP Camera


IP Camera view


1 .Zoneminder wiki

2. Zoneminder wiki