How to Install Zoneminder on Debian Latest

In this tutorial, we will guide you through the steps to install Zoneminder on Debian latest.

Prerequisites

Before proceeding with the installation, make sure your system meets the following prerequisites:

Step 1: Update the System

The first step is to update the system to the latest version. To update the system, run the following commands in the terminal:

sudo apt-get update
sudo apt-get upgrade

Step 2: Install Required Packages

Before installing the Zoneminder, we need to install some essential packages. To install required packages, run the following command:

sudo apt-get install lamp-server^ libvlc-dev libapache2-mod-php php-mysql php-gd libmysqlclient-dev libz-dev libjpeg-dev libpng-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev libperl-dev libcrypt-openssl-rsa-perl libwww-perl libjson-perl libssl-dev libarchive-zip-perl libmime-lite-perl build-essential

Step 3: Install Zoneminder

Now, we can begin to install Zoneminder. To install Zoneminder, follow these steps:

  1. Add the Zoneminder repository by running the following command:
echo 'deb http://deb.debian.org/debian buster-backports main' | sudo tee /etc/apt/sources.list.d/backports.list
  1. Update the system repositories by running the following command:
sudo apt-get update
  1. Install the Zoneminder package by running the following command:
sudo apt-get install zoneminder

Step 4: Configure Zoneminder

After the installation, we need to configure Zoneminder. To configure Zoneminder, follow these steps:

  1. Configure the Zoneminder database by running the following command:
sudo mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
sudo mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
  1. Start the Zoneminder service by running the following command:
sudo systemctl start zoneminder.service
  1. Enable the Zoneminder service to start at boot time by running the following command:
sudo systemctl enable zoneminder.service

Step 5: Access Zoneminder Web Interface

Zoneminder should be ready to use now. To access Zoneminder, open a web browser and go to http://localhost/zm or http:///zm. You can log in with the default username and password (admin:admin).

Conclusion

In this tutorial, we have successfully installed Zoneminder on Debian latest. You can now use Zoneminder to monitor your cameras and record video.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!