ZoneMinder 1.22.0 Preview Available

Support and queries relating to all previous versions of ZoneMinder
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

These are the changes since rc1. A couple of these were also in rc2

FEATURE - Added event progress and navigation bar (currently not on IE)
FEATURE - Added --with-libarch for 64 bit builds
FEATURE - Made zmaudit optional and with configurable delay
FEATURE - Added PTZ control script for Neu-Fusion NCS360
FEATURE - All logging now done via Debug.pm
FEATURE - Language selection now a dropdown showing available languages.
FIX - Changed a bunch of Info calls to Debug
FIX - Logs created by root are chowned to web user to prevent permission issues
FIX - Problems with different type sizes when accessing shared memory on 64 bit systems have been fixed
FIX - Shared memory handling from scripts in general now much improved
FIX - The zmvideo script now quotes filenames and so won't barf if they have funny characters in them
FIX - Fixed issue with streaming events with out of sequence frames causing immense timeouts
FIX - Fixed namespace clash with mysql.h in zmu
FIX - Fixed issue with default zone being triangular!
FIX - Removed error_reporting code from zone edit view which was messing up form
Phil
seb3s
Posts: 27
Joined: Wed Aug 31, 2005 10:27 am
Location: Paris, France

zms authentication

Post by seb3s »

Hi Phil,

I did post this on another thread (dealing about 1.21.4) but it seems you have not seen it as the code is the same in 1.22.rc3.

In the file zms.cpp, two lines were commented to allow for plain auth even if the config says hash (useful for some external apps as zm4ms for instance).

