HOW TO INSTALL ZONEMINDER, v1.33.0. ON UBUNTU 18.10 LTS (COSMIC)

To install Zoneminder Please refer Connor’s web site Open the terminal and run following commands.
sudo add-apt-repository ppa:iconnor/zoneminder-master
sudo apt-get update
sudo apt install zoneminder

sudo su
rm /etc/mysql/my.cnf
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
gedit /etc/mysql/my.cnf
add the following line at 32
sql_mode = NO_ENGINE_SUBSTITUTION

systemctl restart mysql
Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)
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
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
adduser www-data video
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
systemctl enable zoneminder
service zoneminder start

Add timezone to PHP

gedit /etc/php/7.2/apache2/php.ini
edit line 939 with your timezone
screenshot-from-2017-10-20-14-36-56_orig
Then save the file php.ini
Your time zone can be get from here
Adding cambozola.jar to the directory /usr/share/zoneminder/www/ Download the latest cambozola and extract to the Downloads directory of your PC Then copy the cambozola.jar to the directory /usr/share/zoneminder/www/ On the ubuntu terminal run sudo cp /home/bkjaya1952/Downloads/cambozola-latest/cambozola-0.936/dist/cambozola.jar /usr/share/zoneminder/www/
Open zoneminder web console (http://localhost/zm/)
sudo service apache2 reload
Then open the ZM-Console and restart zoneminder
Screenshot from 2018-12-15 18-21-40
Figure 1:- Adding an USB camera
Screenshot from 2018-12-15 18-25-14
Figure 2 :- Added USB camera and Hikvision IP camera
Screenshot from 2018-12-15 18-24-49
Figure 3:- Montage of 2 cameras
You can see the USB camera  and a Hikvision IP camera are  working in the above figure