How to install Zoneminder 1.28.2 on Ubuntu 15.04

Open the terminal and execute following commends

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

Restart Apache

sudo service apache2 restart

Add Zoneminder Repository

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:iconnor/zoneminder

sudo apt-get update

Install Zoneminder

sudo apt-get install zoneminder

Create a file called zoneminder.conf

sudo gedit /etc/tmpfiles.d/zoneminder.conf

Paste or enter the following to above file

d /var/run/zm 0755 www-data www-data

Then save the file

Change permissions on the file

sudo chmod 755 /etc/tmpfiles.d/zoneminder.conf

Create a symbolic link

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf

Create a new user

sudo adduser www-data video

Restart Apache

sudo service apache2 restart

Download cambozola tar.gz file from the following link  and extract it to the home folder

Then open the terminal and execute
sudo cp cambozola-0.936/dist/cambozola.jar /usr/share/zoneminder

Then open the web browser http://localhost/zm/

Now you can add monitor and make your webcam a cctv camera .
If the camera doesn't work restart zoneminder using the start/stop button at the top 
of ZM -Console.

It is better to uninstall previously installed zoneminder completely using  
Synaptic Package Manager.
This procedure does not delete files in zonemider folder at /usr/share/
To remove it, open the terminal and enter
cd /usr/share/zoneminder
enter sudo rm *.*