tom's blog logo

RackMonkey Installation

Post by Thomas Weaver on April 11, 2011 9:27 pm

RackMonkey is an Open Source Rack & Asset Management web based application. Asset Management is a must for any System Administrator and this application certainly makes life easier. Especially working with multiple Racks across multiple locations this software means you know exactly in which rack your server and also how much space you have left. Visit there website to find out more:


Preparing Ubuntu

For this guide I will use SQLite as the database and apache2 as the web server. So first install apache:
$ apt-get install apache2
We will configure apache later for the basic authentication. Now SQLite needs to be installed along with the libraries required:

<br />$ apt-get install sqlite3<br />$ apt-get install libdbi-perl<br />$ apt-get install libdbd-sqlite3-perl<br />$ apt-get install libhtml-template-perl<br />$ apt-get install libhtml-parser-perl<br />

Downloading and Installing

Now lets download RackMonkey the following command is using a direct link got from the SourceForge download. To get the link follow the link below:


Now click on Download Now and when asked where you want to save the file to click cancel, now use the direct link to download the package:

<br />$ wget<br />

Now Extract the download tar file

<br />$ tar -xvf rackmonkey-1.2.5-1.tar.gz<br />

Now cd into the extracted folder:

<br />$ cd rackmonkey-1.2.5-1<br />

We need to create a directory for the website to be held in. Because we havent edited any of the apache settings the default folder is /var/www. So lets create a folder here:

<br />$ mkdir /var/www/rackmonkey<br />

We have the folder to contain the web files, so now copy the files and set up the permissions:

<br />$ cp rackmonkey-1.2.5/perl/ /var/www/rackmonkey<br />$ cp -r rackmonkey-1.2.5/perl/RackMonkey /var/www/rackmonkey<br />$ chmod 755 /var/www/rackmonkey/<br />$ cp -r rackmonkey-1.2.5/www/* /var/www/rackmonkey<br />

Lets copy the template and data content and edit permissions:

<br />$ mkdir /var/lib/rackmonkey<br />$ chown www-data:www-data /var/lib/rackmonkey<br />$ cp -r rackmonkey-1.2.5/tmpl /var/lib/rackmonkey<br />

Ok so now the website files have been copied. Next we need to set up the apache server. Great news the guys at rack monkey have kindly given an apache config file so simply copy the config files and then reload apache:

<br />$ cp rackmonkey-1.2.5/conf/httpd-rackmonkey.conf /etc/apache2/conf.d<br />$ /etc/init.d/apache2 force-reload<br />

Apache is now configured but now we need to configure the application.

<br />$ cp rackmonkey-1.2.5/conf/rackmonkey.conf-default /etc/rackmonkey.conf</em></div><br />

The Configuration file now needs to be ammended with database information

dbconnect = dbi:SQLite:dbname=/var/lib/rackmonkey/rackmonkey.db tmplpath = /var/lib/rackmonkey/tmpl
wwwpath = /rackmonkey

We are nearly up and running only thing that needs to be created now is the database. We now use SQLite to set up the schema and then change the ownership of the database to the Web Server:

<br />$ sqlite3 /var/lib/rackmonkey/rackmonkey.db < rackmonkey-1.2.5/sql/schema/schema.sqlite.sql<br />$ sqlite3 /var/lib/rackmonkey/rackmonkey.db < rackmonkey-1.2.5/sql/data/default_data.sql<br />$ sqlite3 /var/lib/rackmonkey/rackmonkey.db < rackmonkey-1.2.5/sql/data/sample_data.sql<br />$ chown www-data:www-data /var/lib/rackmonkey/rackmonkey.db<br />

Post a Comment

Your email address will not be published. Required fields are marked *