Installing zoneminder on ubuntu

To install ZoneMinder on Ubuntu, you will need to follow these steps:

  1. Install the necessary dependencies:
Copy codesudo apt-get install apache2 mariadb-server libmariadb-dev libssl-dev libjpeg-dev libpcre3-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libmysqlclient-dev libpq-dev libwebp-dev
  1. Create a new database and user for ZoneMinder:
Copy codesudo mysql -u root -p
CREATE DATABASE zm;
GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass';
FLUSH PRIVILEGES;
exit;
  1. Download and extract the latest version of ZoneMinder
Copy codewget https://github.com/ZoneMinder/ZoneMinder/releases/download/v1.34.29/zm-1.34.29.tar.gz
tar xvzf zm-1.34.29.tar.gz
cd zm-1.34.29
  1. Configure and install ZoneMinder
Copy code./configure --with-webdir=/usr/local/www --with-cgidir=/usr/local/www/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=x86_64 --with-libjpeg --with-mysql --with-pgsql --with-ffmpeg --with-webp
make
sudo make install
  1. Configure Apache for ZoneMinder
Copy codesudo ln -s /etc/zm/apache.conf /etc/apache2/conf-available/zoneminder.conf
sudo a2enconf zoneminder
sudo a2enmod cgi
sudo service apache2 restart
  1. Finally, you can access the ZoneMinder web interface by going to http://localhost/zm in your web browser.

Please be aware that this is a general overview of the installation process and may have some variations depending on the version of Ubuntu, or the version of ZoneMinder you are trying to install. You should also read the official documentation and make sure your system meets the requirements, before attempting the installation.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *