Page 1 of 1
ZoneMinder 1.30.2 as an SFS for Tahr 6.0.5 and Tahr 6.0.6
Posted: Sun 19 Mar 2017, 13:28
by rockedge
I have successfully created a ZoneMinder version 1.30.2 as an SFS.
this is the version with 2 SFS files which together contain ->
Hiawatha v10.5
mysql-server 5.5.54-0ubuntu0.14.04.1 - (Ubuntu)
Database client version: libmysql - 5.5.54
PHP version: 5.5.9-1ubuntu4.21
phpMyAdmin 4.6.5.2
zoneminder_1.30.2-trusty-2017021001_i386
the Hserver-mysql-v3.sfs can run stand alone as a fully functional web server.
A link to a version containing all the components is posted below
UPDATE 23/03/2017
The Hiawatha Server, MySQL, PHP5 and phpmyadmin ->
Hserver-mysql-v3.sfs
the ZoneMinder component ->
azmbuild5.sfs
The devx-tahr-6.0.6.sfs (or 6.0.5 ) must be loaded
Instructions (23/03/2017) :
Load "Hserver-mysql-v3.sfs"
Code: Select all
killall hiawatha
hiawathaSFS
mysql_install_db --user=webuser
open second terminal
Code: Select all
mysqld
/usr/bin/mysql_secure_installation
user = root
password = admin
login to
http://localhost/phpmyadmin ->
create user = "pma" localhost "admin"
global permissions
create user = "zmuser" localhost "zmpass"
global permissions
create database "phpmyadmin"
import /var/share/phpmyadmin/sql/create_tabels.sql
Load azmbuild5.sfs using SFS-Load
login to
http://localhost/phpmyadmin ->
create a database "zm"
import /var/share/zoneminder/db/zm_create.sql
http://localhost/zm
Posted: Tue 21 Mar 2017, 03:17
by rockedge
**missing PERL libraries added to azmbuild5.sfs
For X10 option to function this PERL module must be added by following these steps ->
open a terminal
reply yes to both queries. and when finished in a terminal ->
Posted: Tue 21 Mar 2017, 13:10
by rockedge
All passwords and users can be modified once ZM is running.
This version contains the entire system in a single SFS file.
Use the same instructions that are in the first post.
zoneminder_server_1.30.2.sfs ----
81 M
Good Luck! and any results posted will be appreciated.
Posted: Tue 21 Mar 2017, 14:40
by rockedge
refer to first post.
Posted: Tue 21 Mar 2017, 19:16
by corvus
Hi rockedge, very interesting, I followed your tutorial with little hope it would work because I have Tahr
64-6.0.5 (my 32-bit laptop broke definitely few weeks ago) below the output of "/etc/init.d/zoneminder status":
Code: Select all
root# /etc/init.d/zoneminder status
Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: wrong ELF class: ELFCLASS32 at /usr/lib/perl/5.18/DynaLoader.pm line 184.
at /usr/lib/perl5/DBI.pm line 278.
BEGIN failed--compilation aborted at /usr/lib/perl5/DBI.pm line 278.
Compilation failed in require at /usr/share/perl5/ZoneMinder/Config.pm line 89.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 89.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 48.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
ZoneMinder is stopped
any chance to have a 64bit version?
rockedge wrote:
open /etc/my.conf and replace the line:
Did you mean:
open /etc/mysql/my.cnf because I do not have /etc/my.conf.
Thanks for your work and for introducing me to this interesting software.
Posted: Tue 21 Mar 2017, 19:45
by rockedge
The libraries I used are 32 bit so I will make a 64bit once I have this version working smoothly. Thanks for trying it out!
I have uploaded a new version of azmbuild.sfs.
It should run in 64bit I think. Do you have the devx for the 64bit loaded?
try this
it looks like the PERL module DBI is missing in your system.
Posted: Tue 21 Mar 2017, 21:40
by corvus
rockedge wrote:
It should run in 64bit I think. Do you have the devx for the 64bit loaded?
Yes, I followed your instructions step by step.
I did but nothing has changed.
rockedge wrote:
it looks like the PERL module DBI is missing in your system.
The PERL module exist but its with wrong ELF class so I downloaded
libdbd-mysql-perl_4.025-1ubuntu0.1_amd64.deb and now "/etc/init.d/zoneminder status" shows me the following error:
Code: Select all
root# /etc/init.d/zoneminder status
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' to database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 102.
Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 129.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 48.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
ZoneMinder is stopped
Regards
Posted: Tue 21 Mar 2017, 21:53
by rockedge
ZM is not connecting to the database it appears. are the user name and password created in mysql? user=zmuser. password= zmpass with global perrmissions. check the /etc/zm/zm.conf to see if the mysql user matches?
it looks. close to running.....
Posted: Tue 21 Mar 2017, 22:32
by corvus
rockedge wrote:user=zmuser. password= zmpass with global perrmissions.
Not mencioned before, now with global permissions set.
I also had to install
libsys-mmap-perl_0.16-1build2_amd64.deb.
rockedge wrote:it looks. close to running.....
You're right rockedge, now everything works perfectly, thanks for your time and help.
Posted: Tue 21 Mar 2017, 22:37
by rockedge
your welcome. Good work on getting it going