Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Has Anyone Ever Installed ZoneMinder?

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
User avatar
chrismortimore
Posts: 849
Joined: 2007-04-24 06:34
Location: Edinburgh, UK

#16 Post by chrismortimore »

For the permissions, post the output of "ls -l /dev/video0".
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 5x320GB WD 7200rpm Caviar RE2 (RAID5), Nvidia 6600GT 256MB
Laptop: Intel Pentium M 1.5GHz, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB

Carlosinfl
Posts: 889
Joined: 2005-02-05 06:11
Location: Orlando, FL

#17 Post by Carlosinfl »

Here are the permissions for /dev/video0...

Code: Select all

watcher:/home/cwilliams# ls -l /dev/video0 
crw-rw---- 1 root video 81, 0 2007-05-06 09:59 /dev/video0
I asked on the ZoneMinder forums and it seems because I installed ZoneMinder via APT-GET and not the traditional way, I would be kind of on my own as they feel this is a Debian related issue.

Any ideas why ZoneMinder can't use /dev/video0? It appears that only root and video can read/write to this. Should I chmod 777 /dev/video0?

User avatar
chrismortimore
Posts: 849
Joined: 2007-04-24 06:34
Location: Edinburgh, UK

#18 Post by chrismortimore »

Carloswill wrote:I asked on the ZoneMinder forums and it seems because I installed ZoneMinder via APT-GET and not the traditional way, I would be kind of on my own as they feel this is a Debian related issue.
I'd agree on this one.
Carloswill wrote:Any ideas why ZoneMinder can't use /dev/video0? It appears that only root and video can read/write to this. Should I chmod 777 /dev/video0?
chmoding it should work, and if your not fussed about "everyone" (meaning people logged into your computer) being able to view the camera, then it's probably easier. The other alternative is to find out what user zoneminder is running under and add it to the video group. If you run "ps -AF", it will show you a list of every process and the user running it. Just dig it out from there, and use "gpasswd -a [username] video" and restart zoneminder. From what I can see, if you do "ps -AF | grep zm", it should give you the zoneminder-related info. If you have no luck, let me know and I'll install it at my end and give it a go myself.
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 5x320GB WD 7200rpm Caviar RE2 (RAID5), Nvidia 6600GT 256MB
Laptop: Intel Pentium M 1.5GHz, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB

Carlosinfl
Posts: 889
Joined: 2005-02-05 06:11
Location: Orlando, FL

#19 Post by Carlosinfl »

I just ran this command:

Code: Select all

cwilliams@watcher:~$ su
Password: 
watcher:/home/cwilliams# ps -AF | grep zm
www-data 11119     1  0  2966  6520   0 May08 tty1     00:00:07 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
www-data 11146 11119  0  4330 13132   0 May08 tty1     00:00:00 /usr/bin/perl -wT /usr/bin/zmfilter.pl
www-data 11149 11119  0  2968  7644   0 May08 tty1     00:00:00 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
www-data 11152 11119  0  2938  7520   0 May08 tty1     00:00:05 /usr/bin/perl -wT /usr/bin/zmwatch.pl
root      9130  9128  0   739   740   0 18:29 pts/0    00:00:00 grep zm
Would I be correct in understanding that the user is www-data?

Should I run the command you suggested against www-data?

User avatar
chrismortimore
Posts: 849
Joined: 2007-04-24 06:34
Location: Edinburgh, UK

#20 Post by chrismortimore »

Yup, "gpasswd -a www-data video" should do it. Remember to restart zoneminder and any related programs afterwards.
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 5x320GB WD 7200rpm Caviar RE2 (RAID5), Nvidia 6600GT 256MB
Laptop: Intel Pentium M 1.5GHz, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB

Carlosinfl
Posts: 889
Joined: 2005-02-05 06:11
Location: Orlando, FL

#21 Post by Carlosinfl »

OK - I ran the "gpasswd -a www-data video" command and then restarted Zoneminder via /etc/init.d/zoneminder restart and then even deleted and readded my monitor and I still had nothing. So then I went back and chmod 777 /dev/video0 and restarted Zoneminder and I can't get any video for some reason. I don't know what I am or have done wrong... :cry:

Stian1979
Posts: 316
Joined: 2007-07-29 14:57

#22 Post by Stian1979 »

I did not make zoneminder work using fedora both instaling from source and from repo.

Repo would not start while from source would not show video.

How do I add the repo where zoneminder is for debian?

Stian1979
Posts: 316
Joined: 2007-07-29 14:57

#23 Post by Stian1979 »

Newer mind, someone helped me out, but I can not findout how to use this.

When I go to var/www and click index I only get a webpage saying in big leters IT WORKS. I gues that is a test html for apashe.

Wen I complied from source the index for zoneminder was at var/www, but I newer got the streaming working..

How do I load the webpage showing zoneminder??

EDIT:Tested typing localhost in my browser witch returned
Not Found
The requested URL / was not found on this server.
Apache/2.2.4 (Debian) PHP/5.2.3-1+b1 Server at localhost Port 80

Post Reply