In this article, I’ll walk through the process of setting up MotionEyeOS on a Raspberry Pi, using a cheap USB webcam to create a DIY CCTV system.
MotionEyeOS is a pre-configured Linux distribution that turns your Raspberry Pi into a home CCTV system. You can set up multiple cameras and set them to detect motion or record on a timer, and send the resulting photos and videos to you via email or save them to online storage.
What You’ll Need
A Raspberry Pi
A USB Web camera (or cameras)
A wired network to set things up
A cup of tea to drink while things install
Downloading and Installing MotionEyeOS for Raspberry Pi
Logging in to MotionEyeOS
By default, MotionEyeOS has two users configured
Username ‘admin,’ with no password
Username ‘user,’ also with no password
The user will only have permission to view video streams and cannot edit the configuration.
A CCTV system needs to be able to see. So plug in your USB web camera and wait a few seconds before clicking the message to add it to the system in the right-hand panel in the web UI.
There are a few other bits and pieces you’ll want to configure before finishing up.
So there it is! My duck is under close surveillance.
MotionEyeOS is an inexpensive way to build a home CCTV system. The Raspberry Pi 4 has 4 USB ports on it, so you could add up to 4 USB cameras and use some USB extension cables to position them to watch your holiday shack or garage.
Commercial cloud CCTV systems can run hundreds of dollars and require monthly subscriptions – combining a Raspberry Pi, MotionEyeOS, and a Dropbox account can achieve this for much less.
USB webcams can be found for pennies on online auction sites, and MotionEyeOS also supports a variety of networked cameras if you want to expand your system outside of the reach of USB cables.
I'm Brad, and I'm nearing 20 years of experience with Linux. I've worked in just about every IT role there is before taking the leap into software development. Currently, I'm building desktop and web-based solutions with NodeJS and PHP hosted on Linux infrastructure. Visit my blog or find me on Twitter to see what I'm up to.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.