Something I've been meaning to do for some time now is an updated howto for Slackware. I wrote this for is Slackware 12.2 and Zoneminder 1.24 specifically. I can't say for sure, but I suspect that with a little bit of "tweaking" these instructions may be enough to get Zoneminder 1.23.3 running on Slackware 12.2.
*** Caveat - Should you choose to follow my directions and something breaks "you own all of the pieces".
Hope it helps.
Installing ZM 1.24 on Slackware 12.2 - howto
Get a Slackware 12.2 system installed. -
Download the dvd from somewhere, burn it and boot it.
login and create your disk partitions by running fdisk
run set up and install the system (I'm lazy, so I choose install everything.)
Be sure to enable httpd and mysqld.
reboot and then login.
Edit /etc/httpd/httpd.conf and fix up apache by setting a hostname, enabling php and adding a virtual host.
Edit /etc/httpd/php.ini and change short_open_tag to on.
Copy one of the /etc/my-*.cnf files to /etc/my.cnf and edit as (if) required.
set up mysql databases with -
start mysqld - (needs to be running for perl tests)
update perl and install any dependencies - (make life easy and accept all of the defaults. Did I mention that I'm lazy?)
install ffmpeg dependencies -
go to http://darkstar.ist.utl.pt/slackware/ad ... ware-12.2/ , find, download and install the following - (they are all within 2 or 3 directories)
amrnb-7.0.0.2-i486-2as.tgz
amrwb-7.0.0.3-i486-2as.tgz
dirac-1.0.0-i486-2as.tgz
faac-1.26-i486-4sl.tgz
faad2-2.6.1-i486-5sl.tgz
imlib2-1.4.2-i486-3sl.tgz
lame-3.98.2-i486-2sl.tgz
libdc1394-2.1.0-i486-1sl.tgz
libgsm-1.0.12-i686-4as.tgz
libnut-20081213-i686-1as.tgz
libusb1-1.0.0-i486-1as.tgz
schroedinger-1.0.5-i486-1as.tgz
speex-1.2rc1-i486-2dav.tgz
x264-20090107-i486-1as.tgz
xvidcore-1.2.1-i486-2sl.tgz
Install ffmpeg - on the same site you pulled the previous files from, in the multimedia directory, find the ffmpeg directory, go into the src dir and get these 2 files
ffmpeg.SlackBuild
doinst.sh
then source the install file -
which will download the latest svn, build it and create an installable .tgz. Install it once done.
If you want XAWTV for setting up and testing hardware (recommended) -
Download, build and install (read the included docs)
tv-fonts-1.1.tar.bz2
zvbi-0.2.33.tar.bz2
xawtv-20070625-114215.tar.gz
when configuring zvbi and xawtv use the options --prefix=/usr and --sysconfdir=/etc
download either ZM 1.23.3 or ZM 1.24 (hold off on 1.24 yet for production systems)
untar and cd into the zm-"version" directory and run -
then look through "configured_this" and if you are satisfied that all is good, run
then look through "built_this" and if you are satisfied that you got a clean build
run
or if you'd prefer to do a test run on make install, run
look over install_this and if you are happy with what you see, then run make install
while in the zm-"version" directory run -
and then run
set a root password for mysql and lock it down. run the following -
run
and finally
You're done.
Download the dvd from somewhere, burn it and boot it.
login and create your disk partitions by running fdisk
run set up and install the system (I'm lazy, so I choose install everything.)
Be sure to enable httpd and mysqld.
reboot and then login.
Edit /etc/httpd/httpd.conf and fix up apache by setting a hostname, enabling php and adding a virtual host.
Edit /etc/httpd/php.ini and change short_open_tag to on.
Copy one of the /etc/my-*.cnf files to /etc/my.cnf and edit as (if) required.
set up mysql databases with -
Code: Select all
mysql_install_db --user=mysql
Code: Select all
/etc/rc.d/rc.mysqld start
Code: Select all
perl -MCPAN -e shell
install MD5
install Bundle::CPAN
reload cpan
install LWP::UserAgent
install Date::Manip
install MIME::Lite
install MIME::Entity
install DBD::mysql
install Sys::Mmap
install X10::ActiveHome
install PHP::Serialization
install Module::Load
go to http://darkstar.ist.utl.pt/slackware/ad ... ware-12.2/ , find, download and install the following - (they are all within 2 or 3 directories)
amrnb-7.0.0.2-i486-2as.tgz
amrwb-7.0.0.3-i486-2as.tgz
dirac-1.0.0-i486-2as.tgz
faac-1.26-i486-4sl.tgz
faad2-2.6.1-i486-5sl.tgz
imlib2-1.4.2-i486-3sl.tgz
lame-3.98.2-i486-2sl.tgz
libdc1394-2.1.0-i486-1sl.tgz
libgsm-1.0.12-i686-4as.tgz
libnut-20081213-i686-1as.tgz
libusb1-1.0.0-i486-1as.tgz
schroedinger-1.0.5-i486-1as.tgz
speex-1.2rc1-i486-2dav.tgz
x264-20090107-i486-1as.tgz
xvidcore-1.2.1-i486-2sl.tgz
Install ffmpeg - on the same site you pulled the previous files from, in the multimedia directory, find the ffmpeg directory, go into the src dir and get these 2 files
ffmpeg.SlackBuild
doinst.sh
then source the install file -
Code: Select all
. ./ffmpeg.SlackBuild
which will download the latest svn, build it and create an installable .tgz. Install it once done.
If you want XAWTV for setting up and testing hardware (recommended) -
Download, build and install (read the included docs)
tv-fonts-1.1.tar.bz2
zvbi-0.2.33.tar.bz2
xawtv-20070625-114215.tar.gz
when configuring zvbi and xawtv use the options --prefix=/usr and --sysconfdir=/etc
download either ZM 1.23.3 or ZM 1.24 (hold off on 1.24 yet for production systems)
untar and cd into the zm-"version" directory and run -
Code: Select all
./configure --with-webdir=/var/www/htdocs --with-cgidir=/srv/httpd/cgi-bin \
--prefix=/usr --sysconfdir=/etc > configured_this 2>&1
Code: Select all
make > built_this 2>&1
run
Code: Select all
make install
Code: Select all
make -n install > install_this 2>&1
while in the zm-"version" directory run -
Code: Select all
mysql
> source db/zm_create.sql
> use mysql;
> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
> quit;
Code: Select all
mysqladmin reload
run
Code: Select all
mysql_secure_installation
Code: Select all
cp scripts/zm /etc/rc.d/rc.zm
chmod a+x /etc/rc.d/rc.zm
Last edited by nuck on Thu Feb 19, 2009 6:33 am, edited 1 time in total.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
First goes a 'Thank you' to nuck for this HowTo.
Cheers,
Grischuna
Orlandold, I have used this guide and it works for me on Slackware 13. I had to increase the shmmax to see the monitor but this info you can find easily in this forum.orlandold wrote:Will this instructions work with slackware 13? Anybody has any experience/recommendations in setting up a slackware 13 zoneminder box?
thanks,
Cheers,
Grischuna
Is there something special you have to do if you are install zoneminder on Slackware 12 where you are using virtual hosts?
I followed your guide and have a problem with streaming video. Zoneminder is recoding movement, also I'm able to generate a video and view it. But streaming the live video does not work.
I followed your guide and have a problem with streaming video. Zoneminder is recoding movement, also I'm able to generate a video and view it. But streaming the live video does not work.