spacer.png, 0 kB
Almaweb cerca collaboratori, chiunque è interessato mi contatti

CB Login


spacer.png, 0 kB
spacer.png, 0 kB
Free Surveillance Server

Scritto da Luca,

Pagina vista : 2725    

Pubblicato in : Networking, Linux

Questo documento è una guida all'installazione e la configurazione di CentOs 4.4 su piattaforma Vmware ESX 2.5.3, ZoneMinder 1.22.3, pacchetti e librerie dipendenti e il viewer basato su Java, Cambozola.

Free Surveillance Server Build

version

1.0 è by Luca Pietroni

 

 


 

Presupposto:

queste istruzioni sono state scritte con il presupposto che siate un utente intermedio linux, che ha familiarità con la struttura del file system linux, in grado di proteggere la rete con un firewall, con iptables o access lists e puù editare file utilizzando vi o nano (kate).

 

 

Installazione di CentOs

 

 

<!--[if !supportLists]-->1. <!--[endif]-->Scaricare le immagini dei primi 3 cd che useremo per l?installazione di CentOs 4.4, il sistema operativo che ospiterà ZoneMinder.

 

<!--[if !supportLists]-->2. <!--[endif]-->Scaricare i driver BusLogic SCSI di Vmware.

 

<!--[if !supportLists]-->3. <!--[endif]-->Utilizzando Vmware Remote Console montare l'immagine del floppy e di CentOs.

 

<!--[if !supportLists]-->4. <!--[endif]-->All'avvio lanciare l'installazione di CentOs con l'opzione Linux dd. Chiederà i driver per il disco rigido. Poi selezionare l'installazione personalizzata.

 

<!--[if !supportLists]-->5. <!--[endif]-->Sarebbe indicato partizionare il disco in modo da dedicare 10 GB al SO e al database di ZM, il resto per la grande quantità di dati creati dalla cattura video.

 

<!--[if !supportLists]-->6. <!--[endif]-->Disabilitiamo firewall e SELinux.

 

<!--[if !supportLists]-->7. <!--[endif]-->Selezione dei gruppi di pacchetti:

<!--[if !supportLists]-->- <!--[endif]-->Sistema X windows

<!--[if !supportLists]-->- <!--[endif]-->KDE

<!--[if !supportLists]-->- <!--[endif]-->Server Web

<!--[if !supportLists]-->- <!--[endif]-->Database MySQL

<!--[if !supportLists]-->- <!--[endif]-->Strumenti di sviluppo

<!--[if !supportLists]-->- <!--[endif]-->Sviluppo software KDE

 

<!--[if !supportLists]-->8. <!--[endif]-->Non eseguire l?aggiornamento del kernel altrimenti CentOs non si avvierà più su Vmware.

 

Installazione dei pacchetti e

delle librerie dipendenti

 

 

<!--[if !supportLists]-->1. <!--[endif]-->Qui troverete tutti gli rpm che serviranno a ZM.

 

<!--[if !supportLists]-->2. <!--[endif]-->Installare i pacchetti con rpm ?ivh. Quando due pacchetti sono dipendenti l'uno dall'altro è possibile installarli con rpm ?ivh nomepacchetto1 nomepacchetto 2.

 

Installazione e

configurazione di

ZoneMinder

 

 

<!--[if !supportLists]-->1. <!--[endif]-->Entrare nella cartella dove si è estratto Zm e dare il seguente comando: ./configure --with-ffmpeg --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin --with-webgroup=apache --with-webuser=apache --with-mysql=/usr --with-libarch=lib64 --disable-crashtrace.

 

<!--[if !supportLists]-->2. <!--[endif]-->make.

 

<!--[if !supportLists]-->3. <!--[endif]-->make install.

 

<!--[if !supportLists]-->4. <!--[endif]-->Rimanendo nella cartella di ZM: cp scripts/zm /etc/rc.d/init.d/

 

<!--[if !supportLists]-->5. <!--[endif]-->Cambiare i permessi: chmod 755 /etc/rc.d/init.d/zm

 

<!--[if !supportLists]-->6. <!--[endif]-->Aggiungere al file /etc/rc.d/rc.local le seguenti righe:

<!--[if !supportLists]-->- <!--[endif]-->#Mount the video partition (se abbiamo creato la partizione per i dati)

/bin/mount /dev/sda3 /var/www/html/events

<!--[if !supportLists]-->- <!--[endif]-->#Change permissions on the events folder or partition

/bin/chown apache:apache /var/www/html/events

<!--[if !supportLists]-->- <!--[endif]-->#Start ZoneMinder

/etc/rc.d/init.d/zm start

<!--[if !supportLists]-->- <!--[endif]-->#Set current time

/usr/sbin/ntpdate ns.nts.umn.edu nss.nts.umn.edu >/dev/null 2>&1

 

<!--[if !supportLists]-->7. <!--[endif]-->Ora ? necessario avviare il database di ZM:

<!--[if !supportLists]-->- <!--[endif]-->cd db

<!--[if !supportLists]-->- <!--[endif]-->/etc/rc.d/init.d/mysqld start (avvia mysql)

<!--[if !supportLists]-->- <!--[endif]-->mysql (per entrare nel client mysql)

<!--[if !supportLists]-->- <!--[endif]-->create database zm; (crea il db)

<!--[if !supportLists]-->- <!--[endif]-->use zm (entra del db appena creato)

<!--[if !supportLists]-->- <!--[endif]-->GRANT ALL PRIVILEGES ON zm.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword';

<!--[if !supportLists]-->- <!--[endif]-->exit

<!--[if !supportLists]-->- <!--[endif]-->mysql zm < zm_create.sql

 

<!--[if !supportLists]-->8. <!--[endif]-->Modifichiamo il file /usr/local/etc/zm.conf:

<!--[if !supportLists]-->- <!--[endif]--># ZoneMinder database user

ZM_DB_USER=yourusername

<!--[if !supportLists]-->- <!--[endif]--># ZoneMinder database password

ZM_DB_PASS=yourpassword

 

<!--[if !supportLists]-->9. <!--[endif]-->Impostiamo i seguenti servizi per l'avvio automatico:

- setup (The RedHat setup utility)

- mettere un asterisco ai segueti servizi: httpd, mysqld.

 

<!--[if !supportLists]-->10. <!--[endif]-->Utilizziamo Cambozola come java viewer:

<!--[if !supportLists]-->- <!--[endif]-->aprire /etc/profile e trovare

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

<!--[if !supportLists]-->- <!--[endif]-->poi aggiungere:

export ANT_HOME=/usr/share/ant

export JAVA_HOME=/usr/share/java

export PATH=${PATH}:${ANT_HOME}/bin

<!--[if !supportLists]-->- <!--[endif]-->copiare cambozola nella directory web

cp cambozola-0.68/dist/cambozola* /var/www/html/

Ultimo aggiornamento: 01-11-2007 15:20

Tags : ZoneMinder cambozola centos configurazione mysql
User comments Quote this article in website Print Send to friend Save this to del.icio.us Related articles Read more...
Free Surveillance Server
PDF
Martedì 27 Febbraio 2007 17:00
 
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB