[HowTo]Install ChiliProject on CentOS 5.6 take two

This is a quick guide on how to setup ChiliProject (or redmine) on CentOS 5.6. This is a followup to this post, with some different, slightly better methodology. I’ll likely be iterating on this guide a few times, so check the blog for updates before launching into this. At the time of writing, ChiliProject v1.4.0 is the current stable release, once v2.0.0 comes out, some of this will not apply.

Once again we’re going to go with the tried and trusted:

  • Ruby Enterprise Edition (REE)
  • Rails
  • RubyGems
  • Passenger
  • Apache
  • MySQL

This time we’re going to install REE via rvm and put chiliproject into it’s own user.

Enable the EPEL repository, so we can grab slightly more up-to-date versions of some packages, as well as subversion and git:

su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm'

Same as last time lets install httpd, mysql and the necessary build libraries via the yum repos:

yum install gcc zlib zlib-devel curl curl-devel expat-devel gettext-devel httpd httpd-devel apr-devel apr-util-devel mysql mysql-server mysql-devel openssl openssl-devel make gcc-c++ patch readline-devel ImageMagick ImageMagick-devel libffi-devel libyaml-devel sudo git subversion

Start httpd and mysql and enable them to run on boot:

/etc/init.d/httpd start
/sbin/chkconfig httpd on
/etc/init.d/mysqld start
/sbin/chkconfig mysqld on

Let’s create a user that we are going to put chiliproject under, in this tutorial this user will be called chili.

adduser chili
passwd chili

Depending on your long-term plans I would suggest adding the user chili to /etc/sudoers (using visudo) so you can later disable root logins for a more secure environment. This tutorial will assume you have done so, and at this point are logged in as the chili user. If you choose not to do this, this tutorial will still work just fine executing these as root.

In this example we are going to install just a single version of ruby to use just for our chili user. The following should be done as the chili user, unless otherwise mentioned.

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

Add this line to the bottom of .bash_profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

Log out and log back in.

Ensure rvm is installed and running as a function

type rvm | head -1

Update and reload rvm (just in case)

rvm get head
rvm reload

Install Ruby Enterprise Edition and set it as the default, this may take some time depending on your hardware.

rvm install ree
rvm --default use ree

Install rails version 2.3.5, the mysql gem, and the correct version of the i18n gem

gem install rails --version 2.3.5
gem install mysql
gem install -v=0.4.2 i18n

These are some optional gems you may want to install. rmagick will give you pretty graphs and ruby-openid will enable the ability to activate openid logins.

gem install rmagick -v 1.15.13 --disable-htmldoc
gem install ruby-openid

Install passenger. Follow the prompts and read the last part of the output instructing you to copy-paste some lines into your /etc/httpd/conf/httpd.conf

gem install passenger
rvmsudo passenger-install-apache2-module

While we are editing httpd.conf, let’s go ahead and create a virtualhost entry, edit as neccessary:

<VirtualHost *:80>
        ServerName www.demo.chiliproject.org
        ServerAlias demo.chiliproject.org
        DocumentRoot /home/chili/chiliproject/public
        <Directory /home/chili/chiliproject/public>
                AllowOverride all
                Options -MultiViews
        </Directory>
</VirtualHost>

Finally, let’s download and install chiliproject (or redmine)to the location in our virtualhost mentioned above. You can simply follow the install guide from this point on, but I will reproduce the commands I do below for your convenience:

cd /home/chili
git clone git://github.com/chiliproject/chiliproject.git
cd chiliproject/
git checkout stable
mysql
create database chiliproject character set utf8;
create user 'chiliproject'@'localhost' identified by 'my_password';
grant all privileges on chiliproject.* to 'chiliproject'@'localhost';
quit
cp config/database.yml.example config/database.yml
vim config/database.yml
cp config/configuration.yml.example config/configuration.yml
vim config/configuration.yml
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
sudo /etc/init.d/httpd restart

If all went well, you should be able to browse to your successful chiliproject installation at this time! If you need help, hop into the Chiliproject IRC Channel and I’m usually around, and there are many other helpful people there just waiting to help you.

iSikhi – Gurbani Search App for iPhone

iSikhiLogo

After using Gurbani Anywhere on my phone for the last few weeks, my little brother has been getting pretty jealous of all the cool things I could do with it sitting in Diwans, Kirtans, or anytime on-the-go. So Yesterday I grabbed his iPhone and installed the iSikhi iPhone app, which promises to

  • Work on iPhone, iPhone 3G, and iTouch devices
  • Search Sri Guru Granth Sahib Ji and view shabad(s) line by line with english translations
  • Search with either First Letters or First Letters Anywhere
  • Simple to install like any other iPhone application through App Store. No need to JailBreak your iPhone or any other modifications are required.

Let’s have a look at version 3 of this software. One thing to note is that my brother has the iPhone 2G, but is running version 3.0 of the iPhone OS. I suggest you view these pictures in order:

So the application is extremely clean and well-made. The gurmukhi keyboard and input work wonderfully. One thing I did notice is that performance on this older iPhone was definetly slower than expected, but not enough to bother me too much, or deter me from further use. The application makes good use of the iPhones screen real estate, and viewing the shabad in landscape mode with a slightly increased font makes it perfect for balancing on top of the vaja while practising kirtan.

There are some features from Gurbani Anywhere (which has an upcoming iPhone release also) are the transliterations, favorites, increased viewing options, and searching Bhai Gurdas Vara and Dasam Granth. Hopefully the iSikhi dev team can add some of these and more in upcoming releases.

Head on over to the iSikhi website, install it, donate, and post on the forums for help, comments, and support

Cool Tool – Search Gurbani Desktop Version

sgdvA great alternative to Sikhi To The Max today I bring you Search Gurbani Desktop Version. A Java application for searching, displaying, and exploring the Guru Granth Sahib. From the website:

Search Gurbani Desktop Version (SGDV) brings to you a unique and comprehensive approach to explore and experience the word of God. We have the Sri Guru Granth Sahib Ji , Amrit Keertan Gutka and Bhai Gurdaas Vaaran and Sri Dasam Granth Sahib in entireity. You can explore these scriptures page by page or search for a keyword in either one or all of the scriptures.

The application is also designed for use in a Gurdwara like setting to help the sangat follow along with the Raagi. It displays the Gurmukhi line along with Romanization and English translation text.

A good option for non-windows users or people on other java-enabled platforms. It works sufficiently well and definetly meets it’s goal of providing something to put up for the sangat to follow along. I will add the download files to the downloads section soon, but all the relevant and up-to-date files are available on the SGDV website