Catch Creeps and Thieves in Action: Set Up a Motion-Activated Webcam DVR in Linux
Written By
Alex Long
https://twitter.com
Published 3 months ago
Last edited 3 months ago

When it comes to webcams these days, most people are using their laptops over desktops. The cameras are centered, integrated, and require no configuring. They're a cinch and usually have great resolution. So, then what do we do with all of those old wired desktop webcams that we've accrued over the years? Even if you still use an external USB one, chances are you're not using it daily, so why not come up with a better use for it?

The answer—home security. We can use those external webcams to beef up our home security with motion-activated surveillance. You could also use it for other situations, such as leaving a child home alone or making sure animals are digging in your trash. This could be coupled with Arduino and Python for some motion-recorded alarm action.

So, for this Null Byte, let's check out how we could secure our home with our Linux computer and that old webcam.

Requirements

  • Linux
  • USB or integrated camera

NOTE: The software we will use supports many other cameras, but this is strictly for readability.

Step 1 Install the Software

Text in bold is a terminal command.

First, we need to install ZoneMinder and all of its dependencies. ZoneMinder is a free utility for Unix-based operating systems that records and monitors your webcam via motion activation. You can even stream them over the internet (the client is a server natively!).

1. Install the dependencies using your package manager. The package names for Ubuntu are:

ffmpeg libarchive-tar-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libjpeg62 libmime-perl libstdc++6 libwww-perl zlib1g

2. After that, get ZoneMinder installed:

wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz

3. Extract and install ZoneMinder:

tar zxvf ZoneMinder-1.25.0.tar.gz && cd <new dir> && ./configure && make && install

4. Configure Apache:

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

sudo /etc/init.d/apache2 force-reload 

5. Add user to group for use with ZoneMinder:

sudo gpasswd -a <user> www-data

Run the program and get to the video!

Step 2 Video Monitoring

When the service is running, visit your localhost to check if it's working properly.

http://<your IP address>/zm

Then, customize the configuration via the web interface. The first step is to add some cameras.

Catch Creeps and Thieves in Action: Set Up a Motion-Activated Webcam DVR in Linux

You can set it to motion-detect recording only, which I highly recommend.

Catch Creeps and Thieves in Action: Set Up a Motion-Activated Webcam DVR in Linux

Save the settings and then check out the view. If you forward the port that you run ZoneMinder on, you can view the camera remotely from an internet connection. Remote security for all of about $10. Awesome.

Be a Part of Null Byte!

Photo by abc

Comments

Add your comment:
0 / 2000

462 Members | 68 Contributing Members (15%)

Join Our World

  • Allen Freeman
  • Matthew Herman
  • Bird andBear
  • JT Newsome
  • occupytheweb otw
  • Justin Meyers
  • chi square
  • Bryan Crow
  • ChristopherVoute
  • Alex Salas
View All Members

Null Byte

Null Byte is a world for anyone interested in science, networking, social engineering, security, and getting root. Any like-minded tech enthusiast looking to protect themselves from malicious script kiddies and shorcuts for everyday life will find their home here.

We're going to take it from an IP address to programing, all the way to reverse engineering, getting root, and finding zero-day vulnerabilities.

If you don't understand any of this, don't worry, this is the place to begin!

Join us and discuss topics in a secure and anonymous format in our channel #nullbyte on IRC2P

Google+
Twitter

FREE sup_g | FREE kayla | FREE palladium | FREE topiary | FREE pwnsauce

Allen Freeman Allen Freeman - World Admin World created 7 months ago

loading...