theuser
July 10th, 2003, 01:19 AM
This tutorial is aimed at those who seek a degree of protection with the installation of a motion detecting web camera.
One often overlooked area in computer security is physical security. Your own home computer can be a powerful tool used to protect your assets. One simple and rather inexpensive way to add a bit of security to your home is to install a web camera with motion detection capablities. (*Warning*: it probably isn't a good idea to install a camera into an office, public area, or other workplace without express written consent of the owners. You may violate laws and company policies otherwise, and its just plain creepy.) This may sound complicated but, infact with a little patience it can be done, and work quite well. This tutorial will focus primarily around *nix based systems and the excellent software named Motion.
Some basic supplies needed will be:
-A camera that is supported by your operating system. (Many common webcams have support built into the lastest linux kernels.)
-An open USB slot on your computer.
-USB extension cords if you plan to put the darn thing on your roof.
-Software with motion detection capablities. (Some Windows drivers come with this, for *nix a good one to use is Motion. http://motion.sourceforge.net)
-Some patience, and some sort of heavily caffeinated beverage.
Optional:
-mpeg_encode for Motion to convert jpeg to mpeg.
-ffmpeg if you want realtime mpeg encoding for Motion.
The Setup:
-First plug the webcam into an open usb slot on your computer.
-Next fire it up!
-If using Windows, you will now need to install the drivers that likely came with the camera.
-If using *nix, hopefully the camera is automatically detected by the kernel upon startup. (If it is not, there are many websites that provide detailed instructions to get it working.)
-Next you need to find a good location for the camera, preferably one with full coverage of the area to be protected.
-XawTV for *nux is a decent utility to see what the camera is seeing. (You may need to adjust the settings if you have a TV card, the webcam is likely video0 or video1)
Installing Motion:
-Motion is a superb piece of software that allows jpegs to be taken whenever a motion event occurs, and then automatically converted to mpeg.
-Follow the install instructions on the website that I provided earlier. The quick way is this:
1) cd /usr/local
2) tar -xvzf /PATH/motion-VERSION.tar.gz
3) cd motion-VERSION
4) ./configure
5) make
6) make install
-Next, determine if the default settings in /usr/local/etc/motion.conf (default location) are ok for your setup. You may need to adjust these settings with care though!
Running Motion:
-It is useful to type 'motion -h' to see some of the options available.
-Run motion. (Example: motion -B -Q -f 4 -t /home/user/Video)
-That's it! You survived!
Hopefully this will be enough information for the average person to get going. If not, there is a great deal of info available on the web. Just use the all powerful Google. Let me also say that I am certainly no expert on this, so forgive my ignorance. :) I have attached below a sample image that my camera has taken. (The white box in the image is the location where Motion detected movement, cool huh?)
One often overlooked area in computer security is physical security. Your own home computer can be a powerful tool used to protect your assets. One simple and rather inexpensive way to add a bit of security to your home is to install a web camera with motion detection capablities. (*Warning*: it probably isn't a good idea to install a camera into an office, public area, or other workplace without express written consent of the owners. You may violate laws and company policies otherwise, and its just plain creepy.) This may sound complicated but, infact with a little patience it can be done, and work quite well. This tutorial will focus primarily around *nix based systems and the excellent software named Motion.
Some basic supplies needed will be:
-A camera that is supported by your operating system. (Many common webcams have support built into the lastest linux kernels.)
-An open USB slot on your computer.
-USB extension cords if you plan to put the darn thing on your roof.
-Software with motion detection capablities. (Some Windows drivers come with this, for *nix a good one to use is Motion. http://motion.sourceforge.net)
-Some patience, and some sort of heavily caffeinated beverage.
Optional:
-mpeg_encode for Motion to convert jpeg to mpeg.
-ffmpeg if you want realtime mpeg encoding for Motion.
The Setup:
-First plug the webcam into an open usb slot on your computer.
-Next fire it up!
-If using Windows, you will now need to install the drivers that likely came with the camera.
-If using *nix, hopefully the camera is automatically detected by the kernel upon startup. (If it is not, there are many websites that provide detailed instructions to get it working.)
-Next you need to find a good location for the camera, preferably one with full coverage of the area to be protected.
-XawTV for *nux is a decent utility to see what the camera is seeing. (You may need to adjust the settings if you have a TV card, the webcam is likely video0 or video1)
Installing Motion:
-Motion is a superb piece of software that allows jpegs to be taken whenever a motion event occurs, and then automatically converted to mpeg.
-Follow the install instructions on the website that I provided earlier. The quick way is this:
1) cd /usr/local
2) tar -xvzf /PATH/motion-VERSION.tar.gz
3) cd motion-VERSION
4) ./configure
5) make
6) make install
-Next, determine if the default settings in /usr/local/etc/motion.conf (default location) are ok for your setup. You may need to adjust these settings with care though!
Running Motion:
-It is useful to type 'motion -h' to see some of the options available.
-Run motion. (Example: motion -B -Q -f 4 -t /home/user/Video)
-That's it! You survived!
Hopefully this will be enough information for the average person to get going. If not, there is a great deal of info available on the web. Just use the all powerful Google. Let me also say that I am certainly no expert on this, so forgive my ignorance. :) I have attached below a sample image that my camera has taken. (The white box in the image is the location where Motion detected movement, cool huh?)