Installing Zoneminder on Elementary OS
Zoneminder is a free and open-source camera security and surveillance software that allows you to monitor and record multiple streams of video from various cameras. In this tutorial, we will guide you through the installation of Zoneminder on Elementary OS.
Prerequisites
Before you begin, ensure that your Elementary OS system is up-to-date by running the following command:
sudo apt update && sudo apt upgrade
Installing Dependencies
Zoneminder requires some dependencies to be installed on your system. Run the following command to install them:
sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-gd libphp-jpgraph libarchive-zip-perl libmime-lite-perl libunix-syslog-perl libwww-perl libdbd-mysql-perl libsys-cpu-perl libsys-meminfo-perl libio-multiplex-perl libjson-perl
Installing Zoneminder
- First, you need to add the Zoneminder repository to your system. Run the following command:
echo 'deb https://zmrepo.zoneminder.com/debian/release-1.34.23 buster/' | sudo tee /etc/apt/sources.list.d/zoneminder.list
- Next, add the GPG key for the Zoneminder repository:
wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | sudo apt-key add -
- Once the repository has been added and the key has been added, update the system's package list:
sudo apt update
- Finally, install Zoneminder using the following command:
sudo apt install zoneminder
Configuring Zoneminder
- Start the Zoneminder service using the following command:
sudo systemctl start zoneminder
- To enable Zoneminder on boot, run the following command:
sudo systemctl enable zoneminder
- You need to give the user permissions to access the Zoneminder files.
sudo usermod -a -G www-data <username>
Replace <username> with your user's name.
Now, open your web browser and go to
http://localhost/zm/to access the Zoneminder web interface.Login with username
adminand passwordadmin. You are recommended to change this password once you have logged in.
That's it! You have successfully installed and configured Zoneminder on your Elementary OS system. You can now use Zoneminder to monitor and record videos from your cameras.