Posts

HOW TO INSTALL ZONEMINDER, v1.34.0. ON UBUNTU 19.10 (eoan), with mysql 8

Image
HOW TO INSTALL ZONEMINDER, v1.34.0. ON UBUNTU 19.10 (eoan), with mysql 8   Today, Mr. Isaac Connor has published the  first successful Zoneminder-master-eoan  package for Ubuntu 19.10. in his website . To avoid errors when installing Zoneminder , MySQL-server is installed first. Installation of MySQL-server On the Ubuntu terminal sudo su apt install mysql-server rm /etc/mysql/my.cnf cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf sed -i "15i default_authentication_plugin= mysql_native_password" /etc/mysql/my.cnf /etc/init.d/mysql start   mysql   CREATE USER 'admin'@'localhost' IDENTIFIED WITH mysql_native_password BY ''; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES ; quit mysqladmin -uroot -p reload Installation of Zoneminder To install Zoneminder Please refer Connor’s web site Open the terminal and run following commands.   mysql CREATE USER 'zmuser'...

How to Build a Zoneminder-master Docker-Image with MYSQL 8 & MSMTP

Image
How to Build a Zoneminder-master Docker-Image with MYSQL 8 & MSMTP We observed that most of the Linux software have compatibility problems due to dependency issues when operating systems are upgraded.  To overcome dependency issues and to avoid conflicts with the default system structure of the OS , the Docker-images play an important role. Since the official Zoneminder eoan has Dependency wait on lgw01-amd64-051 , I thought of developing a docker-image  with MYSQL 8 & MSMTP and push to docker hub  . This docker image is structured based on the basic concepts in my earlier post on How to install Zoneminder , ( v1.33.16.) with Mysql 8 on Ubuntu 19.10 This image is created on ubuntu:eoan  with zoneminder-master/ubuntu disco main In the Dockerfile , Ubuntu environment used is ubuntu:eoan. deb For Zoneminder ppa used is http://ppa.launchpad.net/iconnor/zoneminder-master/ubuntu disco main . Therefore libmysqlclient20 has to...

How to install Zoneminder-master- Docker , v1.33.16 with Mysql 8 ,MSMTP on Ubuntu 19.10 (Eoan Ermine)

Image
How to install Zoneminder-master- Docker , v1.33.16 with Mysql 8 ,MSMTP on Ubuntu 19.10 (Eoan Ermine) January 14, 2020 B.K.Jayasundera In this tutorial ,we are going to use “Docker: Enterprise Container Platform”   ( docker.io ) on Ubuntu 19.10. As , still there is on official  zoneminder issued for  Ubuntu 19.10 due dependency issues, the best option is to use docker Zoneminder  to overcome dependency problems and to avoid conflicts with the default setup of  Ubuntu 19.10 First Installation of Docker on Ubuntu 19.10 On the Ubuntu terminal sudo apt install docker.io Then use ,  bkjaya1952/docker-zoneminder-master-mysql8 Docker Repository to make a container . ( This image has been created on ubuntu:eoan  with  zoneminder-master/ubuntu disco main) I have created the above docker image and pushed to the Docker Hub. Figure:- bkjaya1952/docker-zoneminder-master-mysql8:1.33.16 Repository at dockerhu...

How to install Zoneminder-master- Docker , v1.33.16 with MSMTP on Ubuntu 19.10 (Eoan Ermine)

Image
In this tutorial ,we are going to use “Docker: Enterprise Container Platform”   ( docker.io ) on Ubuntu 19.10. As , still there is on official  zoneminder issued for  Ubuntu 19.10 due dependency issues, the best option is to use docker Zoneminder  to overcome dependency problems and to avoid conflicts with the default setup of  Ubuntu 19.10 First Installation of Docker on Ubuntu 19.10 On the Ubuntu terminal sudo apt install docker.io Then use , bkjaya1952/docker-zoneminder-master  Docker Repository to make a container . ( This image has been created on Ubuntu 19.04 disco ) sudo docker create -t -p 8085:80 --shm-size=4096m -e TZ=Asia/Colombo --name myzm --privileged=true bkjaya1952/docker-zoneminder-master:v1.33.16. Note :- use your timezone instead of "TZ=Asia/Colombo" sudo docker start myzm For configuring MSMTP for emailing zoneminder motion detection events, please refer the following link. https://hub.docker.com/r/bkjaya1...

How to install Zoneminder , ( v1.33.16.) with Mysql 8 on Ubuntu 19.10

Image
Since the official Zoneminder eoan has Dependency wait on lgw01-amd64-051 , We will have to install Zoneminder disco  on Ubuntu 19.10. There is a problem in the present PHP release which make errors with the “caching_sha2_password” introduced in the Mysql 8 by default . Please refer the following link https://www.php.net/manual/en/mysqli.requirements.php Therefore , we will have to use “mysql_native_password” method in Mysql 8. First of all we will have to install mysql-server-8 on Ubuntu 19.10 and enable mysql_native_password The installation  of mysql-server-8.0 can be done using the synaptic package manager . Figure:-1 Installed mysql-server-8 shown in synaptic package manager Then open the Ubuntu terminal sudo su rm /etc/mysql/my.cnf cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf gedit /etc/mysql/my.cnf Then enter the following line below [mysqld] on the opened my.cnf file and save the file [mysqld] default_authentication_plugin= mysql...

How to select and copy a latest file from a folder to another folder- Ubuntu Script

Image
Background: Once , I had a requirement to find a method  to send email alerts with an attached video of the event ,when a motion detection is occurred in Motion Linux . According to my configuration of camera4.conf , the video clips of motion detection events are stored automatically  in a folder (motion) at ~/Videos/motion of the computer. My target was to select most resent video clip in ~/Videos/motion and to send email alert attached  with the video clip. For the purpose of easy emailing purpose  I have decided to create a sub folder called “sub” under ~/Videos/motion ( ~/Videos/motion/sub) to copy selected the latest video clip in to it. Then an Ubuntu script file was prepared to do the above two steps I have tried two methods in two alternative script files successfully ,where the details are appended below. The script files were placed at ~/Documents folder of the computer Method 1 Name of the file mewinu.sh Scripts in mewinu.sh are listed be...

How to make a script program to Auto-upload Motion Detection videos of Motion Linux to free ftp server DriveHQ , using Rclone and get email alerts on Ubuntu 19.04

Image
It is assumed that the Motion Linux is installed on the Linux PC Please refer my blog on “ How to use Motion Linux 4.2.2-1 to create a CCTV system on Ubuntu 18.10 , 64 bit with a Web Cam and Hikvision IP Cam ” to get the details of installing Motion Linux A brief introduction of main  activities in this tutorial is given below. To  upload motion detection events , immediately after the occurrence , to the DriveHQ cloud , the Rclone software is used . For emailing the alert Mutt on Ubuntu is used The DriveHQ FileManager free  for Android is used to view uploaded video on the android phone The email messages  are viewed using  Aol app on the phone The following main software have to installed for above purpose Motion Linux Mutt Rclone Note :- The installation procedure of Motion Linux  and Mutt  has already being explained in detail  in the following blog post How to Email Motion Detection videos of Motion Linux( 3.2.2) using Mutt o...