Koozali.org: home of the SME Server

ZoneMinder ftp Gone

philippe971

ZoneMinder ftp Gone
« Reply #15 on: May 17, 2007, 08:40:12 PM »
installation sur sme 7.1.3
mysql 5.0.27
php 5.1.6

Code: [Select]
mkdir -p /usr/src/redhat/SOURCES/ZM
cd /usr/src/redhat/SOURCES/ZM
db yum_repositories set gswallow repository \
 BaseURL http://mirror.contribs.org/smeserver/contribs/gswallow/sme7/addons-testing/zoneminder/ \
 EnableGroups no \
 GPGCheck no \
 Name 'gswallow' \
 Visible no \
 status disabled
/sbin/e-smith/expand-template /etc/yum.conf
yum -y --enablerepo=gswallow install ffmpeg ffmpeg-devel
yum -y install mysql-devel libjpeg-devel perl-Archive-Tar gcc gcc-c++ pcre-devel perl-MIME-tools subversion  \
--disablerepo=*  \
--enablerepo=base  \
--enablerepo=updates  \
--enablerepo=centosplus  \
--enablerepo=smeos  \
--enablerepo=smeupdates \
--enablerepo=smeaddons
wget http://public.planetmirror.com/pub/zoneminder/downloads/ZoneMinder-1.22.3.tar.gz
gzip -d ZoneMinder-1.22.3.tar.gz && tar -xvf ZoneMinder-1.22.3.tar
cd /usr/src/redhat/SOURCES/ZM/ZoneMinder-1.22.3
rpm -ivh http://mirror.contribs.org/smeserver/contribs//jbennett/sme7/lat/smeserver-lazy_admin_tools-0.9.1-2.noarch.rpm
lat-ibays -a -c "zoneminder|zoneminder|admin|wr-group-rd-everyone|global||enabled|"
rm -rf /home/e-smith/files/ibays/zoneminder/html/index.html
./configure  \
--with-webdir=/home/e-smith/files/ibays/zoneminder/html  \
--with-cgidir=/home/e-smith/files/ibays/zoneminder/cgi-bin  \
--with-ffmpeg=/usr/bin  \
--with-webuser=www  \
--with-webgroup=www  \
ZM_DB_HOST=localhost  \
ZM_DB_NAME=zm  \
ZM_DB_USER=zmadminbase  \
ZM_DB_PASS=zmpassbase
make && make install
mysql
CREATE DATABASE `zm` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT SELECT, UPDATE, INSERT, DELETE ON zm.* TO 'zmadminbase'@'localhost' IDENTIFIED BY 'zmpassbase';
FLUSH PRIVILEGES;
quit;
mysql zm < /usr/src/redhat/SOURCES/ZM/ZoneMinder-1.22.3/db/zm_create.sql
mysql
UPDATE `zm`.`Config` SET `Value` = '/zoneminder/cgi-bin/nph-zms' WHERE CONVERT( `Config`.`Name` USING utf8 ) = 'ZM_PATH_ZMS' LIMIT 1 ;
quit;
cp /usr/src/redhat/SOURCES/ZM/ZoneMinder-1.22.3/scripts/zm /etc/init.d
ln -s  /etc/rc.d/init.d/zm /etc/rc.d/rc7.d/S99zm
chmod 775 /etc/rc.d/init.d/zm
chmod 775 /etc/rc.d/rc7.d/S99zm
db accounts setprop zoneminder PHPBaseDir /home/e-smith/files/ibays/zoneminder/:/tmp:/usr
signal-event ibay-modify zoneminder
cd /usr/src/redhat/SOURCES/ZM
wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz
tar xvfz cambozola-latest.tar.gz
cp /usr/src/redhat/SOURCES/ZM/cambozola-0.68/dist/cambozola.jar /home/e-smith/files/ibays/zoneminder/html
chown -R www:www /home/e-smith/files/ibays/zoneminder/html/cambozola.jar
chmod 775 /home/e-smith/files/ibays/zoneminder/html/cambozola.jar
/etc/init.d/zm start
yum -y remove *-devel cpp


cela fonctionne pour pour moi

Offline alefattorini

  • **
  • 61
  • +0/-0
  • www.nethserver.org
    • www.nethserver.org
ZoneMinder ftp Gone
« Reply #16 on: August 08, 2007, 11:44:11 AM »
I can't install, repo doesn't work
Can you help me?

Texasboy

Zoneminder is gone again
« Reply #17 on: August 10, 2007, 04:25:10 AM »
Has anybody worked on a replacement to gswallow? The repo is gone again. Anybody have instruction on how to load ZoneMinder from scratch?

