Obsolete Releases > SME 8.x Contribs

Zoneminder on SME 8 b7

(1/9) > >>

Shilotsugu:
Hi,
I'd like to get ZoneMinder up and running on my 8b7 server with a minimal of hassle and hunting around for packages. There are many older topics with people running zm, but are pretty spare in details when it comes to what steps were actually done. In the most recent thread I could find (http://forums.contribs.org/index.php?topic=48115.0), someone had installed dependencies manually, it was suggested that it could be done with yum.

However, this is the result when I tried:


--- Code: ---# yum --enablerepo=sme7contribs --enablerepo=smecontribs install smeserver-zoneminder
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.san.fastserv.com
 * sme7contribs: distro.ibiblio.org
 * smeaddons: distro.ibiblio.org
 * smecontribs: distro.ibiblio.org
 * smeextras: distro.ibiblio.org
 * smeos: distro.ibiblio.org
 * smeupdates: distro.ibiblio.org
 * updates: mirrors.kernel.org
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
No package smeserver-zoneminder available.
Nothing to do

--- End code ---

What am I missing? I'm about to try the manual route, but the setup.txt on http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/ suggests other packages that are not found there.

As long as I'm asking for ponies, it would be nice if someone familiar with the process update the wiki.

Thanks

janet:
Shilotsugu

OK I went looking for you and searched the forums on zoneminder (which you could have done) and came up with the following.
I actually searched the forums on zoneminder and the author sognenovski for more specific results re these packages

smeserver-zoneminder is not in the smecontribs repo, the advice of cactus in 
http://forums.contribs.org/index.php/topic,48115.msg238558.html#msg238558
appears to be incorrect

You need to manually download or wget the zoneminder and smeserver-zoneminder packages to an empty folder on your sme server
from
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/

To get other dependencies you will need to enable other repos, ie the repos where those dependencies are available eg
dag and/or others, (some investigation or experimentation may be required to ascertain which repos have the dependency packages you require)
refer to wiki for how to do this ie
http://wiki.contribs.org/Category:Yum_Repository

Following this as a guide
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/zoneminder_setup.txt

This worked on a sme7.5.1 box

Setup the dag repository
http://wiki.contribs.org/Dag

I did this basic install of the two main packages, but others are needed, see this forum post
http://forums.contribs.org/index.php/topic,38451.0.html

The following needs to be expanded as per above thread, no more time at present to go further with this just now.

login as root
then do
mkdir -p /opt/zoneminder
cd /opt/zoneminder
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/zoneminder-1.22.3-9.el4.sme.i386.rpm
ls -al
(to check files have been downloaded)

yum localinstall smeserver-zoneminder* zoneminder* --enablerepo=dag

You should see
--> Processing Dependency: perl(Device::SerialPort) for package: zoneminder
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-Device-SerialPort to pack into transaction set.
perl-Device-SerialPort-1. 100% |=========================| 6.7 kB    00:00
---> Package perl-Device-SerialPort.i386 0:1.003001-1.el4.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 smeserver-zoneminder    noarch     0.1-4.el4.sme    smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm   18 k
 zoneminder              i386       1.22.3-9.el4.sme  zoneminder-1.22.3-9.el4.sme.i386.rpm  4.0 M
Installing for dependencies:
 perl-Device-SerialPort  i386       1.003001-1.el4.rf  dag                95 k

Transaction Summary
=============================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 4.1 M
Is this ok [y/N]:

Followed by
signal-event post-upgrade
signal-event reboot

That should get you going.
Depending what other packages and modules you want to install will determine what happens next, but the basic idea will be the same as above.
Note there are issues with the bttv packages, you require the correct kernel-module-bttv package for the kernel version you are running, so "someone" will need to recompile those as each new kernel is released. The ones on the download link are very old.

I'm not sure whether some of the above "issues" are automatically resolved when using sme8, so let us know how you go and a wiki article can be created.
It will need a maintainer though to build the new modules whenever a kernel update occurs, unless they can be obtained from elsewhere on the Internet.

I suggest you read thoroughly all of these threads (all pages) for setup tips and usage advice etc

http://forums.contribs.org/index.php/topic,35600.0.html
and
http://forums.contribs.org/index.php/topic,38708.msg175683.html#msg175683
and
http://forums.contribs.org/index.php/topic,38451.0.html

Probably this thread is the most useful (read all pages for good install & usage info)
http://forums.contribs.org/index.php/topic,38451.0.html
It seems to have the "latest" install info, so the above steps could be modified accordingly.

janet:
Shilotsugu

From here
http://forums.contribs.org/index.php/topic,38451.msg186058.html#msg186058

Download these rpms to an empty folder on your sme server

mkdir -p /opt/zoneminder
cd /opt/zoneminder
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/zoneminder-1.22.3-9.el4.sme.i386.rpm
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/bttv-0.9.15-3.sme.i686.rpm
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder/smeserver-modprobe-bttv-1.0-02.noarch.rpm

check all files have been downloaded
ls -al

cd to that folder and do
yum --enablerepo=dag localinstall *.rpm

enabling the dag repo will allow yum to also install any dependencies including the perl-Device-SerialPort dependency rpm

yum localinstall smeserver-zoneminder* zoneminder* --enablerepo=dag

Note on a sme 7.5.1 this rpm mentioned in the earlier zoneminder posts is already installed
[root@master ~]# rpm -q perl-MIME-Lite
perl-MIME-Lite-3.027-1.el4.rf

Also the current kernel  (on sme7.5.1) is
[root@master ~]# uname -r
2.6.9-89.31.1.EL

So the kernel-module-bttv package is wrong and needs to be recompiled or obtained elsewhere
Google found these
http://www.google.com.au/search?q=kernel-module-bttv-2.6.9-89.31.1&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

*****

