OCS-Inventory on Ubuntu Server in VMWare in 10 Steps

The whole installation procedure took about 30 Minutes Cool (ok it was quite a fast machine)

  1. new virtual Machine of type Linux/Ubuntu
    128MB RAM
    8GB Harddisk
  2. booting Ubuntu 6.06 LTS Server CD
    running a LAMP Installation
    Hostname: inventory
    User: admin
  3. nano /etc/apt/sources.list
    remove entry for Ubuntu CD
    uncomment universe repository
    apt-get update
    apt-get upgrade
  4. apt-get install mc openssh-server libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl php5-gd build-essential libapache2-mod-perl2 phpmyadmin
  5. open http://inventory/phpmyadmin in browser
    login using root with no password
    change the root password to something meaningful
  6. download von OCS-InventoryServer-Linux von http://ocsinventory.sourceforge.net using wget into /root
    tar xzvf OCSNG_LINUX_SERVER_1.01.tar.gz
    cd OCSNG_LINUX_SERVER_1.01
    ./setup.sh
  7. accept all defaults except
    document root: /var/www
    accepting apache configuration directory didn't work for some reason - but answering 'no' writes everything required into /etc/apache2/apache2.conf and works flawlessly
  8. nano /etc/php5/apache2/php.ini
    increase post_max_size to 10MB
    increase upload_max_filesize to 10MB
  9. open http://inventory/ocsreports and specify the db user crendetials (root/somepwd/localhost) and wait for the database to be created
    logon to the UI and change the admin password to something useful
  10. Have a lot of fun using OCS-Inventory but take a look at the Installation and Administration Guide accessible via the question mark in the UI.

 


In order to install the inventory agent on Ubuntu 6.10 it's required to run at least:
apt-get install libnet-ssleay-perl libcompress-zlib-perl libxml-simple-perl libnet-ip-perl

 

Submitted by chefkoch666 on Thu, 03/22/2007 - 13:59.

Noch ein kleiner Nachtrag. Der Agent konnte seine Infos bei mir nicht an den Server liefern. Es gab Fehlermeldungen im apache2 error log /var/log/apache2/error.log

[Tue Mar 20 19:26:09 2007] [error] [client 192.168.99.185] Can't locate object method "dir_config" via package "Apache2::RequestRec" at /usr/local/share/perl/5.8.7/Apache/Ocsinventory/Server/System.pm line 115.\n
 
Im Forum bei Sourceforge habe ich folgenden Thread gefunden, den ich sogar lösen konnte ;)
Die Lösungen haben das Wort SOLUTION im Betreff
 
https://sourceforge.net/search/?forum_id=196388&type_of_search=forums&group_id=58373&words=dir_config
 
MfG, Marek Koch