« SQL Server Injection Cheat SheetUbuntu Webcam »

15 comments

Comment from: Chris Gibson [Visitor]
Hi I am trying to get this working because it seemed very interesting and had been wanting to do something like this for a while. I get to the step where you execute the command to test the server (sudo /etc/init.d/webcam-server start) and get the following error:
sudo: /etc/init.d/webcam-server: command not found

I am still somewhat new to linux and am not sure where I need to start looking to resolve this. Any help would be greatly appreciated.

Thanks,
Chris
06/17/09 @ 18:28
Comment from: admin [Member] Email
Chris,

Perhaps your /etc/init.d/webcam-server got messed up. Did you copy the code and paste it into /etc/init.d/webcam-server, or did you use the link to download the file and place it in /etc/init.d/?

If you copied and pasted the text, instead try right clicking and saving the startup script using the link with the text "use this one". Then, use the sudo command to copy the webcam-server script to /etc/init.d/.

If you don't need a startup script, simply run:

webcam-server

with no options. Then try visiting the localhost address I provided. Reply with your results.
06/17/09 @ 19:00
Comment from: Chris Gibson [Visitor]
Ok, I removed the webcam-server file that i just copied and pasted the text with and replaced it by saving the script file that you provided via the link. I am still getting the same message. I also just tried to run the webcam-server command with no options and got this error:
/dev/video0: No such file or directory
unable to initialise camera

I am assuming that this is a problem with the camera but can't say that with 100% confidence. I am again at a loss for what to do. Thank you for your help and time, I look forward to your reply.

Chris
06/17/09 @ 20:16
Comment from: admin [Member] Email
Chris,

Has your webcam ever worked before? Does the file /dev/video0 actually exist on your hard drive?

You could try running:

webcam-server -d /dev/video1

or

webcam-server -d /dev/video2

if those files exist.
06/17/09 @ 20:44
Comment from: Chris Gibson [Visitor]
The camera has never worked before, today was the first time I have hooked it up to my computer. There are no /dev/videoX files anywhere. Does it matter that it is a USB webcam?

Chris
06/17/09 @ 21:57
Comment from: Steve [Visitor]
Been doing it a long time now using VLC to grab a stream and encode it to mp4 format, then pass it off to a box running Darwin Streaming Server (the Free version of Quicktime Streaming Server from Apple). Great combination, especially since you can use multiple machines to send sources to teh DSS box and the DSS box will handle all the viewing clients. Now if I just had a budget to put a bunch of cams out in our teaching zoo....
06/18/09 @ 09:23
Comment from: Jim [Visitor]
Chris:

sudo chmod 777 /etc/init.d/webcam-server

then

sudo /etc/init.d/webcam-server start

06/18/09 @ 10:55
Comment from: admin [Member] Email
Oops, thanks Jim. It doesn't need 7777 though, just saying chmod +x ... will do the trick.
06/18/09 @ 11:51
Comment from: Arthur [Visitor] · http://www.Amendt.net
Thanks for This! Everything works for me until I install apache2. When I try to run apache2 it gives me "bad user name ${APACHE_RUN_USER} apache2 -h works, but I am still lost. I am assuming I have to start apache2 so that the browser can load the webcam.html file
06/24/09 @ 15:01
Comment from: Arthur [Visitor] · http://www.Amendt.net
I guess I should have been using the following command to start apache
sudo /etc/init.d/apache2 start
06/24/09 @ 15:14
Comment from: Mark [Visitor] Email · http://24.18.97.111
I am trying to make my webcam stream instead of having to refresh the page for a new image. I host my own domains, so configuration won't be a problem. Is there another config. option for this. My FPS=3, but otherwise, I do can not find an appropriate man page. Help
07/13/09 @ 17:52
Comment from: Dale [Visitor]
Is it necessary to retain all the references to hacktivision.com in the scripts? Can my own domain name be used in place of the references to hacktivision.com
07/14/09 @ 09:16
Comment from: Michael [Visitor]
Are there any settings that need to be adjusted in Apache2 so that the stream is viewable from a remote machine?
07/16/09 @ 14:19
Comment from: leader [Visitor]
i can't make work the webcamera if i wiil use the internet i have static ip and when i'm try from my office no conection
07/25/09 @ 04:33
Comment from: Mikio [Visitor] Email · http://www.mahirunotsuki.co.cc/
Hey. First of all I want to thank you for your tutorial. It worked just fine, but now I don't know how to make the stream online so I can check on other computers; could you help me plesae?
08/02/09 @ 18:47

This post has 1093 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)