ls -al
total 1588
drwxr-xr-x  2 root root    4096 May  6 13:30 .
drwxr-xr-x  3 root root    4096 May  6 13:28 ..
-rw-r--r--  1 root root   28823 Mar  5  2008 bttv-0.9.15-3.sme.i686.rpm
-rw-r--r--  1 root root  110163 Mar  5  2008 kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm
-rw-r--r--  1 root root    3321 Mar  5  2008 smeserver-modprobe-bttv-1.0-02.noarch.rpm
-rw-r--r--  1 root root   11832 Mar  5  2008 smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
-rw-r--r--  1 root root 1446230 Mar  5  2008 zoneminder-1.22.3-9.el4.sme.i386.rpm


yum --enablerepo=dag localinstall *.rpm
Loading "protect-packages" plugin
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Setting up Local Package Process
Examining bttv-0.9.15-3.sme.i686.rpm: bttv - 0.9.15-3.sme.i686
Examining kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm: kernel-module-bttv-2.6.9-67.0.1.ELsmp - 0.9.15-4.sme.i686
Examining smeserver-modprobe-bttv-1.0-02.noarch.rpm: smeserver-modprobe-bttv - 1.0-02.noarch
Examining smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm: smeserver-zoneminder - 0.1-4.el4.sme.noarch
Examining zoneminder-1.22.3-9.el4.sme.i386.rpm: zoneminder - 1.22.3-9.el4.sme.i386
Marking bttv-0.9.15-3.sme.i686.rpm to be installed
Marking kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm to be installed
Marking smeserver-modprobe-bttv-1.0-02.noarch.rpm to be installed
Marking smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm to be installed
Marking zoneminder-1.22.3-9.el4.sme.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package zoneminder.i386 0:1.22.3-9.el4.sme set to be updated
---> Package smeserver-modprobe-bttv.noarch 0:1.0-02 set to be updated
---> Package kernel-module-bttv-2.6.9-67.0.1.ELsmp.i686 0:0.9.15-4.sme set to be updated
---> Package bttv.i686 0:0.9.15-3.sme set to be updated
---> Package smeserver-zoneminder.noarch 0:0.1-4.el4.sme set to be updated
--> Running transaction check
Setting up repositories
smeaddons                 100% |=========================| 2.3 kB    00:00
smeextras                 100% |=========================| 2.3 kB    00:00
dag                       100% |=========================| 1.9 kB    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
smeos                     100% |=========================| 2.3 kB    00:00
smeupdates                100% |=========================| 2.3 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from Dag - EL4
Finished
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Excluding Packages from Dag - EL4
Finished
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
--> Processing Dependency: perl(Device::SerialPort) for package: zoneminder
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package perl-Device-SerialPort.i386 0:1.003001-1.el4.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 bttv                    i686       0.9.15-3.sme     bttv-0.9.15-3.sme.i686.rpm   63 k
 kernel-module-bttv-2.6.9-67.0.1.ELsmp  i686       0.9.15-4.sme     kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm  348 k
 smeserver-modprobe-bttv  noarch     1.0-02           smeserver-modprobe-bttv-1.0-02.noarch.rpm   755
 smeserver-zoneminder    noarch     0.1-4.el4.sme    smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm   18 k
 zoneminder              i386       1.22.3-9.el4.sme  zoneminder-1.22.3-9.el4.sme.i386.rpm  4.0 M
Installing for dependencies:
 perl-Device-SerialPort  i386       1.003001-1.el4.rf  dag                95 k

Transaction Summary
=============================================================================
Install      6 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 4.5 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
  Installing: perl-Device-SerialPort       ######################### [1/6]
  Installing: zoneminder                   ######################### [2/6]
You can access zoneminder at http://yoursite/zm and it requires admin/adminpassword to log in.
  Installing: smeserver-zoneminder         ######################### [3/6]
Starting zoneminder: [FAILED]
  Installing: kernel-module-bttv-2.6.9-67. ######################### [4/6]
  Installing: smeserver-modprobe-bttv      ######################### [5/6]
Stopping zoneminder: [  OK  ]
ERROR: Module bttv does not exist in /proc/modules
Attempting to modprobe bttv card=77 tuner=4

done.

Starting zoneminder: [  OK  ]

Edit card number at /etc/e-smith/events/local/90modprobe-bttv

  Installing: bttv                         ######################### [6/6]
Migrating existing database yum_updates
Migrating existing database hosts
Migrating existing database backups
Migrating existing database mailpatterns
Migrating existing database accounts
Migrating existing database yum_repositories
Migrating existing database networks
Migrating existing database domains
Migrating existing database yum_available
Migrating existing database spamassassin
Migrating existing database yum_installed
Migrating existing database configuration

Installed: bttv.i686 0:0.9.15-3.sme kernel-module-bttv-2.6.9-67.0.1.ELsmp.i686 0:0.9.15-4.sme smeserver-modprobe-bttv.noarch 0:1.0-02 smeserver-zoneminder.noarch 0:0.1-4.el4.sme zoneminder.i386 0:1.22.3-9.el4.sme
Dependency Installed: perl-Device-SerialPort.i386 0:1.003001-1.el4.rf
Complete!

==============================================================
WARNING: You now need to run BOTH of the following commands
to ensure consistent system state:

signal-event post-upgrade; signal-event reboot

janet:
Shilotsugu

This post has a how for the bttv rebuild

http://forums.contribs.org/index.php/topic,35600.msg174282.html#msg174282

janet:
Shilotsugu

If of any use, all the old sognenovski files relating to zoneminder are here
https://sites.google.com/site/repository999/zoneminder

Some of the dependency rpms are here
https://sites.google.com/site/repository999/zoneminder/rpms

Navigation

[0] Message Index

[#] Next page

Go to full version