Do you want to automatically upload the captured images or videos from your webcam to a remote server? Do you want to know who has been stealing your chickens? If you answered yes to any of the questions above, then you should read on.
Now it’s time to walk you through the process of installing your very own homemade security spy camera on Ubuntu. Take note that this can be done using other Linux distros as well. But before going on, I’m assuming that your webcam has the right driver and is fully working already.
So let’s get down to business:
You can install it via Synaptic Package Manager GUI or via the terminal:
sudo apt-get install motion Step-2: After installation, you have officially converted your ordinary webcam into a motion-detecting camera. The only thing that you need to do now is to start tracking movement and capture images by running “Motion” from the terminal:
Saving captured images…
You can stop “Motion” by pressing CTRL+C.
You can go HERE to know about several “Motion” config file options.
Step-3: Actually we can stop at “Step 2” because we already have a reliable camera that can be used for security purposes. But that may sound boring to some of our adventure seeking advanced users. So let’s go on and set-up “Motion” to send and save the captured images to a remote FTP server.
First, let’s install “wput”. –It’s a command line FTP client:
sudo apt-get install wput
on_picture_save wput ftp://username:password@yourserver %f
Step-4: You will now be able to open the Motion web interface by typing in localhost:8000 from the server itself or XXX.XXX.X.XXX:8000 from a remote computer’s web browser. To view a live stream of your webcam type localhost:8001 from the server or XXX.XXX.X.XXX:8001 from a web browser.
That’s about it. Enjoy your new motion-detecting spy camera. Now it’s your job to put that webcam on the right spot and perhaps apply a camouflage to hide it.