Home > Artikel & Tutorial, ubuntu > OCS Network Inventory & Ubuntu server 12

OCS Network Inventory & Ubuntu server 12

August 31st, 2015

OCS network inventory adalah Aplikasi/software gratis yang berguna untuk menginventory asset (hardware & software) secara rinci dan cukup cepat.  Untuk akses dari klien ke server dapat melalui via network, dan tampilan panel admin dalam bentuk webbased.

Info :

– OS : Ubuntu server 12.4 x64
– File : Ocsngunix server 2.1  (sudah disimpan di lokal /192.168.77.2/ocs  Atau bisa download lansung di ocsinventory-ng.org )

 

 

———————-
1. Update & Upgrade Ubuntu

>[email protected]:~# apt get update
[email protected]:~# apt get upgrade

2. Install Apache

[email protected]:~# apt-get install apache2

3. Install Mysql&Phymyadmin

[email protected]:~# apt-get install mysql-server phpmyadmin

Pilih Y untuk semua option
password user root di mysql

New password for the MySQL "root" user:
Repeat password for the MySQL "root" user:

Pilih Apache untuk phpmyadmin

Web server to reconfigure automatically: [ *] apache2
Configure database for phpmyadmin with dbconfig-common?

Masukan password untuk Administrator Phpmyadmin

Password of the database's administrative user:

password untuk connection mysql & phpmyadmin (*password harus sama dengan password root mysql)

MySQL application password for phpmyadmin:

4. Install paket-paket yang dibutuhkan

[email protected]:~# apt-get install libxml-simple-perllibio-compress-perlperllibdbi-perllibdbd-mysql-perllibapache-dbi-perllibnet-ip-perllibsoap-lite-perl make

5. Download
Masuk ke drive opt
Download ocs server (OCSNG_UNIX_SERVER-2.1.tar.gz ) di 192.168.77.2/ocs

[email protected]:~# cd /opt
[email protected]:/opt#w3m 192.168.77.2/ocs

Pilih file OCSNG_UNIX_SERVER-2.1.tar.gz
Untuk keluar dari menu pencet Ctrl+W? Q ?Y
Atau bisa download lansung dengang wget

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

6. Extract file ocs
Extract file yang barusan di download (OCSNG_UNIX_SERVER-2.1.tar.gz)

[email protected]:/opt#tar zxvf OCSNG_UNIX_SERVER-2.1.tar.gz

7. Install OCS
Masuk ke drive OCSNG_UNIX_SERVER-2.1, laluketik setup

[email protected]:/opt# cd OCSNG_UNIX_SERVER-2.1
[email protected]:/opt/OCSNG_UNIX_SERVER-2.1#./setup.sh

Tekan enter untuk semua (*default), sampai selesai

Do you wish to continue ([y]/n)?
Which host is running database server [localhost] ?
…
…
DON'T FORGET TO RESTART APACHE DAEMON !

Enjoy OCS Inventory NG 😉

8. Restart Apache

[email protected]:/opt/OCSNG_UNIX_SERVER-2.1# service apache2 restart
* Restarting web server [ OK ]
[email protected]:/opt/OCSNG_UNIX_SERVER-2.1#

9. Lanjutkan instalasi ocs via browser
site bisa di lihat di http://[ip-server]/ocsreports/

MySQL login: root
MySQL password:***** (masukan password root mysql)
Name of Database:ocsweb
MySQL HostName:localhost

Click Send
10. Instalasi Completed,
Default user/password : admin/admin

 

———-

Note untuk Repair pesan error
The default login/password is activate on OCS-NG GUI
Rubah password admin Via browser masukan address berikut

http://[ip-server]/ocsreports/index.php?function=account_config&head=1

The default SQL login/password is activate on your database: ocsweb
Rubah mysql password untuk user ‘ocs’ mengunakan phpmyadmin di browser
Site http://[ip-server]/phpmyadmin (*masuk mengunakan user ‘root’)
Pada kolom kiri pilih database mysql, Pada tab pilih SQL
ketik syntac berikut untuk update & Eksekusi

<code>Update `user` SET `Password` = PASSWORD( '12345' ) WHERE user = 'ocs'</code>

Balik ke terminal/putty ketikan command berikut Edit user & password dbconfig.inc.php

[email protected]:~# nano /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
define("COMPTE_BASE","root");
define("PSWD_BASE","password");

Edit user & password z-ocsinventory-server.conf

[email protected]:~# nano /etc/apache2/conf.d/z-ocsinventory-server.conf
# User allowed to connect to database
PerlSetEnv OCS_DB_USER root
# Password for user
PerlSetVar OCS_DB_PWD password

Your install.php exists in your installation directory.

[email protected]:~# rm /usr/share/ocsinventory-reports/ocsreports/install.php

Restart mysql

[email protected]:~# service mysql restart

Tinggal kan pesan!!

Artikel & Tutorial, ubuntu , ,

  1. No comments yet.
  1. No trackbacks yet.