Can't configure proper user & group for openSUSE 10.3

Support and queries relating to all previous versions of ZoneMinder
Locked
john_l_b
Posts: 37
Joined: Thu Aug 02, 2007 2:20 am

Can't configure proper user & group for openSUSE 10.3

Post by john_l_b »

The OS is openSUSE 10.3, and mysql is v 5.0.45.22.
ZM is 1.22.3 standard download file
The openSUSE 10.2 RPM will not work.

Initially I got errors about ffmpg [located at /usr/bin/ffmpeg]
and ffmpg libraries [located at /usr/include/ffmpeg]
I'll try adding a softlink when other things get resolved.

This is all being done in root

The user is 'wwwrun'
The group is 'www'
(These are the values the /srv/www/htdocs/zm/* files have after the first make install attempt. Not anything I set up. Could be suse that make that change, and possibly for security reasons.)

I then used ./configure .... --with-webuser=wwwrun and --with-webgroup=www
No errors there. Ran make install
and got the following errors

chown: `apache:apache': invalid user
chown: `apache:apache': invalid user
make[4]: *** [install-data-hook] Error 1
make[3]: *** [install-data-am] Error 2
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

So I did cat Make* | grep -i "apache" and found it hardcoded in (WEBUSER=apache)
I then edited every occurance of apache in every makefile to be www or wwwrun.

Still get the same error. apache:apache is somehow hardcoded into this and no option setting can change it.

Also wwwrun and www are not in the Linux user/group setups and I can't find documentation on setting apache users other than how someone logs into a webpage. That has no bearing on the zm file owner.

Yea, I can manually go in and change file ownership (but NOT to apache!), but there is
still not instation that is not complete.
sticcino
Posts: 10
Joined: Sat Oct 27, 2007 1:36 am
Location: Toronto, CA

Post by sticcino »

Hello,

I have ZM working with 10.2 and just upgraded to 10.3 and still ZM working

there is a 1-click install for 10.3 somewhere, if i can find it i will post it
try the following:

Code: Select all


./configure 
--with-webdir=/srv/www/htdocs/zm 
--with-cgidir=/srv/www/cgi-bin 
--with-webuser=wwwrun --with-webgroup=www 
also follow this and you should be fine:
http://www.zoneminder.com/wiki/index.ph ... s_for_SuSE

http://www.zoneminder.com/forums/viewtopic.php?t=5686

HTH,
Johnny
john_l_b
Posts: 37
Joined: Thu Aug 02, 2007 2:20 am

Thanks

Post by john_l_b »

It was not available when I was doing this install - just a few days after the release of 10.3 by openSUSE.

So I will try that tomorrow, going with a fresh install of 10.3 so the current stuff I've done doesn't corrupt things.

In the attempt before my post, I did the configure with:

--with-webdir=/srv/www/htdocs/zm
--with-cgidir=/srv/www/cgi-bin
--with-webuser=wwwrun --with-webgroup=www

And when I ran make it still defaulted to apache:apache

I then edited all files with 'make' in the name to replace all settings of user and group to wwwrun:www. It still attempted apache:apache at the end even though apache was totally gone from the make process files.

Thanks, John
sticcino
Posts: 10
Joined: Sat Oct 27, 2007 1:36 am
Location: Toronto, CA

Post by sticcino »

Hi John,

strange. I will post the repository where ZM is available for download via YAST.

this should help you installing ZM, as it will also contain a lot of the dependancies required by ZM.

I am away today, but will post it for you on Thursday Nov 1.

Johnny.
john_l_b
Posts: 37
Joined: Thu Aug 02, 2007 2:20 am

Install accomplished - problems not solved

Post by john_l_b »

I have ZM installed over 10.3 of openSUSE. It works fine with two Provideo PV143 cards, but I still have problems with Kodicom 4400R cards. They do not result in a /dev/video no matter what setup or modprobe I use. Ao I am no further ahead of where I was at with openSUSE 10.2 - even though there was discussion here about the newer kernel being better able to use the Kodicom card.

So I guess what is needed is something beyond the typical line in modprobe.conf
options bttv gbuffers=16 card=133,132,133,133

Strangely, I do get some results with both Kodicom and Provideo cards installed
but it looks like all video then comes from the Provideo and somehow migrates to look like output from the Kodicom.
john_l_b
Posts: 37
Joined: Thu Aug 02, 2007 2:20 am

Solved!

Post by john_l_b »

I had not though of using Yast to set up the video cards, expecting to take care of it with a modprobe.conf setting.

Using Yast > Hardware > TV Cards I was able to set them up and now have one Kodicom 4400R card working.

I does not work with two Kodicom cards in the system.
john_l_b
Posts: 37
Joined: Thu Aug 02, 2007 2:20 am

Further Yast problem

Post by john_l_b »

It works when I set it up with Yast. Then, when I reboot, the settings are still in Yast, but the system does NOT use them on reboot. I have to go reset them to get it to work - bad for a system that needs to auto-restart after a power failure.

So it's probably time to go set a better multiple port card. Anyone out there that people have used and have no problems with?
Locked