Install on Fedora 8 from RPM - What Next?

Support and queries relating to all previous versions of ZoneMinder
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Install on Fedora 8 from RPM - What Next?

Post by algenon »

Hi,

After a break from ZM of a couple of years I decided to get it going again.
I had previously compiled it for a RH7 machine.

I have just fired up a Fedora 8 PC and installed Zoneminder with yum. All went well with the dependencies found and installed. I read the manual and with mysql running I found I could not even find zminit let alone run it.

So there are differences in the RPM installs.
This is what I get from the ZM startup;

httpd (pid 1999 1998 1997 1996 1995 1994 1993 1992 1870) is running...
mysqld (pid 1816) is running...
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
zoneminder is stopped

Where should I go from here? Should I look elsewhere for the install script?

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

Post by cordel »

You will have to read the instructions included with the RPM, it should be something like README.Fedora if they did it correctly. The zminit was something we did when we were packaging ZM our self and apparently they have not adopted our scripts for whatever reason. I still have the script but I would have to adjust it to the way they packaged ZM.
I still package ZM myself for my own use but have yet to load FC8 or adjust my build system to accommodate it.
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

Thanks for the reply.
I don't know if I have any instructions with the RPM as I installed it from yum. But I'm sure there must be a readme somewhere. Just can't find it.

I will persevere for a while and if no good, perhaps it will be better to wait for your 'official' RPM.

Kind regards ........... Colin
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

Well ... Progress.
I have it running without (I hope) error. Mysql database all seems OK.

However no image from Axis 205 camera.
I have the source set to;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
and have played around a bit with this. From Firefox or IE7 this link works fine. No password needed. But all I get is the broken image icon.

Any advice where to look next? I have followed the guide as best I can.

Kind regards ..... Colin
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

algenon wrote:Well ... Progress.
I have it running without (I hope) error. Mysql database all seems OK.

However no image from Axis 205 camera.
I have the source set to;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
and have played around a bit with this. From Firefox or IE7 this link works fine. No password needed. But all I get is the broken image icon.

Any advice where to look next? I have followed the guide as best I can.

Kind regards ..... Colin
try using /axis-cgi/mjpg/video.cgi?resolution=320x240 url, or fix your jpeg url to read /axis-cgi/jpg/image.cgi?resolution=320x240
apparently your camera's default resolution is not 320x240 and it just ignores the "320x240" parameter.
if common sense is so uncommon, why is it called common then?
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

Thanks for the reply W.

However if I paste the link;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
into a browser, I get the image from the Axis205 camera.
I checked the camera and it was set to 320x240.

I have had this camera going on an earlier installation of ZM and I think I have it set OK, but obviously I'm missing something. I'm sure it is something quite simple.

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

Post by cordel »

There are two parts in the configuration as described in the readme.
Host and path, If your not setting the cam up in DNS (most don't) then the host is just the ip of the cam. Port should be obvious. The path is the remainder of the url /axis-cgi/jpg/image.cgi?320x240

Host: 192.168.1.5
Path: /axis-cgi/jpg/image.cgi?320x240
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

and still, url /axis-cgi/jpg/image.cgi?320x240 is not valid according to axis http api, please refer to http://www.axis.com/techsup/cam_servers ... g_snapshot for correct parameters. and make sure you have firmware version 4.x, but even if you don't, there is parameter "resolution" in version 1 of api as well.
if common sense is so uncommon, why is it called common then?
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

Thanks Cordel, that got it going, with the source set to;
/axis-cgi/jpg/image.cgi
Now to get it going at 640x480

Again ... thanks.

Colin
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

and, btw, there are presets for axis cameras that you can use when creating new monitor to stay away from hassles like this.

path for 640x480 would be /axis-cgi/jpg/image.cgi?resolution=640x480 if you want to stick with jpeg images instead of mjpeg. which is probably good idea as somebody (search the forums) reported less cpu utilization when using jpegs.
if common sense is so uncommon, why is it called common then?
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

<and, btw, there are presets for axis cameras that you can use when creating new monitor to stay away from hassles like this. >

Hi, where are these presets?

Also what are the secrets for getting 640 x 420 going?

Thanks ... Colin
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

algenon wrote:<and, btw, there are presets for axis cameras that you can use when creating new monitor to stay away from hassles like this. >

Hi, where are these presets?

Also what are the secrets for getting 640 x 420 going?

Thanks ... Colin
when you create new monitor, there is "Presets" link in upper right corner of the window. and secret of 640x480 is having enough sharedmem and having it all set up right.
if common sense is so uncommon, why is it called common then?
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

<when you create new monitor, there is "Presets" link in upper right corner of the window. and secret of 640x480 is having enough sharedmem and having it all set up right.>

Thanks for quick response.
I had tried earlier to set the camera up with the 'Presets' link but it returned an error;
Unknown column 'DefaultView' in 'field list'
I thought there was some other setup. It may be that the Fedora RPM install is not strictly standard.

I was aware that the 640 x 420 res was dependent on some memory management as it works in BW but not colour.

My Fedora machine has 1 GIG ram. Any advice on setting up the shared ram?

Again, thanks .......... Colin
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

algenon wrote: My Fedora machine has 1 GIG ram. Any advice on setting up the shared ram?

Again, thanks .......... Colin
i suggest you first read wiki, then search forums. there is a patch for first issue and lots of posts (maybe 1/2-2/3 of all "doesn't work" posts) about shared memory.
if common sense is so uncommon, why is it called common then?
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Post by algenon »

Thanks to Cordel and W. I have a single camera running and triggering.

I upped the shared memory as well.

We will see how it goes over the next couple of weeks. This version of F8 seems to be so much better than my previous (1.21 I think).

Again thanks ....... Colin
Locked