Before you begin, you will need the following items:
- A dedicated "server" for ZoneMinder (open-source security camera software) with sufficient hardware requirements
- Ubuntu Server 14.04 LTS disk (you can use Ubuntu Desktop if you have sufficient hardware requirements)
Once you have Ubuntu 14.04 LTS installed on your dedicated server, you can proceed to install ZoneMinder using the default configuration described on their Wiki site. Link here: ZoneMinder - Wiki - Ubuntu Server 14.04 64-bit with Zoneminder 1.26.5 the easy way
After installation, you should be able to navigate to ZoneMinder server by visiting: http://IP_address/zm/
1.) Create a self-signed certificate:
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
2.) Activate Apache SSL module:
sudo a2enmod ssl
3.) Activate Apache default SSL virtual host:
sudo a2ensite default-ssl
4.) Disable HTTP listening port
sudo nano /etc/apache2/ports.conf
(Remove "Listen 80" to disable listening on port 80)
sudo a2dissite 001-default
6.) Update default-ssl Apache site "DocumentRoot" to ZoneMinder directory
sudo nano /etc/apache2/sites-available/default-ssl.conf
(Update DocumentRoot from /var/www/html to /usr/share/zoneminder)
sudo service apache2 restart
After restarting the Apache service, you should be able to navigate to: https://IP_address
Since the certificate is self-signed, you will need to accept the certificate on any/all new computers.
(NOTE: You will need to forward port 443 from your router to the ZoneMinder server's local IP address if you plan on accessing ZoneMinder from outside your network. I have a short and sweet blog here if you would like to learn more: Troubleshooting Port Forwarding)
CONFIGURING USER AUTHENTICATION
Navigate to your ZoneMinder console and select "Options" in the top right.
User authentication is based on a hash key. By default, the AUTH_HASH_SECRET field is empty and you will need to enter a randomly generated alphanumerical hash key (ex: T3lX2djReXx9h8) before saving.
Default password: admin
You will need to either change the default password for "admin" or create a new account entirely. As you can see, I created an account for myself and deleted the old admin account.
To confirm the changes, restart the ZoneMinder and Apache2 service with the following command:
sudo service zoneminder restart && sudo service apache2 restart
Thank you everyone for taking the time to read my blog! If you have any issues configuring your ZoneMinder server, feel free to leave a comment and I will do my best to assist you.
As always, good luck!