Build a Self-Hosted Home Security Camera Monitoring Center on VPS with Shinobi and ZoneMinder
This technical guide provides a complete step-by-step process to build a self-hosted home security camera monitoring center using a VPS with Shinobi and ZoneMinder. It covers system...
Image credit: geralt · Pixabay Content License
This technical guide provides a complete step-by-step process to build a self-hosted home security camera monitoring center using a VPS with Shinobi and ZoneMinder. It covers system requirements, installation, configuration, camera integration, alert setup, and security hardening, enabling full control over data, costs, and privacy. Both solutions are open-source NVR platforms that support RTSP camera integration and advanced video surveillance features.
Prerequisites
To successfully deploy this system, you need:
- A NVMe Cloud VPS with at least 2GB RAM, 2 CPU cores, and 50GB SSD storage. The VPS should run Linux (Ubuntu 20.04 or 22.04 is recommended).
- A public IP address or domain name for remote access.
- SSH access to the VPS.
- IP cameras supporting RTSP (Real Time Streaming Protocol).
Install Shinobi
Shinobi is a modern, lightweight, and easy-to-configure NVR system. Follow these steps:
Step 1: Update the system
sudo apt update && sudo apt upgrade -y
Step 2: Install Node.js and npm
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -\nsudo apt install -y nodejs
Step 3: Install Shinobi
cd /opt\nsudo git clone https://github.com/shinobi-cc/Shinobi.git\ncd Shinobi\nsudo npm install\nsudo npm run setup
Step 4: Configure Shinobi
Run the setup command to initialize configuration:
sudo npm run setup
Follow the prompts to set up an admin account, choose a database (SQLite or PostgreSQL), and configure network options.
Install ZoneMinder
ZoneMinder is a stable, long-standing NVR solution ideal for environments requiring high reliability.
Step 1: Install dependencies
sudo apt install -y apache2 mysql-server php php-mysql php-gd php-curl php-xml php-mbstring php-zip php-intl libapache2-mod-php
Step 2: Install ZoneMinder
sudo apt install -y zoneminder
During installation, the system will prompt you to set a MySQL database password.
Step 3: Configure Apache and MySQL
Restart Apache:
sudo systemctl restart apache2
Access the admin panel at http:// and log in with the default credentials (admin/admin).
Integrate IP Cameras
Both Shinobi and ZoneMinder support RTSP camera integration. You must provide the camera's RTSP URL in the admin interface.
For example, an Hikvision camera RTSP URL may look like:
rtsp://username:[email protected]:554/Streaming/Channels/101
Replace username, password, and 192.168.1.100 with your actual camera credentials and IP address.
Set Up Alerts and Notifications
To receive alerts when motion is detected, integrate Shinobi or ZoneMinder with services like Gotify.
For example, in Shinobi, configure motion alerts to send notifications via the Gotify API.
Ensure Security
To protect your system, take these steps:
- Set a strong password for the admin account.
- Enable HTTPS using Let's Encrypt with Nginx or Apache.
- Configure UFW firewall to allow only ports 80 (HTTP) and 443 (HTTPS).
- Regularly update the system and software.
Test and Verify
To verify the system works correctly:
- Add an IP camera to the system.
- Test the camera connection and video stream.
- Trigger motion detection and verify notifications.
Troubleshooting
If you cannot connect to a camera:
- Ensure the camera is powered on and the RTSP URL is correct.
- Check the VPS and router firewall settings.
- Review error logs in Shinobi or ZoneMinder.
References
- Shinobi GitHub
- ZoneMinder Documentation
- Self-Host Ghost CMS on Docker - Guide to deploying self-hosted software.
Recommended NVMe Cloud VPS Plans to Deploy This Setup
Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.
VPS-3E
10% VAT included
- CPU: 2 vCPU
- RAM: 4 GB
- SSD: 50 GB NVMe
