New install on Ubuntu Server

Forum for questions and support relating to the 1.24.x releases only.
Locked
gowrath
Posts: 4
Joined: Wed May 11, 2011 1:12 am

New install on Ubuntu Server

Post by gowrath »

Hello,

I have a computer running Ubuntu server (11.04) with 4 generic usb cameras I purchased on ebay.
The computer runs Motion with no problems but I can't get ZoneMinder running (I'm trying to get zoneminder running with one camera first).
I installed zoneminder by typing:

Code: Select all

apt-get install zoneminder
.
I set permissions on /dev/video0 to 777.
when I type:

Code: Select all

zmu -d /dev/video0 -q -v
I get:
Video Device: /dev/video0
General Capabilities
Driver: uvcvideo
Card: USB 2.0 PC Camera
Bus: usb-0000:00:11.2-5
Version: 1.0.0
Type: 0x4000001
Supports video capture (X)
Does not support video output
Does not support frame buffer overlay
Does not support VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Does not support read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
Formats:
YUV 4:2:2 (YUYV) (YUYV)
Crop Capabilities
Bounds: 640 x 480
Default: 640 x 480
Current: Cropping is not supported
Inputs: 1
Input 0
Name: Camera 1
Type: Camera
Audioset: 00000000
Standards: 0x0
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Screen caps of my settings are attached.
If I click "Probe" I get:
Can't parse command output 'd:/dev/video0|D:uvcvideo|C:USB 2.0 PC Camera|B:usb-0000:00:11.2-5|V:1.0.0|T:0x4000001|S|F:YUYV|B:640x480|I:1|i0:Camera 1|i0T:Camera|i0S:0|i0SP:1|i0SS:1|i0SC:1|i0HP:1'
I would appreciate it if someone could guide me through the process of getting it up and running.

Thanks.
Attachments
zm3.PNG
zm3.PNG (22.89 KiB) Viewed 2793 times
zm2.PNG
zm2.PNG (35.46 KiB) Viewed 2793 times
zm1.PNG
zm1.PNG (36.31 KiB) Viewed 2793 times
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: New install on Ubuntu Server

Post by PacoLM »

Your should check your logs in /var/log/syslog to see what is exactly the error zoneminder is findind. Did you checked your shared memory settings?. Is one of the most common sources of problems when trying to see the image.

Read this post: http://www.zoneminder.com/forums/viewto ... 21&t=17595, it contains a script that should tell the proper settings for your zm system.

If does not work, post a extract of the log with the errors.

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Polyphemus
Posts: 3
Joined: Sun May 08, 2011 5:36 pm

Re: New install on Ubuntu Server

Post by Polyphemus »

Have you tried changing 'dev/video' to 'dev/video0' as device for your camera in the gui-settings?
gowrath
Posts: 4
Joined: Wed May 11, 2011 1:12 am

Re: New install on Ubuntu Server

Post by gowrath »

Have you tried changing 'dev/video' to 'dev/video0' as device for your camera in the gui-settings?
Whoops! :oops:
I changed it to /dev/video0 and now when I probe I get:
Unable to probe local cameras, status is '255'
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: New install on Ubuntu Server

Post by PacoLM »

Forget about probing, could you post the ERR output in the /var/log/syslog file?. Without any log, we could not know where the error come from!.

Regards,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
gowrath
Posts: 4
Joined: Wed May 11, 2011 1:12 am

Re: New install on Ubuntu Server

Post by gowrath »

Did you checked your shared memory settings?. Is one of the most common sources of problems when trying to see the image.

Read this post: viewtopic.php?f=21&t=17595, it contains a script that should tell the proper settings for your zm system.
Ran the script and increased my kernel.shmmax to the recommended amount and rebooted.
Here are the ERR from the syslog:
Line 644: May 12 16:52:11 p4 zmfix[683]: ERR [Can't connect to server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
Line 717: May 12 16:52:14 p4 zmfix[803]: ERR [Can't chmod /dev/video0 to 20666: Operation not permitted]
Line 725: May 12 16:52:18 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Line 735: May 12 16:52:19 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Line 752: May 12 16:52:24 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Line 760: May 12 16:52:34 p4 zmdc[837]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Thanks.
Locked