UPDATE 2017-03-22
Thanks to @stephdl, the nethserver-ocsinventory package for NS 7 is now available!
First install the ocsinventory repositoryyum install http://rpm.ocsinventory-ng.org/enterprise/7/x86_64/ocsinventory-release-7-4.el7.ocs.noarch.rpm
then
yum install http://mirror.de-labrusse.fr/NethDev/nethserver-ocsinventory/nethserver-ocsinventory-1.1.4-1.ns7.sdl.noarch.rpm
You have some db
~]# config show ocsinventory ocsinventory=configuration Name=ocsreports #to change the web alias eg https://IP/othername access=private #or public status=enabled #or disabled to stop ocsinventory web access
Go here for insights: Nethserver-ocsinventory needs testers
Here we go!
Now you can run OCS Inventory NG even on NS 7!
OCS Inventory NG is a powerful technical management solution of IT assets.
Here you can find all the documentation about the product: http://wiki.ocsinventory-ng.org/index.php/Documentation:Main
Thanks to @stephdl, hereâs a step-by-step how-to to install OCS on NS:
-
Install prerequisites for NethServer:
yum install @nethserver-mysql @nethserver-web -y
-
Install OCS packages from original repo:
yum --enablerepo=epel -y install http://rpm.ocsinventory-ng.org/enterprise/7/x86_64/ocsinventory-2.3.0-1.el7.ocs.noarch.rpm http://rpm.ocsinventory-ng.org/enterprise/7/x86_64/ocsinventory-reports-2.3.0-1.el7.ocs.noarch.rpm http://rpm.ocsinventory-ng.org/enterprise/7/x86_64/ocsinventory-server-2.3.0-1.el7.ocs.noarch.rpm http://rpm.ocsinventory-ng.org/enterprise/7/x86_64/perl-Apache-DBI-1.12-2.el7.ocs.noarch.rpm http://rpm.ocsinventory-ng.org/enterprise/7/x86_64/perl-Apache2-SOAP-0.73-14.el7.ocs.noarch.rpm
-
Create and configure needed MySQL db:
mysql -e âCREATE DATABASE ocsweb CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL PRIVILEGES ON ocsweb.* TO âocsâ identified by âocspassâ;
GRANT ALL PRIVILEGES ON ocsweb.* TO âocsâ@âlocalhostâ identified by âocspassâ;
FLUSH PRIVILEGES;â -
Populate db using OCS dump:
mysql ocsweb < /usr/share/ocsinventory-reports/ocsreports/files/ocsbase_new.sql
-
Edit âocsinventory-server.confâ file to update db password:
sed -i âs/PerlSetVar OCS_DB_PWD ocs/PerlSetVar OCS_DB_PWD ocspass/â /etc/httpd/conf.d/ocsinventory-server.conf
-
Populate dbconfig.inc.php file:
echo -e â<?php\ndefine(\"DB_NAME\",\"ocsweb\");\n\ define(\"SERVER_READ\",\"localhost\");\n\ define(\"SERVER_WRITE\",\"localhost\");\n\ define(\"COMPTE_BASE\",\"ocs\");\n\ define(\"PSWD_BASE\",\"ocspass\");\n?>â > /etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php
-
Reload Apache:
systemctl reload httpd
-
As a good practice, rename installation script file:
mv /usr/share/ocsinventory-reports/ocsreports/install.php
/usr/share/ocsinventory-reports/ocsreports/install.php.ori
âŠdone!
You can reach OCS Inventory NG using default url:
http://server.domain/ocsreports
and default credentials (admin/admin)