else if ( config.opt_use_auth )
{
//if ( strcmp( config.auth_relay, "hashed" ) == 0 )
{
if ( !strcmp( name, "auth" ) )
{
strncpy( auth, value, sizeof(auth) );
}
}
//else if ( strcmp( config.auth_relay, "plain" ) == 0 )
{
if ( !strcmp( name, "user" ) )
{
strncpy( username, value, sizeof(username) );
}
if ( !strcmp( name, "pass" ) )
{
strncpy( password, value, sizeof(password) );
}

but I think this is not sufficient as a few lines below I see two more lines that also needs to be commented for this to function :

if ( config.opt_use_auth )
{
User *user = 0;

// if ( strcmp( config.auth_relay, "hashed" ) == 0 )
{
if ( *auth )
{
user = zmLoadAuthUser( auth, config.auth_hash_ips );
}
}
// else if ( strcmp( config.auth_relay, "plain" ) == 0 )
{
if ( *username && *password )
{
user = zmLoadUser( username, password );
}
}
if ( !user )
{
Error(( "Unable to authenticate user" ));
return( -1 );
}
ValidateAccess( user, id );
}

As I said in the other post, my C knowledge is dating more than 10 years, so please be indulgent if I say something stupid here, but at least it seems to be functionning for me this way.

Cheers,
Sebastien.
User avatar
Cylindric
Posts: 44
Joined: Mon Jan 02, 2006 2:41 pm
Location: Essex, UK

Post by Cylindric »

zoneminder wrote:the event progress bar being discussed elsewhere.
hey, that is very nice :) Just installed the new version on top of my last 1.22.0-rc1
------- Mark -------
http://www.hanfordonline.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: zms authentication

Post by zoneminder »

seb3s wrote:I did post this on another thread (dealing about 1.21.4) but it seems you have not seen it as the code is the same in 1.22.rc3.
Yes, this had been missed out. I've updated it ready for the next drop.
Phil
pstahl
Posts: 1
Joined: Fri Jan 13, 2006 4:55 pm
Contact:

Czech translation

Post by pstahl »

Sorry but I can't find czech translation in package. Where is it?
Thanks
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have just put rc4 up. This is likely to be the last before proper release. You can fetch it from http://www.zoneminder.com/downloads/Zon ... rc4.tar.gz. As with rc3 you will need to do a zmupdate.pl -f as there are some configuration changes with various things being moved around to make space.

Changes in this one include

o FEATURE – Signal loss on locally attached video sources is now detected. This will create a short Signal Lost event on signal loss, followed by a Signal Reacquired event when it comes back. While the signal is lost no recording will take place in any mode.
o FEATURE – Added tokens for event cause (%EC%) and description (%ED%) for filter generated emails. The %ED% token was previously used for event length, this has now changed to %EL%. You will need to update any filters that use this token to use the new value.
o FIX – The console view has been optimised to speed up display by up to a factor of ten.
o FIX – Fixed a couple of problems with the authentication relay methods in zms.
o FIX – Fixed issue with control permissions whereby a user also needed monitor edit permissions to be able to control a monitor.
o FIX – Most mysql queries in the web interface did not have their result resources freed. This was untidy but generally did not have any deleterious consequences. However all queries are now properly freed.
o FIX – Password handling in the user configuration form was a bit ugly. This has been tidied up.

and I think all bug reported in this thread should now be sorted.
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Hi Phil,
I'm still doing a bit of traveling and trying to be ready to produce RPMs and have just a few questions.

Previously I was able to run zmconfig.pl to setup some of the defaults for the packages as I had added a sound and cambozola is included in the package. What would be the best way to go about passing in the extra config for the fields in the new version?

Also Serg had written some scripts to update the database. This was done before zmupdate.pl had come about. I had been meaning to clean this up and utilize the zmupdate.pl and just had not gotten to it. I took a peak at the code but I'm still not familiar with perl. If zmupdate.pl encounters an error will it return "1" and return a "0" on no problems when it exits like done in the SH scripts?

If you would like I can send you the scripts so you can see what was done previously. I think to date that most could be included with the tar for everyones benefit.
Regards,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

cordel wrote:Previously I was able to run zmconfig.pl to setup some of the defaults for the packages as I had added a sound and cambozola is included in the package. What would be the best way to go about passing in the extra config for the fields in the new version?
I think just setting the values directly via sql would be simplest. So create a zm_custom.sql script with stuff like

Code: Select all

update Config set Value = "abc" where Name = "ZM_OPT_xyz";
in it. Then just apply that directly after you create the database (which now also initialises the config).
cordel wrote:Also Serg had written some scripts to update the database. This was done before zmupdate.pl had come about. I had been meaning to clean this up and utilize the zmupdate.pl and just had not gotten to it. I took a peak at the code but I'm still not familiar with perl. If zmupdate.pl encounters an error will it return "1" and return a "0" on no problems when it exits like done in the SH scripts?
Yes, if zmupdate is successful then you should get a 0 exit status.
cordel wrote:If you would like I can send you the scripts so you can see what was done previously. I think to date that most could be included with the tar for everyones benefit.
Yep, go ahead and I'll take a look (or put them up somewhere).

Cheers
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I'm not %100 positive but it seems like rc4 is not writing to the images folder the images for setting the zones unless you enable thumbnails. As soon as I enabled thumbnails it started working.

This was done on a stock FC4 install with pcre and netpbm compiled in and no ffmpeg.

By the way Phil, you really out did your self :D beutiful piece of work. Thank you,

Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It shouldn't be related, but if you are having problems getting the zones image written out then there may be another problem. Can you reproduce it?
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I shut down the machine last night, and after booting backup I am unable to reproduce it. :D
Here is a snip from my httpd/error_log just in case it's useful:

Code: Select all

[Mon Jan 16 22:50:39 2006] [error] [client 127.0.0.1] File does not exist: /var/www/html/zm/images/New-Zones
.jpg, referer: http://localhost/zm/index.php?view=zones&mid=1
*** glibc detected *** /usr/sbin/zm/bin/zmu: malloc(): memory corruption: 0x0debee78 ***
======= Backtrace: =========
/lib/libc.so.6[0x4ad3ea]
/lib/libc.so.6(malloc+0x74)[0x4ae792]
/usr/lib/libstdc++.so.6(_Znwj+0x26)[0x68bbf6]
/usr/lib/libstdc++.so.6(_Znaj+0x1d)[0x68bd0d]
/usr/sbin/zm/bin/zmu[0x804e12a]
/usr/sbin/zm/bin/zmu[0x8056794]
/usr/sbin/zm/bin/zmu[0x8056f09]
/usr/sbin/zm/bin/zmu[0x806508a]
/usr/sbin/zm/bin/zmu[0x804a986]
/lib/libc.so.6(__libc_start_main+0xc6)[0x45dde6]
/usr/sbin/zm/bin/zmu(__gxx_personality_v0+0xa1)[0x804a361]
======= Memory map: ========
00111000-00123000 r-xp 00000000 fd:00 99936      /lib/libnsl-2.3.5.so
00123000-00124000 r-xp 00011000 fd:00 99936      /lib/libnsl-2.3.5.so
00124000-00125000 rwxp 00012000 fd:00 99936      /lib/libnsl-2.3.5.so
00125000-00127000 rwxp 00125000 00:00 0
00127000-0014a000 r-xp 00000000 fd:00 614024     /usr/lib/libk5crypto.so.3.0
0014a000-0014b000 rwxp 00023000 fd:00 614024     /usr/lib/libk5crypto.so.3.0
0014b000-00154000 r-xp 00000000 fd:00 622849     /lib/libnss_files-2.3.5.so
00154000-00155000 r-xp 00008000 fd:00 622849     /lib/libnss_files-2.3.5.so
00155000-00156000 rwxp 00009000 fd:00 622849     /lib/libnss_files-2.3.5.so
0042b000-00445000 r-xp 00000000 fd:00 99850      /lib/ld-2.3.5.so
00445000-00446000 r-xp 00019000 fd:00 99850      /lib/ld-2.3.5.so
00446000-00447000 rwxp 0001a000 fd:00 99850      /lib/ld-2.3.5.so
00449000-0056d000 r-xp 00000000 fd:00 99851      /lib/libc-2.3.5.so
0056d000-0056f000 r-xp 00124000 fd:00 99851      /lib/libc-2.3.5.so
0056f000-00571000 rwxp 00126000 fd:00 99851      /lib/libc-2.3.5.so
00571000-00573000 rwxp 00571000 00:00 0
00575000-00597000 r-xp 00000000 fd:00 99922      /lib/libm-2.3.5.so
00597000-00598000 r-xp 00021000 fd:00 99922      /lib/libm-2.3.5.so
00598000-00599000 rwxp 00022000 fd:00 99922      /lib/libm-2.3.5.so
0059b000-0059d000 r-xp 00000000 fd:00 99923      /lib/libdl-2.3.5.so
0059d000-0059e000 r-xp 00001000 fd:00 99923      /lib/libdl-2.3.5.so
0059e000-0059f000 rwxp 00002000 fd:00 99923      /lib/libdl-2.3.5.so
005a1000-005b3000 r-xp 00000000 fd:00 613996     /usr/lib/libz.so.1.2.2.2
005b3000-005b4000 rwxp 00011000 fd:00 613996     /usr/lib/libz.so.1.2.2.2
005ca000-005d3000 r-xp 00000000 fd:00 99927      /lib/libgcc_s-4.0.0-20050520.so.1
005d3000-005d4000 rwxp 00009000 fd:00 99927      /lib/libgcc_s-4.0.0-20050520.so.1
005d6000-006b5000 r-xp 00000000 fd:00 614012     /usr/lib/libstdc++.so.6.0.4
006b5000-006ba000 rwxp 000df000 fd:00 614012     /usr/lib/libstdc++.so.6.0.4
006ba000-006bf000 rwxp 006ba000 00:00 0
006c1000-006d0000 r-xp 00000000 fd:00 99928      /lib/libresolv-2.3.5.so
006d0000-006d1000 r-xp 0000e000 fd:00 99928      /lib/libresolv-2.3.5.so
006d1000-006d2000 rwxp 0000f000 fd:00 99928      /lib/libresolv-2.3.5.so
006d2000-006d4000 rwxp 006d2000 00:00 0
006d6000-0071a000 r-xp 00000000 fd:00 75698      /usr/lib/mysql/libmysqlclient.so.14.0.0
0071a000-007e0000 rwxp 00044000 fd:00 75698      /usr/lib/mysql/libmysqlclient.so.14.0.0
007e0000-007e3000 rwxp 007e0000 00:00 0
008a5000-008c3000 r-xp 00000000 fd:00 613997     /usr/lib/libjpeg.so.62.0.0
008c3000-008c4000 rwxp 0001d000 fd:00 613997     /usr/lib/libjpeg.so.62.0.0
008f2000-008f7000 r-xp 00000000 fd:00 99937      /lib/libcrypt-2.3.5.so
008f7000-008f8000 r-xp 00004000 fd:00 99937      /lib/libcrypt-2.3.5.so
008f8000-008f9000 rwxp 00005000 fd:00 99937      /lib/libcrypt-2.3.5.so
008f9000-00920000 rwxp 008f9000 00:00 0
00b84000-00b85000 r-xp 00b84000 00:00 0
00cc1000-00cc3000 r-xp 00000000 fd:00 99931      /lib/libcom_err.so.2.1
00cc3000-00cc4000 rwxp 00001000 fd:00 99931      /lib/libcom_err.so.2.1
00ce9000-00cfa000 r-xp 00000000 fd:00 622894     /lib/libpcre.so.0.0.1
00cfa000-00cfb000 rwxp 00010000 fd:00 622894     /lib/libpcre.so.0.0.1
00d04000-00d73000 r-xp 00000000 fd:00 614025     /usr/lib/libkrb5.so.3.2
00d73000-00d76000 rwxp 0006e000 fd:00 614025     /usr/lib/libkrb5.so.3.2
00d78000-00d7a000 r-xp 00000000 fd:00 610835     /usr/lib/libkrb5support.so.0.0
00d7a000-00d7b000 rwxp 00001000 fd:00 610835     /usr/lib/libkrb5support.so.0.0
00d7d000-00d93000 r-xp 00000000 fd:00 614026     /usr/lib/libgssapi_krb5.so.2.2
00d93000-00d94000 rwxp 00016000 fd:00 614026     /usr/lib/libgssapi_krb5.so.2.2
00d96000-00dcb000 r-xp 00000000 fd:00 99935      /lib/libssl.so.0.9.7f
00dcb000-00dce000 rwxp 00035000 fd:00 99935      /lib/libssl.so.0.9.7f
03463000-0355b000 r-xp 00000000 fd:00 99934      /lib/libcrypto.so.0.9.7f
0355b000-0356d000 rwxp 000f8000 fd:00 99934      /lib/libcrypto.so.0.9.7f
0356d000-03570000 rwxp 0356d000 00:00 0
08048000-08075000 r-xp 00000000 fd:00 376        /usr/sbin/zm/bin/zmu
08075000-08080000 rw-p 0002d000 fd:00 376        /usr/sbin/zm/bin/zmu
08080000-0dab9000 rw-p 08080000 00:00 0
0deb2000-0def4000 rw-p 0deb2000 00:00 0          [heap]
b7100000-b7121000 rw-p b7100000 00:00 0
b7121000-b7200000 ---p b7121000 00:00 0
b7253000-b729f000 rw-p b7253000 00:00 0
b729f000-b7e58000 rw-s 00000000 00:07 4030467    /SYSV7a6d2001 (deleted)
b7e58000-b7ef5000 rw-p b7e58000 00:00 0
b7f07000-b7f08000 rw-p b7f07000 00:00 0
bfbf3000-bfc08000 rw-p bfbf3000 00:00 0          [stack]
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yuck!! That looks nasty :shock:

However I'm going to pretend it never happened and do a proper 1.22.0 release as planned in the next few hours anyway :lol:
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

eek! I guess I better wrap up the script thing now as I'll be back on the road agian for the next few days. I'll run a test with what I know will work for now and shoot them over to you incase there is anything you want to include.

Corey
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

ack!
I built the package but when I try to install it I get this from rpm

Code: Select all

file /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod from install of zm-1.22.0-0.1.fc.root conflicts with file from package kdebindings-3.4.2                               -0.fc3.1
What is perllocal.pod?

Corey
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

It's a pod - Plain Old Documentation - file. If you run the command
perldoc perlpod
you'll get a description of the file; it's a simple markup text file used within Perl for documentation that can easily be converted into other formats using utilities such as pod2html pod2latex and pod2text. You can also look at the contents via
perldoc perllocal

I've not used the file (just looked at here in response to your question) and it looks like it contains details of modules added locally to your Perl installation; I'm guessing it's going to updated by part of the
make install
script that's run as you install cpan modules (or your own modules if you've created them by h2xs).
Means nothing to me though matey hoping it helps you tho
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
Locked