Philesight install

From KCLUG Wiki

Jump to: navigation, search

When I saw this Linux.com article, I knew I had to have philesight for a project I was working on. Philesight generates png piecharts of filesystem usage for use on webpages or elsewhere.

Check out the author's website for more information on how it works, and why you would choose it over other solutions.

I was dismally disappointed to see that the author basically never thought about the RHEL world. His site makes it look really complicated to install on RHEL. However, even though he didn't package it for RHEL, it is trivially easy to install it on RHEL based distros. Here are two copy-and-paste install scripts. One for Fedora 10, and one for CentOS 5.2.

Fedora 10:
yum -y update
yum -y install ruby ruby-cairo ruby-bdb
wget http://zevv.nl/play/code/philesight/philesight-20081120.tgz
tar xf philesight-20081120.tgz
cd philesight-20081120
./philesight --db db.temp --index /tmp
./philesight --db db.temp --path /tmp --draw asdf.png 
CentOS 5.2:
yum -y update
cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
wget http://ruby.gfd-dennou.org/products/rpm/RPMS/CentOS/CentOS-DennouRuby.repo
yum -y --enablerepo=kbs-CentOS-Testing install ruby bitmap-fonts ruby-bdb ruby-cairo
cd
wget http://zevv.nl/play/code/philesight/philesight-20081120.tgz
tar xf philesight-20081120.tgz
cd philesight-20081120
./philesight --db db.temp --index /tmp
./philesight --db db.temp --path /tmp --draw asdf.png

That's it! Installed and tested, in one paste! Good luck, and enjoy the software!

Personal tools