How to install zoneminder software in Linux

  
                

zoneminder is a free open source video surveillance software under Linux. Many people have a lot of problems during installation, and they won't even install it. Today, Xiaobian will introduce you to the method of installing zoneminder for Linux. Let's learn together.

Installation:

1) LAMP installation. LAMP is the initial combination of Linux, Apache, MySql, and PHP. You can also install Apace2, Mysql, and PHP separately. This is not recommended. One is because of trouble, and the other is because some libraries may be missed.

sudo su

apt-get install tasksel

tasksel

Move the up and down keys to the left side of the Lamp, press the space bar to select, then press the Tab key Move the cursor to Enter and press Enter to start the installation. Other options do not need to be modified to avoid configuration errors. After that, you will be prompted to set the password of the MySql database and so on.

You can access the Apache server after installation. Enter localhost in your browser to see the prompt.

2) Update the system package.

sudo su

apt-get update

apt-get upgrade

apt-get dist-upgrade

3) Installing zoneminder

sudo apt-get install zoneminder

4) Install H.264 package (if the camera supports H.264 format)

sudo apt-get install x264

5) Modify the zoneminder startup function, let MySql start before the zoneminder starts.

sudo nano /etc/init.d/zoneminder

Add sleep 15

in front of the ”zmfix -a” statement Control+x exits, prompts select &ldquo ;Y” save changes.

6) Create a symbolic link between apache and zonemin.

First check to see if the /etc/apache2/conf.d folder exists. Normal Apache2 does not ship with this folder after installation. If it does, you do not need to execute the following instruction.

mkdir /etc/apache2/conf.d

Create a symbolic link.

ln -s /etc/zm/apache.conf /etc/apache2/conf.d /zoneminder.conf

ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf

/etc/init.d/apache2 force-reload

adduser www-data video

7) Install Cambozola, this plugin is used to support video streaming.

cd /usr/src && wget

http://www.andywilcock.com/code/cambozola/cambozola-latest.tar.gz

Remember Advance the second line of the URL to the first line.

tar -xzvf cambozola-latest.tar.gz

cp cambozola-0.935/dist/cambozola.jar /usr/share/zoneminder

will be in the second instruction The 0.935 is replaced with the version name obtained by the first decompression instruction.

8) Add SSL to Apache.

a2a2ensite default-ssl

enmod ssl

service apache2 restart

9) Now you can enter localhost/zm to access the main interface of zoneminder.

10) If the display is blank, there may be some Linux versions that do not support cgi (computer graphics interface), you need to modify the configuration.

sudo nano /etc/php5/apache2/php.ini

Modify the off of short_open_tag = Off to On

sudo a2enmod cgi

/etc /init.d/apache2 force-reload

11) Now you can add a camera.

The above is the introduction of the Linux installation of zoneminder. When installing, you must first install LAMP, then update the system package, and then enter the command, the installation is complete.

Copyright © Windows knowledge All Rights Reserved