How to install Zoneminder 1.30.4 on Ubuntu 17.10(Artful Aardvark)

First  remove  zoneminder completely using synaptic package manager or some other method .Then  clean the remaining items using  the janitor of  Ubuntu Tweak .

Open the Ubuntu terminal

You will have to refer iconnor  for adding Adding Zoneminder  PPA to your system.

Open the Ubuntu terminal

sudo su

add-apt-repository ppa:iconnor/zoneminder
 apt-get update
 apt-get upgrade
 apt-get dist-upgrade
Install Zoneminder

 

Install Zoneminder 1.30.4 using the Synaptic package manager

(Ubuntu Software Center in Ubuntu 17.10 does not have Zoneminder)

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

Screenshot from 2016-04-23 21-38-28

Then save my.cnf

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.1/apache2/php.ini

edit line 939 with your timezone

Screenshot from 2017-10-20 14-36-56

Then save the file php.ini

Your time zone can be get from here 

service apache2 reload

Open Zoneminder http://localhost/zm/
 Screenshot from 2017-10-20 14-42-57
Referance Zoneminder Wiki

 



 

Advertisements

6 thoughts on “How to install Zoneminder 1.30.4 on Ubuntu 17.10(Artful Aardvark)

  1. i’m sorry, i’m new on this zoneminder things,.
    could you tell me, is the installation above running on ubuntu desktop or ubuntu server?
    right now i’m running my zoneminder v1.30 on ubuntu 16.04 server inside VirtualBox.
    the installation is fine, but couldn’t displaying image by camera just blue screen.
    log said “authentication failed”
    i hope you could help me. thanks a lot,.

    • Hi eki
      If the operating system used in your PC is Ubuntu ,you don’t need to use VirtualBox to install Zoneminder.You can directly install Zoneminder on Ubuntu.If you are using Ubuntu 16.04 please follow the procedure described in this site

      • PC running on Ubuntu distro called BackBox OS, i’m afraid that if run zoneminder directly without VirtualBox the database could crash,.
        is it okey to run Zoneminder on desktop version?

    • Dear eki
      I think there may be a wrong setting in camera when adding the monitor .Could you send me the details of the monitor (device type ie usb Camera or IP camera etc and Device path) .You will get a blue screen when user name or password is wrong or for wrong device path .

      • The blue screen issues is fixed. I’m being fool, i was inputting the username and password for zoneminder not the username and password form the camera.
        Right now zoneminder was installed on my RaspPi. I’m still working on how to integrate my files wiith dropbox for cloud storage.

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s