ZoneMinder 1.30.2 as an SFS for Tahr 6.0.5 and Tahr 6.0.6

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

ZoneMinder 1.30.2 as an SFS for Tahr 6.0.5 and Tahr 6.0.6

#1 Post 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
Last edited by rockedge on Sun 26 Mar 2017, 02:39, edited 15 times in total.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#2 Post 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

Code: Select all

#cpan App::cpanminus
reply yes to both queries. and when finished in a terminal ->

Code: Select all

#cpanm X10::ActiveHome
Last edited by rockedge on Sat 25 Mar 2017, 01:04, edited 6 times in total.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#3 Post 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.
Last edited by rockedge on Sun 26 Mar 2017, 03:15, edited 10 times in total.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#4 Post by rockedge »

refer to first post.
Last edited by rockedge on Sat 25 Mar 2017, 01:07, edited 1 time in total.

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#5 Post by corvus »

Hi rockedge, very interesting, I followed your tutorial with little hope it would work because I have Tahr64-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. :)
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#6 Post 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

Code: Select all

#cpanm DBI
it looks like the PERL module DBI is missing in your system.

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#7 Post 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.
rockedge wrote: try this

Code: Select all

#cpanm DBI
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
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#8 Post 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.....

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#9 Post 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. :D
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#10 Post by rockedge »

your welcome. Good work on getting it going :D

Post Reply