Tutorial

Instalação do Zoneminder (Debian-likes)

Faça o download dos pacotes:

Zoneminder : http://www2.zoneminder.com/downloads/ZoneMinder-1.24.2.tar.gz

(use sempre  a versão mais atual)Ffmpeg : http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2

Cambozola : http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.tar.gz

Extraia todos os arquivos na pasta /opt :

Primeiro compilar o ffmpeg:

# cd /opt

# tar -xvfj ffmpeg-0.5.tar.bz2

# cd ffmpeg-0.5

# chmod 777 *

# ./configure –enable-gpl –enable-nonfree –enable-pthreads –enable-libfaac –enable-libfaad –enable-libmp3lame –enable-libtheora –enable-libx264 –enable-libxvid –enable-memalign-hack –enable-static –disable-shared –disable-vhook –extra-cflags=-fno-common –prefix=/usr/local

# make

#make install

Agora instale as dependências:

# apt-get install build-essential mysql-server-5.0 php5 php5-mysql

    # apt-get install apache2 libapache2-mod-php5
    # apt-get install libmysqlclient15-dev libgnutls-dev libjpeg62-dev
    # apt-get install libarchive-tar-perl libarchive-zip-perl libdate-manip-perl
    # apt-get install libdevice-serialport-perl libmime-lite-perl libmime-perl
    # apt-get install libphp-serialization-perl libwww-perl

Compilar o Zoneminder

# cd /opt

# tar -xvvf ZoneMinder-1.24.2.tar.gz

# cd ZoneMinder

#./configure –prefix=/usr/local –with-webdir=/var/www/zm –with-cgidir=/usr/lib/cgi-bin –with-webuser=www-data –with-webgroup=www-data –with-ffmpeg=/usr/local –enable-mmap=yes –with-libarch=lib

# make

# make install

Configuração do Banco de Dados

# cd /opt/ZoneMinder-1.24.2

# mysql < db/zm_create.sql -p

Digite a senha do usuário root do Mysql

#mysql -u root -p

mysql> grant all on zm.* to zmuser@”localhost” identified by “zmpass”;

Configuração do Cambozola:

# cd /opt

# tar -xvvf cambozola-latest.tar.gz

# cd /var/www/zm

# cp /opt/cambozola-0.76/dist/cambozola.jar .

# chmod 777 cambozola.jar

Acesse http://localhost/zm

Anúncios