Instale o "OCS Inventory NG" no OpenSUSE 11.4

De Wiki Hackstore

Prepare o sistema

Instale os pacotes necessários via Zypper:

zypper in perl-XML-Simple perl-DBI perl-Apache-DBI perl-Net-IP perl-Net-IPv4Addr perl-SOAP-Lite perl-DBD-mysql perl-DBI php5-pear-MDB2_Driver_mysqli
zypper in apache2-mod_perl apache2-mod_perl-devel zypper in php5-zlib php5-zip php5-mysql mysql-community-server php5-openssl php5-mbstring php5-soap php5-pear-SOAP 

Instale as bibliotecas do Perl via CPAN:

cpan > install XML::Entities
cpan > install IO::Compress:Base
cpan > install Compress::Zlib
cpan > install Apache2::SOAP

Reinicie o apache:

/etc/init.d/apache2 restart

Instale o OCS

Faça o download do OCS Inventory em http://www.ocsinventory-ng.org/en/download/download-server.html:

wget https://launchpad.net/ocsinventory-server/stable-2.0/2.0.5/+download/OCSNG_UNIX_SERVER-2.0.5.tar.gz

Instale o OCS:

tar xzvf OCSNG_UNIX_SERVER-2.0.5.tar.gz && cd OCSNG_UNIX_SERVER-2.0.5
sh setup.sh

Pós instalação

Crie a base MySQL e o usuário:

mysql> create database ocsweb;
mysql> grant all privileges on ocsweb.* to ocs@'localhost' identified by 'ocs123sgo456';
mysql> flush privileges;

Configure o usuário e senha do MySQL na configuração do OCS:

vi /usr/share/ocsinventory-reports/ocsreports//dbconfig.inc.php

Execute a configuração do DB via web:

http://server.com/ocsreports/install.php

Mais infos:

http://wiki.ocsinventory-ng.org/index.php/Documentation:Server