Feb 22
Since Ubuntu 9.10 (Karmic Koala) this post is obsolete because OCSInventory is now part of the universe repository
A easy way to keep track of the hard- and software on your local network.
The whole installation procedure took about 30 Minutes
(ok it was quite a fast machine)
- new virtual Machine of type Linux/Ubuntu
128MB RAM
8GB Harddisk - booting Ubuntu 6.06 LTS Server CD
running a LAMP Installation
Hostname: inventory
User: admin - nano /etc/apt/sources.list
remove entry for Ubuntu CD
uncomment universe repository
apt-get update
apt-get upgrade - 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
- open http://inventory/phpmyadmin in browser
login using root with no password
change the root password to something meaningful - 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 - 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 - nano /etc/php5/apache2/php.ini
increase post_max_size to 10MB
increase upload_max_filesize to 10MB - 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 - 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.
