Nux!


Home » Repos » Report a problem or request a package » ZoneMinder
ZoneMinder [message #110] Sat, 11 February 2012 11:24 Go to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
Nice project.Stella is my primary Desktop.
Can we have ZoneMinder?
Re: ZoneMinder [message #111 is a reply to message #110] Sat, 11 February 2012 11:48 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Hi,

Please post in the appropriate forum, thanks. Smile

Wrt zoneminder, we'll give it a try.

Re: ZoneMinder [message #112 is a reply to message #110] Sat, 11 February 2012 12:54 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Kleo,

Give it a try and let me know if it works:

yum --enablerepo=nux-dextop-testing install zoneminder


[Updated on: Sat, 11 February 2012 12:54]

Report message to a moderator

Re: ZoneMinder [message #113 is a reply to message #110] Sat, 11 February 2012 16:49 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
yum --enablerepo=nux-dextop-testing install zoneminder
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 16 kB 00:00
* Stella-Base: li.nux.ro
* base: mirror.nsc.liu.se
* elrepo: mirrors.coreix.net
* epel: mirror.pmf.kg.ac.rs
* extras: mirror.nsc.liu.se
* nux-dextop: li.nux.ro
* nux-libreoffice: li.nux.ro
* updates: centosn4.centos.org
Stella-Base | 2.6 kB 00:00
adobe-linux-x86_64 | 951 B 00:00
base | 3.7 kB 00:00
cr | 3.0 kB 00:00
elrepo | 1.9 kB 00:00
extras | 3.5 kB 00:00
google-earth | 951 B 00:00
home_heimdall78 | 1.3 kB 00:00
nux-dextop | 2.7 kB 00:00
nux-dextop-testing | 2.6 kB 00:00
nux-dextop-testing/primary_db | 12 kB 00:00
nux-libreoffice | 2.6 kB 00:00
symbianflo | 1.3 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zoneminder.x86_64 0:1.24.4-3.el6.nux will be installed
--> Processing Dependency: php-mysql for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: php for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(Sys::Mmap) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(Module::Load) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(MIME::Lite) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(MIME::Entity) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(Device::SerialPort) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(Date::Manip) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(DBI) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(DBD::mysql) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(Archive::Zip) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: perl(Archive::Tar) for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: httpd for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Processing Dependency: cambozola for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.el6.centos will be installed
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.x86_64
---> Package perl-Archive-Tar.x86_64 0:1.58-119.el6_1.1 will be installed
--> Processing Dependency: perl(IO::Zlib) for package: perl-Archive-Tar-1.58-119.el6_1.1.x86_64
--> Processing Dependency: perl(Package::Constants) for package: perl-Archive-Tar-1.58-119.el6_1.1.x86_64
---> Package perl-Archive-Zip.noarch 0:1.30-2.el6 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
---> Package perl-Date-Manip.noarch 0:6.24-1.el6 will be installed
--> Processing Dependency: perl(YAML::Syck) for package: perl-Date-Manip-6.24-1.el6.noarch
---> Package perl-Device-SerialPort.x86_64 0:1.04-5.el6 will be installed
---> Package perl-MIME-Lite.noarch 0:3.027-2.el6 will be installed
--> Processing Dependency: perl(MIME::Types) >= 1.28 for package: perl-MIME-Lite-3.027-2.el6.noarch
--> Processing Dependency: perl(Email::Date::Format) for package: perl-MIME-Lite-3.027-2.el6.noarch
--> Processing Dependency: perl(Mail::Address) for package: perl-MIME-Lite-3.027-2.el6.noarch
---> Package perl-MIME-tools.noarch 0:5.427-4.el6 will be installed
--> Processing Dependency: perl(IO::ScalarArray) >= 1.114 for package: perl-MIME-tools-5.427-4.el6.noarch
--> Processing Dependency: perl(Convert::BinHex) for package: perl-MIME-tools-5.427-4.el6.noarch
--> Processing Dependency: perl(IO::ScalarArray) for package: perl-MIME-tools-5.427-4.el6.noarch
--> Processing Dependency: perl(IO::Lines) for package: perl-MIME-tools-5.427-4.el6.noarch
--> Processing Dependency: perl(IO::InnerFile) for package: perl-MIME-tools-5.427-4.el6.noarch
---> Package perl-Module-Load.x86_64 1:0.16-119.el6_1.1 will be installed
---> Package perl-Sys-Mmap.x86_64 0:0.14-8.el6.nux will be installed
---> Package php.x86_64 0:5.3.3-3.el6_2.6 will be installed
--> Processing Dependency: php-cli = 5.3.3-3.el6_2.6 for package: php-5.3.3-3.el6_2.6.x86_64
--> Processing Dependency: php-common = 5.3.3-3.el6_2.6 for package: php-5.3.3-3.el6_2.6.x86_64
---> Package php-mysql.x86_64 0:5.3.3-3.el6_2.6 will be installed
--> Processing Dependency: php-pdo for package: php-mysql-5.3.3-3.el6_2.6.x86_64
---> Package zoneminder.x86_64 0:1.24.4-3.el6.nux will be installed
--> Processing Dependency: cambozola for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-3.el6_1.2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos will be installed
---> Package perl-Convert-BinHex.noarch 0:1.119-10.1.el6 will be installed
---> Package perl-Email-Date-Format.noarch 0:1.002-5.el6 will be installed
---> Package perl-IO-Zlib.x86_64 1:1.09-119.el6_1.1 will be installed
---> Package perl-IO-stringy.noarch 0:2.110-10.1.el6 will be installed
---> Package perl-MIME-Types.noarch 0:1.28-2.el6 will be installed
---> Package perl-MailTools.noarch 0:2.04-4.el6 will be installed
--> Processing Dependency: perl(Date::Format) for package: perl-MailTools-2.04-4.el6.noarch
--> Processing Dependency: perl(Date::Parse) for package: perl-MailTools-2.04-4.el6.noarch
---> Package perl-Package-Constants.x86_64 1:0.02-119.el6_1.1 will be installed
---> Package perl-YAML-Syck.x86_64 0:1.07-4.el6 will be installed
---> Package php-cli.x86_64 0:5.3.3-3.el6_2.6 will be installed
---> Package php-common.x86_64 0:5.3.3-3.el6_2.6 will be installed
---> Package php-pdo.x86_64 0:5.3.3-3.el6_2.6 will be installed
---> Package zoneminder.x86_64 0:1.24.4-3.el6.nux will be installed
--> Processing Dependency: cambozola for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Running transaction check
---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will be installed
---> Package zoneminder.x86_64 0:1.24.4-3.el6.nux will be installed
--> Processing Dependency: cambozola for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Finished Dependency Resolution
Error: Package: zoneminder-1.24.4-3.el6.nux.x86_64 (nux-dextop-testing)
Requires: cambozola
Re: ZoneMinder [message #114 is a reply to message #110] Sat, 11 February 2012 17:30 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Kleo,

Please try again now:

yum clean metadata ; yum --enablerepo=nux-dextop-testing install zoneminder
Re: ZoneMinder [message #115 is a reply to message #110] Sat, 11 February 2012 18:12 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
I did: yum clean metadata; yum --enablerepo=nux-dextop-testing install zoneminder but I got the same error. Then I did: yum reinstall yum yum-*; yum clean metadata; yum --enablerepo=nux-dextop-testing install zoneminder, it worked.
Now I am going to try it.
Thanks a lot!
Re: ZoneMinder [message #116 is a reply to message #110] Sat, 11 February 2012 20:38 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Wow, reinstall yum ... that's really not necessary. What you can do instead is "yum clean all".

Good luck, let me know how it goes.
Re: ZoneMinder [message #128 is a reply to message #116] Tue, 14 February 2012 09:31 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
Can I have mjpeg_streamer package,so that I can follow instructions
from https://www.youtube.com/watch?v=l-nIUgB35OQ ?
Unfortunately,I am not familiar with this software and it will take some time to investigate it properly.
Thanks!
Re: ZoneMinder [message #129 is a reply to message #110] Tue, 14 February 2012 09:38 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Kleo,

Do you have a link/homepage or a package name for that mjpeg_streamer?

Re: ZoneMinder [message #130 is a reply to message #129] Tue, 14 February 2012 09:43 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
I must really thanks for your kindness!
http://mjpg-streamer.svn.sourceforge.net/viewvc/mjpg-streame r/mjpg-streamer/

[Updated on: Tue, 14 February 2012 09:46]

Report message to a moderator

Re: ZoneMinder [message #131 is a reply to message #130] Tue, 14 February 2012 11:07 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
I apologise to everyone!
It should be mjpg-streamer not mjpeg_streamer!
Re: ZoneMinder [message #134 is a reply to message #110] Tue, 14 February 2012 14:09 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

I'll try to have a go at this in the next couple of days.

I'll update this post.

Re: mjpg-streamer [message #138 is a reply to message #110] Tue, 14 February 2012 22:11 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

I've manage to build it , and ain't easy, belive me Laughing , but I can't test it so if you what to test it ok otherwise I'll dump it ... Sad
Now I'm in upload on my repo....



Re: mjpg-streamer [message #139 is a reply to message #138] Wed, 15 February 2012 04:18 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
Of course I am going to test it!
I am going to use it!
Thanks!


Re: mjpg-streamer [message #159 is a reply to message #139] Sun, 19 February 2012 08:37 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
I tried mjpg-streamer with Logitech,Inc. Webcam C120.

I 've used these commands:

service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for dhcppc0
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
[root@dhcppc0 kleo]# find / -name *_uvc.so -print
/usr/lib64/mjpg-streamer/input_uvc.so
[root@dhcppc0 kleo]# find / -name *_http.so -print
/usr/lib64/httpd/modules/mod_proxy_http.so
/usr/lib64/kde4/kio_http.so
/usr/lib64/mjpg-streamer/output_http.so

mjpg_streamer -i "/usr/lib64/mjpg-streamer/input_uvc.so -d /dev/video0 -r 320x240 -f 6" -o "/usr/lib64/mjpg-streamer/output_http.so -p 8080" -b

firefox http://localhost:8080/?action=stream


At Firefox I got nice streaming video,so far.
I am going to do further testing.
Thanks.


[Updated on: Sun, 19 February 2012 08:44]

Report message to a moderator

Re: ZoneMinder [message #160 is a reply to message #110] Sun, 19 February 2012 09:30 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

I'm glad that works , as I said before I can't test it , I don't have a webcam , and my doubts were that since 3 years nobody touched the svn , no commits whatsoever ,maybe it's another dead project Sad
Re: ZoneMinder [message #1435 is a reply to message #160] Tue, 03 September 2013 07:00 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
Is there any chance that you could provide zoneminder again? ( to download from somwhere,installing it for private usage ..)

Thanks!

[Updated on: Tue, 03 September 2013 07:03]

Report message to a moderator

Re: ZoneMinder [message #1436 is a reply to message #110] Tue, 03 September 2013 17:52 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Hi, I have deleted the testing repo, but I can try to build it again.

Re: ZoneMinder [message #1437 is a reply to message #110] Tue, 03 September 2013 18:06 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Try now

yum --enablerepo=nux-dextop-testing install zoneminder
Re: ZoneMinder [message #1438 is a reply to message #1437] Tue, 03 September 2013 18:46 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
I got error:
yum --enablerepo=nux-dextop-testing install zoneminder
...........


--> Processing Dependency: cambozola for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Running transaction check
---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will be installed
---> Package zoneminder.x86_64 0:1.24.4-3.el6.nux will be installed
--> Processing Dependency: cambozola for package: zoneminder-1.24.4-3.el6.nux.x86_64
--> Finished Dependency Resolution
Error: Package: zoneminder-1.24.4-3.el6.nux.x86_64 (nux-dextop-testing)
Requires: cambozola
You could try using --skip-broken to work around the problem
Re: ZoneMinder [message #1439 is a reply to message #110] Tue, 03 September 2013 22:13 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Ok, try again.
Re: ZoneMinder [message #1440 is a reply to message #1439] Tue, 03 September 2013 22:50 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
Installation passed!

Thanks!
Re: ZoneMinder [message #1510 is a reply to message #1440] Wed, 16 October 2013 16:59 Go to previous messageGo to next message
kleo is currently offline  kleo
Messages: 92
Registered: February 2012
Member
Not so long time ago,a neighbor gave me a video surveilance card with single chip:"CONEXANT FUSION 878A 25878-132"and Omega webcam.
So,I started to investigate what ZoneMinder on Stella can give me.
1. Setup mysql server:
a) service mysqld start
b) mysql_secure_installation
c) mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
d) mysql -u root -p
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
d) use zm;
e) quit

2. Setup apache web server:
a) gedit /etc/httpd/conf.d/zoneminder.conf
I commented out line: #Deny from all # DELETE THIS LINE
b) service httpd start
3. Start zoneminder:
a) service zoneminder start
4. Start Zoneminder Console:
firefox localhost/zm
but Zoneminder Console status was Stopped.
index.php?t=getfile&id=96&private=0
5. Setup selinux in permissive mode:
setenforce 0
Pushing button "Refresh" at ZoneMinder Console gave status as "Running"
index.php?t=getfile&id=97&private=0
6. Setup camera:
Pushing button "Add New Monitor" at ZoneMinder Console gave me General tab,so I did:
Maximum FPS:25,Alarm Maximum FPS:25;
Source tab: Device Path:/dev/video0,Capture Width:640,Capture Height:480,Device Format:PAL,Capture Palette:YUYV
Pressing "Monitor-1" button gave blue picture not what I'expected. After numerously googling I realized that I have to guess bttv driver options for given chipset.

7. Remove bttv module:
service zoneminder stop
rmmod bttv
8. Insert different driver options:
modprobe bttv card=131 tuner=4 radio=0 triton1=0 vsfx=0
service zoneminder start
This gave picture as I expected. It also worked with "card=22" at modprobe command.
9. Setup webcam:
The same as 6.and I didn't have to enable mjpg_stream daemon!
Device Path:/dev/video1

index.php?t=getfile&id=98&private=0
10.Setup selinux:
gedit local_zoneminder.te
I edited:
module local_zoneminder 1.0;

require {
type httpd_t;
type initrc_var_run_t;
type initrc_t;
type v4l_device_t;
type file_t;
class unix_stream_socket { read connectto };
class file { read lock };
class shm { unix_read unix_write associate read write getattr };
class chr_file getattr;
}

#============= httpd_t ==============
allow httpd_t initrc_t:unix_stream_socket connectto;
allow httpd_t initrc_t:shm { unix_read unix_write associate read write getattr };
allow httpd_t initrc_var_run_t:file { read lock };
allow httpd_t v4l_device_t:chr_file getattr;

Then:
checkmodule -M -m -o local_zoneminder.mod local_zoneminder.te
semodule_package -o local_zoneminder.pp -m local_zoneminder.mod
semodule -i local_zoneminder.pp

This didn't help me to run ZoneMinder Console with Selinux at enforcing mode!

Googling I found interesting:http://www.zoneminder.com/forums/viewtopic.php?f =9&t=19119
Following instructions from above mentioned forum I've installed zoneminder-1.26-4.1 on CentOS partition.
I noticed significant changes and improvements (It would be nice if this version could be updated for Stella)but that package didn't work with Selinux at enforcing mode!

I didn't check all posibilities,but ZoneMinder with selinux at permissive mode works. I don't know is it safe to run it in these circumstances?
Not all options are usable,for example cameras works only if I choose YUYV at palette list,in my case.Modetect,montage,monitoring... works but there is no feature to generate avi files or similiar.
Anyway it is usable.










[Updated on: Wed, 16 October 2013 18:05]

Report message to a moderator

Re: ZoneMinder [message #1518 is a reply to message #110] Mon, 21 October 2013 12:18 Go to previous message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Wow, thanks for the details.

Regardin Selinux, usually when a problem is not fixed by setsebool I turn to audit2allow as per this page:
http://wiki.centos.org/HowTos/SELinux

HTH
Previous Topic: Cannot boot 6.4 require pae
Next Topic: Package request
Goto Forum:
  


Current Time: Sun Aug 25 15:34:11 BST 2019

Total time taken to generate the page: 0.02200 seconds