View unanswered posts | View active topics It is currently Wed May 22, 2013 1:55 am



Reply to topic  [ 92 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
Getting ZoneMinder into debian and ubuntu 
Author Message

Joined: Wed Aug 22, 2007 5:52 am
Posts: 13
Location: NZ
Post 
False alarm, Looks like I had a loose wire. both monitors are showing colour now.
Added options bttv tuner=4 back in, reboot, and all is looking good so far.
Thanks for all the help guys.

Has made the process less painfull.
Not sure what the i2c-algo-bit bit_test=1 is about, but have got a good starting point to work from now.
:D


Sun Sep 02, 2007 11:43 am
Profile ICQ

Joined: Sun Aug 17, 2003 3:58 am
Posts: 45
Post 
Here is an explanation of why the bit_test is set to 1 from the author of the BTTV driver Gerd Knorr:

http://marc.info/?l=linux-kernel&m=98097940526322&w=2


Sun Sep 02, 2007 7:25 pm
Profile

Joined: Wed Aug 22, 2007 5:52 am
Posts: 13
Location: NZ
Post 
I've just gotten back to this project after a few months on something else.
Now I have no images on my monitors again. I've just turned the server on. Havn't changed anything else. Looks like I will have to go through the whole process again unless someone has another brilliant idea


Sun Dec 02, 2007 11:26 am
Profile ICQ

Joined: Wed Aug 22, 2007 5:52 am
Posts: 13
Location: NZ
Post 
I can view stills, but no stream. Any ideas?


Sat Dec 08, 2007 4:36 am
Profile ICQ

Joined: Wed Jun 08, 2005 9:07 pm
Posts: 5078
Location: Midlands UK
Post 
Unless you really really want ubuntu please give the live cd a go

_________________
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk


Sat Dec 08, 2007 12:53 pm
Profile WWW

Joined: Sat Mar 31, 2007 10:18 pm
Posts: 1059
Location: Houston, TX
Post 
I would start with a clean build of Ubuntu. It is quite easy now with the debs in the repos.


Sat Dec 08, 2007 9:00 pm
Profile

Joined: Wed Aug 22, 2007 5:52 am
Posts: 13
Location: NZ
Post 
Quote:
Unless you really really want ubuntu please give the live cd a go

Which live CD are we talking about?
Quote:
I would start with a clean build of Ubuntu. It is quite easy now with the debs in the repos.

added the universe repo's to /etc/apt/sources.list.
Code:
sudo apt-get update
sudo apt-get install zoneminder

wasn't available.
Maybe the package you are referring to is in another repository?

So I end up trying to install ftp://www.northern-ridge.com.au/zonemin ... 8_i386.deb
but there are missing dependancies.
So I do a
Code:
apt-get -f install

installed aprx 46 MB. apache2, php5, mysql along with lots of other packages. zoneminder 1.22.3-8 was now installed.
Looks like we still have a few dependancy issues with the ftp://www.northern-ridge.com.au/zonemin ... 8_i386.deb package. Looks like an apt-get -f install manages to sort them out though.

I spent quite a bit of time last week trying to work out why the image streaming seemed to stop working. I'm still not totally sure, but I think it may have come down to an apache configuration issue. As I was getting allot of the same error in the /var/log/apache/error.log.
Error, unable to authenticate user
This started around November 11th, which was when I made a couple of changes. This post jogged my memory
http://www.zoneminder.com/forums/viewto ... 24af9cff84
One was to change plain authentication to hashed in the System tab->ZM_AUTH_RELAY
I changed this back and it made no difference.
I looked at all the other logs I could find. Turned zm debugging up full. Couldn't find anything else that would fix the system.
I'll just have to be allot more careful of "any" changes I make this time around and test zoneminder thoroughly on each change I make.
I'll post back here If/when I find the change I made that broke the streaming. :lol:


Sun Dec 09, 2007 3:24 am
Profile ICQ

Joined: Wed Jun 08, 2005 9:07 pm
Posts: 5078
Location: Midlands UK
Post 
im talking about the live cd from ross here, it even has its own forum area.

_________________
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk


Sun Dec 09, 2007 3:11 pm
Profile WWW

Joined: Sat Mar 31, 2007 10:18 pm
Posts: 1059
Location: Houston, TX
Post 
Peter made the deb you used, and the one in the repos. It is in the Gutsy universe. I have never had to -f an install from Peters deb. It really sounds to me like you base system is messed up...


Sun Dec 09, 2007 6:20 pm
Profile

Joined: Thu Jul 20, 2006 2:07 am
Posts: 319
Location: Australia
Post 
DeathByPenguins wrote:
Error, unable to authenticate user
This started around November 11th, which was when I made a couple of changes. This post jogged my memory
http://www.zoneminder.com/forums/viewto ... 24af9cff84
One was to change plain authentication to hashed in the System tab->ZM_AUTH_RELAY
I changed this back and it made no difference.
I looked at all the other logs I could find. Turned zm debugging up full. Couldn't find anything else that would fix the system.
I'll just have to be allot more careful of "any" changes I make this time around and test zoneminder thoroughly on each change I make.
I'll post back here If/when I find the change I made that broke the streaming. :lol:


OK - here are the things I know will break streaming:
    Turning user authentication on in ZM at all - my stuff up and I am close to having it fixed . . .
    Actually using ffmpeg features - even though the .deb requires it it doesn't really support it.
    Parsed headers vs. non-parsed headers. On the "config" tab in the options window, try swapping between zms and nph-zms and see if one works over the other

If you find you've got another way, please let me know.

As to Lee's comments about the repo: it's in the Ubuntu universe from gutsy going forward; if you're working on dapper, edgy, or feisty, you have to do the manual install as you described.

Hoping this adds some help . . .


Mon Dec 10, 2007 12:22 am
Profile YIM WWW

Joined: Thu Jul 20, 2006 2:07 am
Posts: 319
Location: Australia
Post 
PeterHoward wrote:
    Parsed headers vs. non-parsed headers. On the "config" tab in the options window, try swapping between zms and nph-zms and see if one works over the other



Oops. That should be the "paths" tab, and the field is ZM_PATH_ZMS - alternate between /cgi-bin/nph-zms and /cgi-bin/zms

PJH


Mon Dec 10, 2007 11:41 am
Profile YIM WWW

Joined: Sat Mar 31, 2007 10:18 pm
Posts: 1059
Location: Houston, TX
Post 
PeterHoward wrote:
    Turning user authentication on in ZM at all - my stuff up and I am close to having it fixed . . .

I am using auth with no problem. However, it is not hashed. Also, you have to close and reopen the browser after enabling it. Still nice to know you are working on it. Shout if you need anything.


Mon Dec 10, 2007 3:46 pm
Profile

Joined: Thu Jul 20, 2006 2:07 am
Posts: 319
Location: Australia
Post Auth working
As of this morning I think I've got it done. On my system anwyay, I can now turn on authentication - using md5 - and my camera still works.

All I've got left to do is modify the install script so that it checks to see if you have exported stuff before it blows the directory away to set up the new (works out of install) export directory. Then I'll release it.


Mon Dec 10, 2007 10:42 pm
Profile YIM WWW

Joined: Wed Aug 22, 2007 5:52 am
Posts: 13
Location: NZ
Post 
Quote:
As of this morning I think I've got it done. On my system anwyay, I can now turn on authentication - using md5 - and my camera still works.

Pardon my ignorance... How can we go about encrypting/hiding the credentials we pass to our ZM web server via the net?

Quote:
All I've got left to do is modify the install script so that it checks to see if you have exported stuff before it blows the directory away to set up the new (works out of install) export directory. Then I'll release it.

How do you mean export stuff? What is the export directory?

Is there any known issues using ZM on a virtual machine? Does ZM on a VM work ok with the capture cards? As I'm thinking about doing some testing and as always a VM is a great way of doing this. Due to being able to role back changes and simply blow away. Id really like to add to the great effort you guys are doing with ZM. As it's a great peace of software, and looks to be fairly extensible. Once I've got my head around some more of it's functionality I'd like to dive into the code. Hence why I ask about VM issues. I've got plans to extend. Will keep you posted.

Yeah, tried changing the ZM_PATH_ZMS before I blew the 2nd install away.

Quote:
Hoping this adds some help . . .


Of course it does. You guys are unstop-able.
All this knowledge helps allot.
That's great news that the package is in the Gutsy repos onwards.
Will make installs allot quicker. Ubuntu's next LTS (Long Term Support) is coming up pretty soon. So This will be a big help.
:D


Tue Dec 11, 2007 9:38 am
Profile ICQ

Joined: Thu Jul 20, 2006 2:07 am
Posts: 319
Location: Australia
Post 
Suddenly realised - we're roughly in the same timezone!
DeathByPenguins wrote:
Quote:
As of this morning I think I've got it done. On my system anwyay, I can now turn on authentication - using md5 - and my camera still works.

Pardon my ignorance... How can we go about encrypting/hiding the credentials we pass to our ZM web server via the net?


MD5 Hashes (prior to transmission, I assume, on the browser side). Due to licensing issues with openssl I changed to gnutls to process the MD5 hashes on the server side. Or nearly changed. Now that's really changed.
Quote:
Quote:
All I've got left to do is modify the install script so that it checks to see if you have exported stuff before it blows the directory away to set up the new (works out of install) export directory. Then I'll release it.

How do you mean export stuff? What is the export directory?

The export directory is (by default) /usr/share/zoneminder/temp. Which is not writeable by non-root. What I've done for it (and a couple of other directories) is create the dir under /var and link it back to /usr/share/zoneminder.
Quote:
Is there any known issues using ZM on a virtual machine? Does ZM on a VM work ok with the capture cards? As I'm thinking about doing some testing and as always a VM is a great way of doing this. Due to being able to role back changes and simply blow away. Id really like to add to the great effort you guys are doing with ZM. As it's a great peace of software, and looks to be fairly extensible. Once I've got my head around some more of it's functionality I'd like to dive into the code. Hence why I ask about VM issues. I've got plans to extend. Will keep you posted.

I use VMs but only for basic "it installs" testing - haven' really tried running zm properly in a VM environment.
Quote:
Yeah, tried changing the ZM_PATH_ZMS before I blew the 2nd install away.

Quote:
Hoping this adds some help . . .


Of course it does. You guys are unstop-able.
All this knowledge helps allot.
That's great news that the package is in the Gutsy repos onwards.
Will make installs allot quicker. Ubuntu's next LTS (Long Term Support) is coming up pretty soon. So This will be a big help.
:D

Nice to be appreciated :D

Note: see separate posting about -9 release.


Tue Dec 11, 2007 10:09 am
Profile YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 92 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group