Zoneminder installieren und konfigurieren

Zoneminder installieren und konfigurieren

If you are not experienced with Linux and would like a quick way to get Zoneminder running for you, consider Zoneminder on a stick, a per-configured Lubuntu 14.04 with Zoneminder 1.29.0. See: https://wiki.zoneminder.com/Lubuntu_14.04_with_Zoneminder_1.29.0_pre-configured_CD_or_USB

Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server

Log in then become root:

sudo su

Make sure you are up to date

apt-get update
apt-get upgrade
apt-get dist-upgrade

Add Repository

add-apt-repository ppa:iconnor/zoneminder

Update Sources

apt-get update

Install Zoneminder and PHP5-GD

apt-get install zoneminder php5-gd

You may be prompted to set up Nulmailer. You may accept the defaults and set this up later if you want to use it.

Note: 20FEB16 It has been reported that you may need to add the following if you want to run the libvlc source type:

apt-get install libvlc-dev libvlccore-dev vlc

Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL). You will be prompted for the MySQL root password.

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload

Set permissions of /etc/zm/zm.conf to root:www-data 740

chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf

Add delay to allow MySQL to start before Zoneminder

nano /etc/init.d/zoneminder

Add sleep 15 after the existing „start() {“ as shown:

start() {
     sleep 15
     echo -n "Starting $prog: "

Ctrl+o Enter to save

CTRL+x to exit

Create a new user

adduser www-data video

Enable CGI, Zoneminder and rewrite configuration in Apache.

a2enmod cgi
a2enconf zoneminder
a2enmod rewrite

Start Zoneminder

service zoneminder start

Add timezone to PHP

nano /etc/php5/apache2/php.ini

Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Berlin

Ctrl+o Enter to save

CTRL+x to exit

Restart Apache

service apache2 reload

 

 

 

 

Suche

3 Instar

Suche

3.1 IN-2905

You have two methods to access the images (see Remote Host Path):

  • Remote Protocol: HTTP
  • Remote Method: Simple
  • Remote Host Name: {username}:{password}@{camera ip}
  • Remote Host Port: 80
  • Remote Host Path: /videostream.cgi? (i need to use /videostream.cgi?resolution=32&rate=0& to get the highest resolution and fps)
  • or
  • Remote Host Path: /snapshot.cgi?
  • Remote Image colors: 24 bit
  • Capture Width: 640
  • Capture Height: 480

Select the right resolution for the camera, such as 640×480. To set the resolution for the camera, use a web browser and go to the configuration page of the camera. While in the configuration page, also set the the username and password accordingly.

Suche

3.2 IN-6012-POE (FW 3.1.2.29)(WEB 1.0.3.4)

  • Remote Protocol: HTTP
  • Remote Method: Simple
  • Remote Host Name: {username}:{password}@{camera ip}
  • Remote Host Port: 80
  • Remote Host Path: /tmpfs/snap.jpg
  • Remote Image colors: 24 bit
  • Capture Width: 1280
  • Capture Height: 720