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: Select all
#adduser mysql
Code: Select all
#adduser group
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: Select all
#/opt/lampp/xampp security
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: Select all
#cpan App::cpanminus
now to add the needed PERL mods:
Code: Select all
#cpanm DBD::mysql
Code: Select all
#cpanm Date::Manip
Code: Select all
#cpanm LWP::UserAgent
Code: Select all
#cpanm Sys::Mmap
Code: Select all
#cpanm Device::SerialPort
Code: Select all
#cpanm MIME::Entity
Code: Select all
#cpanm MIME::Lite
Code: Select all
#cpanm Net::SMTP
Code: Select all
#cd ~/ftpd
Code: Select all
#git clone https://github.com/ZoneMinder/zoneminder
Code: Select all
#cd zoneminder
Code: Select all
#git submodule init
Code: Select all
#git submodule update
I had to use this line while building ZoneMinder with tahr 6.0.5:
Code: Select all
#git submodule update --init --recursive
Code: Select all
#cmake -DZM_WEBDIR=/opt/lampp/htdocs/zm -DZM_WEB_USER=daemon -DZM_WEB_GROUP=daemon -DZM_CGIDIR=/opt/lampp/cgi-bin ./
Code: Select all
#make
Code: Select all
#make install
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: Select all
#mkdir /opt/lampp/htdocs/zm/events
Code: Select all
#mkdir /opt/lampp/htdocs/zm/images
Code: Select all
#mkdir /var/log/zm
Code: Select all
#mkdir /var/run/zm
Code: Select all
#chown -R daemon:daemon /opt/lampp/htdocs
Code: Select all
#chown -R daemon:daemon /var/log/zm
/var/run/mysqld/mysqld.sock for ZoneMinder to communicate with the MySQL server:
Code: Select all
#mkdir /var/run/mysqld
Code: Select all
#ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock
deleted and replaced with a symlink /opt/lampp/lib/libstdc++.so.6 target=/usr/lib/libstdc++.so.6.0.19
Code: Select all
#rm /opt/lampp/lib/libstdc++.so.6
Code: Select all
#ln -s /usr/lib/libstdc++.so.6.0.19 /opt/lampp/lib/libstdc++.so.6
then in terminal:
Code: Select all
#/opt/lampp/xampp start
Code: Select all
#zoneminder start
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.