Page 1 of 1

cannot see image in watch window but camera is capturing...

Posted: Thu Aug 03, 2006 2:36 pm
by intenseblu
hello, i just finished a pretty painful (<-newb) install on ubuntu. it is running on 6.06 ubuntu server and i am using the custom zm_remote_camera.cpp zm_remote_camera.h that was created for the sony SNC-1/3 cameras.

when i log in through firefox into the ZM interface all is working fine except when i click to check my monitor instead of a picture i get a broken link icon displayed (as if its poiting to the wrong place) but i know ZM is capturing images fine cause when i click to go to configure zones for that monitor i see a picture it captured from the camera.

what i thought it is, a problem with executing the zms cgi script ... all my files are stored under /var/www/cgi-bin/ so technically apache should have no problem recognizing them there or letting them run ... i tried to access the cgi-bin directory directly through firefox and it tells me permission denied error (not sure if i should be able to access it?) and when i try to access /cgi-bin/zms/ it tells me the file was not found (it is there ... i just can't get in there). under ZM config i have attempted to use both /cgi-bin/zms and /cgi-bin/nph-zms

i have tried to get apache to access the cgi-bin scripts by editing apache2.conf with the following:

uncommented this line:
AddHandler cgi-script .cgi

and added this line:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

with no results...

can you guys think of anything i may be not doing right ?
other posts on this subject have been no help so far so please if you can think of anything... i am so close i can taste it :P

Posted: Thu Aug 03, 2006 2:46 pm
by jameswilson
never used ubuntu but something i suggested a bit ago seemed to help someone else. Got settings and change your path from nph-zms to just zms. Ubuntu default apache install doesnt like non parsed headers for some reason

Posted: Thu Aug 03, 2006 2:52 pm
by intenseblu
aye, james, i read your post and had it set to zms already ... still no dice

Posted: Thu Aug 03, 2006 3:55 pm
by intenseblu
solved, ubuntu's apache config is done so that the default cgi-bin is not in the web directory so i would of had to enabled it with a ScriptAlias in the sites-enabled directory .... instead i justed cp'ed zms and nph-zms into /usr/lib/cgi-bin and all is working great now ... thats where the ubuntu lamp server stores the cgi files by default ...

Posted: Thu Aug 03, 2006 4:04 pm
by jameswilson
cheers for the followup!

Posted: Thu Aug 03, 2006 4:04 pm
by dyuen
intenseblu,

yea, I have a similar problem on a number of suse boxes.I can see the camera stream fine, but I cannot see the still images on still windows; however, I have one zoneminder setup fine on a server,which has a lot of packages installed, works without this problem, so I guess we are missing some optional packages from either zoneminder or zoneminder's required packages.

One way I got around with this problem is to set bandwidth option, displayed on main interface, to high, then the picture will display. If you have find out how to fix it, please let us know.

Daniel

Posted: Thu Aug 03, 2006 5:59 pm
by intenseblu
missing stills huh ? i would venture you are missing either libjpeg (libjpeg62 and libjpeg62-dev package on ubuntu) or netpbm utilities ... if i remember correctly the netpbm package had some involvment in thumbnail creation ...

let us know if you trace it down ...

my problem is solved, it was a cgi-bin issue.... i had no stream or stills...

Posted: Fri Aug 04, 2006 4:57 pm
by dyuen
Thanks, intenseblu. updating netpbm does solve the problem :D