Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7656189
  • 博文数量: 1770
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16357
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1770)

文章存档

2024年(15)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2011-10-12 12:00:25

 
About RackMonkey
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 RackMonkey requires:

$ apt-get install sqlite3
$ apt-get install libdbi-perl

$ apt-get install libdbd-sqlite3-perl

$ apt-get install libhtml-template-perl

$ apt-get install libhtml-parser-perl
Downloading and Installing RackMonkey
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 RackMonkey to your server:

$ wget
Now Extract the download tar file
$ tar -xvf rackmonkey-1.2.5-1.tar.gz
Now in the folder you extracted the files to there should be a folder named: "rackmonkey-1.2.5-1". cd to this folder:

$ cd rackmonkey-1.2.5-1
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:

$ mkdir /var/www/rackmonkey
We have the folder to contain the web files for RackMonkey so now copy the files and set up the permissions:

$ cp rackmonkey-1.2.5/perl/rackmonkey.pl /var/www/rackmonkey
$ cp -r rackmonkey-1.2.5/perl/RackMonkey /var/www/rackmonkey

$ chmod 755 /var/www/rackmonkey/rackmonkey.pl

$ cp -r rackmonkey-1.2.5/www/* /var/www/rackmonkey

Lets copy the template and data content and edit permissions:

$ mkdir /var/lib/rackmonkey
$ chown www-data:www-data /var/lib/rackmonkey

$ cp -r rackmonkey-1.2.5/tmpl /var/lib/rackmonkey

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:

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

Apache is now configured but now we need to configure RackMonkey. So copy the RackMonkey configuration files:
$ cp rackmonkey-1.2.5/conf/rackmonkey.conf-default /etc/rackmonkey.conf

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
RackMonkey is nearly up and running only thing that needs to be created now is the database. We now use SQLite to set up the schema for RackMonkey and then change the ownership of the database to the Web Server:

$ sqlite3 /var/lib/rackmonkey/rackmonkey.db < rackmonkey-1.2.5/sql/schema/schema.sqlite.sql
$ sqlite3 /var/lib/rackmonkey/rackmonkey.db < rackmonkey-1.2.5/sql/data/default_data.sql
$ sqlite3 /var/lib/rackmonkey/rackmonkey.db < rackmonkey-1.2.5/sql/data/sample_data.sql
$ chown www-data:www-data /var/lib/rackmonkey/rackmonkey.db
 
转:http://tomsbloguk.blogspot.com/2011/02/rackmonkey-installation.html
阅读(1242) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~