Skip to content

Instantly share code, notes, and snippets.

@Snarp
Created September 22, 2021 20:18
Show Gist options
  • Save Snarp/7fa9f53c56cd12b9a87077829bdb422e to your computer and use it in GitHub Desktop.
Save Snarp/7fa9f53c56cd12b9a87077829bdb422e to your computer and use it in GitHub Desktop.
Steps used September 2021 to get Zoneminder working on Ubuntu 18.04
#!/usr/bin/env bash
# Steps used September 2021 to get Zoneminder working on Ubuntu 18.04 with a
# Reolink RLC-410W camera.
# Install dependencies:
sudo apt-get install tasksel
sudo tasksel install lamp-server
# Add repo and install Zoneminder itself:
# sudo add-apt-repository ppa:iconnor/zoneminder-1.34
# NOTE: The above version could detect camera, but not streaming profiles,
# making camera setup impossible. This appears to be a relatively common issue:
# <https://forums.zoneminder.com/viewtopic.php?t=28922>
sudo add-apt-repository ppa:iconnor/zoneminder-1.36
sudo apt update
sudo apt install zoneminder
# REVIEW: Optional?
# Change some permissions to its config/data directories:
sudo chmod 740 /etc/zm/zm.conf
sudo chown root:www-data /etc/zm/zm.conf
sudo chown -R www-data:www-data /usr/share/zoneminder/
# Configure and reload Apache server:
sudo a2enmod cgi
sudo a2enmod rewrite
sudo a2enconf zoneminder
# Edit time zone in `/etc/php/7.2/apache2/php.ini`:
# (Time zone formatting examples:
# <https://www.php.net/manual/en/timezones.php>)
#
# [Date]
# ; Defines the default timezone used by the date functions
# ; http://php.net/date.timezone
# date.timezone = America/New_York
# Reload Apache:
sudo systemctl reload apache2
# Actually start Zoneminder:
sudo systemctl enable zoneminder
sudo systemctl start zoneminder
# In the browser, open:
#
# <http://localhost/zm/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment