jueves, 19 de junio de 2014

Zoneminder a Lliurex 13 - Gestió de càmeres Web


Hola a tots/es!

Avuí vull explicar-vos com he instal·lat la versió de Zoneminder a Lliurex (per provar .. ja sabeu .. ;)


L'explicació és un poc "pesaeta" però per si a algú li serveix ahi va!

1r.  Descarregar el software www.zoneminder.com   v. 1.27.0
2n.  Descomprimir
    # tar zxvof ZoneMinder-1.27.0.tar.gz
 

3r. Entrar en directori i compilar ... 

    # cd ZoneMinder-1.27.0
    # cmake .


    1r problema: No tenim el cmake

    #apt-get install cmake

   # cmake .


    2n problema:  


     zm requires jpeg but it was not found on your system

    Entrem en synaptic i descarreguem
        * libjpeg-dev

 
    #cmake .

    3r problema:  

     zm requires mysqlclient but it was not found on your system

    Synaptic i instal·lem
després d'activar ubuntu com a repositoris i actualitzar:
        *mysql-client

        * libmysqlclient-dev
    

     #cmake .
      
    4t problema:
        zm requires crypto or gnutls but none were found on you system
      
        Amb el synaptic instal·lem els paquets:

            * libgnutls y libgnutls-dev
 
        #cmake .

    5t problema:
         Not all required perl modules were found on your system

        #perl -MCPAN -e shell
       [ ... ]


        yes a tot ;)

        cpan> install Date::Manip
        cpan> install Sys::Mmap


    Per fí ja està tot el que necessitem!!!

    #make
    #make install


Al compilar dóna: Error en MD5
Per solucionarf-ho:
    Baixe openssl --> Compilar i instalar ;

  ./config --prefix=/usr/local --openssldir=/usr/local/openssl


    De nou compilem el Zoneminder:

    #./cmake .
    #make
    #make install

    Com que ens fa falta el servidor web:


    * Editar el conf apache2:

    cd /etc/apache2/sites-enabled/000-default

        Alias /camara/ /usr/local/share/zoneminder/www/
        <Directory /usr/local/share/zoneminder/www>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>


     Reiniciar apache
   
    #/etc/init.d/apache2 restart


    Zoneminder necessita una Base de dades amb Mysql:

      #~/ZoneMinder-1.27.0/db# mysql -u root -p < zm_create.sql

    Configurem el zoneminder: 

    /etc/zm.conf  --> User/pass de bbdd
    
    I per a que s'inicie a l'iniciar l'ordinador: 

    Init script --> cp  /usr/local/bin/zmpkg.pl /etc/init.d



    I ja està!!!! Sols queda configurar les càmaares .. però això ho deixem per a altre dia ;)

Un saludet!
Antonio.

3 comentarios:

  1. Hello everybody,

    I'm trying to update my zm 1.25 to 1.28.1 on my debian 7.8

    I've followed some parts of this tuto : elblogticdecolo.blogspot.fr/2014/06/zoneminder-lliurex-13-gestio-de-cameres.html

    But now i'm bloqued with the MD5 error and i don't see what i have to modify...

    I have make the zm_conf.cmake and this is what the 'make' command did :


    Code:
    root@front:~/ZoneMinder-1.28.1# make
    [ 83%] Built target zm
    Linking CXX executable nph-zms
    libzm.a(zm_rtsp_auth.cpp.o): In function `Authenticator::computeDigestResponse(std::string&, std::string&)':
    zm_rtsp_auth.cpp:(.text+0x3a18): undefined reference to `MD5'
    zm_rtsp_auth.cpp:(.text+0x3b3f): undefined reference to `MD5'
    zm_rtsp_auth.cpp:(.text+0x3e8b): undefined reference to `MD5'
    libzm.a(zm_user.cpp.o): In function `zmLoadAuthUser(char const*, bool)':
    zm_user.cpp:(.text+0x1115): undefined reference to `MD5'
    collect2: error: ld returned 1 exit status
    make[2]: *** [src/nph-zms] Erreur 1
    make[1]: *** [src/CMakeFiles/nph-zms.dir/all] Erreur 2
    make: *** [all] Erreur 2
    root@front:~/ZoneMinder-1.28.1#




    Openssl is installed, in the tutorial he talk about this line :
    ./config --prefix=/usr/local --openssldir=/usr/local/openssl
    But i don't have a 'config' in my ZoneMinder-1.28.1 directory...

    Can you see what is wrong ?
    Thx

    ResponderEliminar
    Respuestas
    1. The MD5 error means that zm doenn't find your openssl libraries.

      I just downloaded openssl source code and compile it. SO, this is because I used "./config ..." inside the openssl dir.

      Try downloading openssl and compiling it "./config ... "
      HTH

      Cheers!

      Eliminar
  2. Milions de gr[acies per aquest post! haha :D

    ResponderEliminar