Thanks

Texasboy

 8)

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Zoneminder is gone again
« Reply #18 on: August 10, 2007, 12:30:57 PM »
Quote from: "Texasboy"
Has anybody worked on a replacement to gswallow? The repo is gone again.
Use the dag repository for the ffmpeg stuff.

Trevor B

Offline gregswallow

  • *
  • 651
  • +1/-0
ZoneMinder ftp Gone
« Reply #19 on: August 10, 2007, 06:44:38 PM »
I'll put back the src rpms that were there, but the kernel modules were not up to date and if no one is going to build new ones for each new kernel, then it's pointless.  I don't want to contriubute to people being stuck at SME 7.1 and not able to upgrade.  This is a contrib that must be in CVS and have the kernel module rpms built with each new kernel for SME Server.

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
ZoneMinder ftp Gone
« Reply #20 on: August 11, 2007, 01:26:15 AM »
Quote from: "gregswallow"
I'll put back the src rpms that were there, but the kernel modules were not up to date and if no one is going to build new ones for each new kernel, then it's pointless.  I don't want to contriubute to people being stuck at SME 7.1 and not able to upgrade.  This is a contrib that must be in CVS and have the kernel module rpms built with each new kernel for SME Server.
Greg, my reading of the howto had only ffmpeg & ffmpeg-devel coming from your repositories.

The DAG repository has up-to-date versions of these for RHEL/Centos/etc., so I don't think you need to maintain them at all. I'd leave it to DAG.

Trevor B
PS. for those having trouble reading the wiki => Yum Repository

Offline gregswallow

  • *
  • 651
  • +1/-0
ZoneMinder ftp Gone
« Reply #21 on: August 12, 2007, 12:14:40 AM »
Present for you guys....  I rebuilt the Fedora 7 zoneminder rpm and made a smeserver-zoneminder rpm to replace all the hacks and howto above.  The rpms needed are in the same place as the old ones.  I don't use this, so can't really test if it works or not, or what cameras or capture cards are supported without adding kernel modules, but this is a much cleaner way to install zoneminder.  Let me know if it works - All I've tested is that I can access the zoneminder application.

guest22

ZoneMinder ftp Gone
« Reply #22 on: August 12, 2007, 12:29:53 PM »
Thank you Greg for doing this, especially since you don't even use zoneminder yourself! Am I right guys?

( http://mirror.contribs.org/smeserver/contribs/gswallow/sme7/addons-testing/zoneminder/ )

Works like a charm on 7.2 following the readme.

guest

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #23 on: September 02, 2007, 01:37:59 AM »
Ditto! Thanks Greg for the excellent platform to build on.

I’ve made some changes to zoneminder and smeserver-zoneminder rpms.
Many corrected zoneminder paths, directory locations and set-up zm database. For more details, see rpms.
 
how to
http://ftp.nluug.nl/os/Linux/distr/smeserver/contribs/sognenovski/Howto/

rpms
http://ftp.nluug.nl/os/Linux/distr/smeserver/contribs/sognenovski/RPMS/

Also, I’ve built bttv driver, - same location as above. I use an el cheapo 4 channel
card from ebay (Conexant Fusion chip) Working with 3 fps.

kernel-module-bttv-2.6.9-55.0.2.EL-0.9.15-1.sme.i686.rpm
smeserver-modprobe-bttv-1.0-01.noarch.rpm

The smeserver-modprobe-bttv rpm should modprobe bttv on reboot.
The default setting is card=77 tuner=1 (most common). You can edit this at
pico /etc/e-smith/events/local/90modprobe-bttv

Worth noting: removing smeserver-zoneminder rpm WILL drop the zm database. (Maybe I should change this…?)

Fairly green with all of this, please…use...test…server.

Enjoy
Steve
PS: its ffmpeg friendly to ;)

Offline fpausp

  • *
  • 728
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #24 on: September 10, 2007, 10:26:42 PM »
Hi,

I got a Problem after a yum update, my kernel now is 2.6.9-55.0.6.EL, the Source dev´s in zm /dev/video(0) - /dev/video(3) are red now.

I think it is the kernel-module-bttv..., how much work is that to bring them to 2.6.9-55.0.6.EL ?

I use an Brooktree Corporation Bt878 Video Capture (Hauppauge Impact VCB) Card.

I like to do that work but i don´t know how much and hard that is, can you explain that ?


regards
fpausp

