Page 1 of 1

FC4

Posted: Tue Feb 07, 2006 6:10 pm
by inluxc
Well after 2 days of work on it, i have installed on a fresh FC4 server.
By the way i a rookie in linux so.....

But a i have a problem. i cant get zm to run... i canĀ“te find in the service list.

Can anyone help me???

Posted: Wed Feb 08, 2006 1:52 am
by blacksmith
Hi,

I'm a FC4 user, too, and my zm works upto 98% functions.
Please follow the zm manual and my simple note.

MySQL devel packages, for the header files are needed.
Some perl-xxx modules.
yum install ffmpeg*
vi zm.conf, change the username and password for mysql database.
mysql knowledge, www.mysql.org ch-5
mysql -h localhost -u user [-p password]
root <- super user for MySql
mysqladmin -u root password "yourpassword" <- setting passwork for user root for security.
use data_base_name;
show tables;
describe tables_field;
select * from tables_field;
mysql -u root -p < db/zm_create.sql
give new user privilages, follow the zm manual
mysqladmin -u root -p reload
camera driver:
spca5xx, INSTALL
spcaview work!!
zmu -d /dev/video -q -v, with root for testing the cowork between zm and camera driver
zm database will be at /var/lib/mysql/
/var/log/httpd/error_log loading lib error: permission denied.
execstack -c xxx.so
and disable SElinux for httpd will solve this problem.
.asf for mozilla need mplayer-plugin(from mozilla update website), and mplayer.
zm log files are at /tmp

Regards,
blacksmith

Well

Posted: Wed Feb 08, 2006 9:56 am
by inluxc
I looking at the logs and i get this error...


zmwatch.log:

08-02-2006 09:47:45.998628 zmwatch[2617].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
08-02-2006 09:47:45.998922 zmwatch[2617].INF [Restarting capture daemon for Expedicao, shared memory not valid]
08-02-2006 09:47:46.198963 zmwatch[2617].INF ['zmc -d' started at 06/02/08 09:47:46] at /usr/local/bin/zmwatch.pl line 118



zmdc.log:

Use of uninitialized value in concatenation (.) or string at /usr/local/bin/zmwatch.pl line 112.
08-02-2006 09:48:37.225658 zmdc[19678].INF ['zmc -d' started at 06/02/08 09:48:37]
08-02-2006 09:48:37.226768 zmdc[2574].INF ['zmc -d' starting at 06/02/08 09:48:37, pid = 19678]
/usr/local/bin/zmc: option requires an argument -- d
zmc -d <device_path> or -H <host> -P <port> -p <path> or -f <file_path> or -m <monitor_id>
Options:
-d, --device <device_path> : For local cameras, device to access. E.g /dev/video0 etc
-H <host> -P <port> -p <path> : For remote cameras
-f, --file <file_path> : For local images, jpg file to access.
-m, --monitor <monitor_id> : For sources associated with a single monitor
-h, --help : This screen
08-02-2006 09:48:37.244036 zmdc[2574].INF ['zmc -d' died]

Posted: Wed Feb 08, 2006 12:00 pm
by tech_fixer
Hi,
For the zm service you copy the script called "zm" from the "scripts" directory, located wherever you uncompressed the ZoneMinder directory.

For me it is: /root/ZoneMinder-1.22.0/scripts/zm

So to copy I would do:

Code: Select all

 cp /root/ZoneMinder-1.22.0/scripts/zm /etc/init.d/ 
And then, change the permissions on the "zm" script to allow execution. For that, I would do:

Code: Select all

 chmod 755 /etc/init.d/zm 
About the shared memory, I'll let someone more knowledgeable handle that.

Regards,
Jose.

Got it

Posted: Wed Feb 08, 2006 12:15 pm
by inluxc
I was the Selinux was enable... I had to Disable it..

Its running ...
But still one thing to fixe..heheh

Posted: Wed Feb 08, 2006 3:31 pm
by zoneminder
Your original errors included one where no device was being passed to zmc. Make sure you have filled in all the fields in the monitor definition. This is enforced in 1.22.1 but still slack in 1.22.0