Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 10 Feb 2016, 00:49
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How To Build ZoneMinder 1.28.109 on an XAMPP stack
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
rockedge


Joined: 11 Apr 2012
Posts: 120
Location: Connecticut, United States

PostPosted: Fri 18 Dec 2015, 23:27    Post subject:  How To Build ZoneMinder 1.28.109 on an XAMPP stack
Subject description: Using Tahr 6.0.3 CE or 6.0.5 CE and XAMPP 5.6.3-0
 

These are the general steps needed to build a working ZoneMinder 1.28.109
on top of an XAMPP 5.6.3-0 stack. All based on a Puppy Linux Tahr 6.0.3 CE operating system.
frugal install.


These files are needed and can be downloaded using the links provided

tahr-6.0.2_noPAE.iso

devx_tahr_6.0.2.sfs

XAMPP 5.6.3-0

libmysqlclient-dev_5.5.46-0ubuntu.12.04.2_i386.deb

libpolkit-gobject-1-dev_0.104-1ubuntu1.1_i386.deb

zoneminder

zmfix.sh


Start with a fresh install of Tahr 6.0.2 CE. Update to service pack 3
using quickpet or the PPM.

Using SFS-Load-on-the-fly install the devx_tahr_6.0.2.sfs

create save folder/file. ReBOOT

give XAMPP 5.6.3-0-run permissions to execute. Then add these 2 users:

Code:
#adduser mysql

Code:
#adduser group


install XAMPP 5.6.3-0 ( this step can be much more involved. the php.ini can be modified to the correct time zone
and other parameters. Also the XAMPP security system can be over-ridden by modifing
/opt/lampp/etc/extra/httpd-xampp.conf in the bottom most <Location>. ).

Add XAMPP security by changing the passwords with :
Code:
#/opt/lampp/xampp security


install libmysqlclient-dev_5.5.46-0ubuntu.12.04.2_i386.deb and
libpolkit-gobject-1-dev_0.104-1ubuntu1.1_i386.deb

Needed now are the PERL modules needed for ZM compile.

open a terminal and type:

Code:
#cpan App::cpanminus

answer YES to both prompts and allow install.

now to add the needed PERL mods:

Code:
#cpanm DBD::mysql

Code:
#cpanm Date::Manip

Code:
#cpanm LWP::UserAgent

Code:
#cpanm Sys::Mmap

Code:
#cpanm Device::SerialPort


these are for the email functions:

Code:
#cpanm MIME::Entity

for the newer email function:
Code:
#cpanm MIME::Lite

Code:
#cpanm Net::SMTP


Now to prepare to compile ZoneMinder. I used the ftpd directory for this part.


Code:
#cd ~/ftpd

Code:
#git clone https://github.com/ZoneMinder/zoneminder

Code:
#cd zoneminder

Code:
#git submodule init

Code:
#git submodule update


I had to use this line while building ZoneMinder with tahr 6.0.5:
Code:
#git submodule update --init --recursive


Start the compile of ZM:

Code:
#cmake -DZM_WEBDIR=/opt/lampp/htdocs/zm -DZM_WEB_USER=daemon -DZM_WEB_GROUP=daemon -DZM_CGIDIR=/opt/lampp/cgi-bin ./

Code:
#make

Code:
#make install


IMPORTANT: using http://localhost/phpmyadmin
add mysql user "zmuser" with "zmpass" as the password.
create a database called "zm"
import ~/ftpd/zoneminder/db/zm_create.sql
close phpmyadmin

It is important now to decide where the events and images directories will be stored.
It is possible for example to store the data outside of the Puppy Linux frugal file system
and save event data to another partition. I use symlinks to a ext2 partition and an event & images directory.
In this how-to I use the default location.

For now open terminal and type:

Code:
#mkdir /opt/lampp/htdocs/zm/events

Code:
#mkdir /opt/lampp/htdocs/zm/images

Code:
#mkdir /var/log/zm

Code:
#mkdir /var/run/zm

Code:
#chown -R daemon:daemon /opt/lampp/htdocs

Code:
#chown -R daemon:daemon /var/log/zm


IMPORTANT: there must be a symlink for the /opt/lampp/run/mysql/mysql.sock in a directory
/var/run/mysqld/mysqld.sock for ZoneMinder to communicate with the MySQL server:

Code:
#mkdir /var/run/mysqld

Code:
#ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock


IMPORTANT: the symlink /opt/lampp/lib/libstdc++.so.6 ( target = /opt/lampp/lib/libstdc++.6.0.8 ) must be
deleted and replaced with a symlink /opt/lampp/lib/libstdc++.so.6 target=/usr/lib/libstdc++.so.6.0.19

Code:
#rm /opt/lampp/lib/libstdc++.so.6

Code:
#ln -s /usr/lib/libstdc++.so.6.0.19 /opt/lampp/lib/libstdc++.so.6


copy zoneminder and zmfix.sh script to ~/my-applications/bin

then in terminal:
Code:
#/opt/lampp/xampp start

Code:
#zoneminder start


Apache, MySQL and ZoneMinder should be started and running.

http://localhost/zm

IMPORTANT: To get the streams to run,
change in Options->Paths->PATH_ZMS from PATH_ZMS = /cgi-bin/nph-zms TO PATH_ZMS = /cgi-bin/zms

Check the ownership of the a local camera like /dev/video0, should be daemon if a local camera will not start.

Last edited by rockedge on Tue 22 Dec 2015, 11:04; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 120
Location: Connecticut, United States

PostPosted: Sat 19 Dec 2015, 22:15    Post subject:  

I have used the above instructions to successfully build a working ZoneMinder on the new release of Tahr 6.0.5 using devx-6.0.5.sfs.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0470s ][ Queries: 11 (0.0038s) ][ GZIP on ]