Viribus unitis

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #25 on: September 10, 2007, 11:12:25 PM »
Yes, the problem points to kernel-module-bttv (I think).
Are you able to revert back to your previous kernel from start-up (grub screen)?

Running yum update now …I’ll have a closer look and rebuild the driver if needed.

This time I’ll take notes and post back.

Regards
Steve

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #26 on: September 11, 2007, 02:33:37 AM »
fpausp, after the update same problem :(

Present 1
As soon as the mirrors sync, I've rebuilt the bttv driver kernel-module-bttv-2.6.9-55.0.6.EL-0.9.15-2.sme.i686.rpm.
http://ftp.nluug.nl/os/Linux/distr/smeserver/contribs/sognenovski/RPMS/

Present 2 - without gift wrap ;)

bttv rebuild - howto

Never do this on a gateway box!
Login to your box with putty and update SME
# yum update

Set up your RPM development environment
http://smemirror.fullnet.co.uk/contribs/gordonr/devguide/html/x1435.htm

Set up 'yum' repositories and install gcc & gcc-c++
# db yum_repositories show centosplus
# db yum_repositories show base
# db yum_repositories setprop base status enabled
# db yum_repositories setprop base Visible yes
# db yum_repositories setprop centosplus Visible yes
# db yum_repositories setprop centosplus status enabled
# /sbin/e-smith/expand-template /etc/yum.conf
# yum install gcc gcc-c++

wget  the source rpm to a preferred directory
# wget  http://ftp.nluug.nl/os/Linux/distr/smeserver/contribs/sognenovski/SRPMS/bttv-0.9.15-2.sme.src.rpm

Install the source rpm
# rpm –Uvh bttv-0.9.15-2.sme.src.rpm

wget kernel-devel to a preferred directory
# wget http://mirror.anl.gov/pub/scientific-linux/40rolling/i386/apt/RPMS.updates/kernel-devel-2.6.9-55.0.6.EL.i686.rpm

Install kernel-devel
# yum localinstall kernel-devel-2.6.9-55.0.6.EL.i686.rpm

Do signal-event and log back in after reboot
# signal-event post-upgrade; signal-event reboot

Move to the rpm development environment SPECS directory
# cd ~/rpms/SPECS

Edit the spec, change the release number (ie: +1) and add the change log details. Save and exit
# pico bttv.spec

Build the rpm. A clean build should display 'exit 0' when finished
# rpmbuild -ba bttv.spec --target "$(uname -m)"

Move to rpm built directory
# cd ~/rpms/RPMS/i686

The fun part – install the new rpm
# yum localinstall *.rpm

and reboot for the changes
# reboot

Don’t forget to save the source, located @
# cd ~/rpms/SOURCE


Cheers
Steve
« Last Edit: September 11, 2007, 02:37:39 AM by sognenovski »

Offline fpausp

  • *
  • 728
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #27 on: September 11, 2007, 08:15:57 AM »
Hi Steve,

Thank you very much for the files and the howto !!!

regards
fpausp
Viribus unitis

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #28 on: September 29, 2007, 11:54:33 PM »
:-( news, there was a yum kernel update 2.6.9-55.0.9.EL

:-) news, kernel-module-bttv-2.6.9-55.0.9.EL-0.9.15-3.sme.i686.rpm

soon as the mirrors sync (use above link)

enjoy
Steve

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: ZoneMinder ftp Gone
« Reply #29 on: September 30, 2007, 12:36:46 AM »
...  slightly off the topic, ZoneMinder and SMS.
ZoneMinder sends a SMS and email notification when its in alarm state.

Heres an example of a SMS recieved
-----------------------------------------------------------
ZM alarm detected. Monitor kitchen, Event Id 43, Length 3.68, URL http://yoursite/zm?view=event&mode=stream&mid=1&eid=43
-----------------------------------------------------------

And the email for the same event with the image attached
-----------------------------------------------------------
An alarm has been detected on your installation of the ZoneMinder.

The details are as follows :-

  Filter: frames
  Monitor: kitchen
  Event Id: 43
  Duration: Motion: All
  Length: 3.68
  Frames: 68 (40)
  Total Score: 281
  Maximum Score: 9
  Average Score: 7
  Date Time: 2007-09-30 06:46:04
  Attached first alarmed event image.
  Attached (first) event image with the highest score.

This alarm was matched by the frames filter and can be viewed at http://yoursite/zm?view=event&mode=stream&mid=1&eid=43
-----------------------------------------------------------

I've made code changes in ZM rpm to support SMS. If there is interest, I'll kick off with a new topic.

Thx
Steve