<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>SikhNerd &#187; howto</title> <atom:link href="http://sikhnerd.com/tag/howto/feed/" rel="self" type="application/rss+xml" /><link>http://sikhnerd.com</link> <description>50% Sikh &#124; 50% Nerd &#124; 100% Finger Licken' Good!</description> <lastBuildDate>Sun, 18 Sep 2011 19:05:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>[HowTo]Install ChiliProject on CentOS 5.6 take two</title><link>http://sikhnerd.com/nerd/howtoinstall-chiliproject-on-centos-5-6-take-two/</link> <comments>http://sikhnerd.com/nerd/howtoinstall-chiliproject-on-centos-5-6-take-two/#comments</comments> <pubDate>Sat, 28 May 2011 03:07:09 +0000</pubDate> <dc:creator>Sikh Nerd</dc:creator> <category><![CDATA[Nerd]]></category> <category><![CDATA[chiliproject]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[redmine]]></category> <category><![CDATA[Tool]]></category><guid
isPermaLink="false">http://sikhnerd.com/?p=653</guid> <description><![CDATA[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&#8217;ll likely [...]<div
id="yarp"> Related posts:<ol><li><a
href='http://sikhnerd.com/nerd/howto-install-chiliproject-or-redmine-on-centos/' rel='bookmark' title='[HowTo] Install ChiliProject (or Redmine) on CentOS'>[HowTo] Install ChiliProject (or Redmine) on CentOS</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>This is a quick guide on how to setup <a
href="https://www.chiliproject.org">ChiliProject</a> (or <a
href="http://redmine.org">redmine</a>) on CentOS 5.6. This is a followup to <a
href="http://sikhnerd.com/nerd/howto-install-chiliproject-or-redmine-on-centos/">this post,</a> with some different, slightly better methodology. I&#8217;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.</p><p>Once again we&#8217;re going to go with the tried and trusted:</p><ul><li>Ruby Enterprise Edition (REE)</li><li>Rails</li><li>RubyGems</li><li>Passenger</li><li>Apache</li><li>MySQL</li></ul><p>This time we&#8217;re going to install REE via rvm and put chiliproject into it&#8217;s own user.</p><p>Enable the EPEL repository, so we can grab slightly more up-to-date versions of some packages, as well as subversion and git:</p><pre class="brush: bash; title: ; notranslate">
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
</pre><p>Same as last time lets install httpd, mysql and the necessary build libraries via the yum repos:</p><pre class="brush: bash; title: ; notranslate">
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
</pre><p>Start httpd and mysql and enable them to run on boot:</p><pre class="brush: bash; title: ; notranslate">
/etc/init.d/httpd start
/sbin/chkconfig httpd on
/etc/init.d/mysqld start
/sbin/chkconfig mysqld on
</pre><p>Let&#8217;s create a user that we are going to put chiliproject under, in this tutorial this user will be called chili.</p><pre class="brush: bash; title: ; notranslate">
adduser chili
passwd chili
</pre><p>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.</p><p>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.</p><pre class="brush: bash; title: ; notranslate">
bash &lt; &lt;(curl -s https://rvm.beginrescueend.com/install/rvm)
</pre><p>Add this line to the bottom of .bash_profile</p><pre class="brush: bash; title: ; notranslate">
[[ -s &quot;$HOME/.rvm/scripts/rvm&quot; ]] &amp;&amp; . &quot;$HOME/.rvm/scripts/rvm&quot;
</pre><p>Log out and log back in.</p><p>Ensure rvm is installed and running as a function</p><pre>
<pre class="brush: bash; title: ; notranslate">
type rvm | head -1
</pre></pre><p>Update and reload rvm (just in case)</p><pre class="brush: bash; title: ; notranslate">
rvm get head
rvm reload
</pre><p>Install Ruby Enterprise Edition and set it as the default, this may take some time depending on your hardware.</p><pre class="brush: bash; title: ; notranslate">
rvm install ree
rvm --default use ree
</pre><p>Install rails version 2.3.5, the mysql gem, and the correct version of the i18n gem</p><pre class="brush: bash; title: ; notranslate">
gem install rails --version 2.3.5
gem install mysql
gem install -v=0.4.2 i18n
</pre><p>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.</p><pre class="brush: bash; title: ; notranslate">
gem install rmagick -v 1.15.13 --disable-htmldoc
gem install ruby-openid
</pre><p>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</p><pre class="brush: bash; title: ; notranslate">
gem install passenger
rvmsudo passenger-install-apache2-module
</pre><p>While we are editing httpd.conf, let&#8217;s go ahead and create a virtualhost entry, edit as neccessary:</p><pre>
<pre class="brush: bash; title: ; notranslate">
&lt;VirtualHost *:80&gt;
        ServerName www.demo.chiliproject.org
        ServerAlias demo.chiliproject.org
        DocumentRoot /home/chili/chiliproject/public
        &lt;Directory /home/chili/chiliproject/public&gt;
                AllowOverride all
                Options -MultiViews
        &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre></pre><p>Finally, let&#8217;s download and install chiliproject  (or redmine)to the location in our virtualhost mentioned above. You can simply <a
href="https://www.chiliproject.org/projects/chiliproject/wiki/Installation">follow the install guide</a> from this point on, but I will reproduce the commands I do below for your convenience:</p><pre>
<pre class="brush: bash; title: ; notranslate">
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
</pre></pre><p>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 <a
href="https://www.chiliproject.org/projects/chiliproject/wiki/IRC">Chiliproject IRC Channel</a> and I&#8217;m usually around, and there are many other helpful people there just <em>waiting</em> to help you.</p><div
id="yarp"><p>Related posts:<ol><li><a
href='http://sikhnerd.com/nerd/howto-install-chiliproject-or-redmine-on-centos/' rel='bookmark' title='[HowTo] Install ChiliProject (or Redmine) on CentOS'>[HowTo] Install ChiliProject (or Redmine) on CentOS</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://sikhnerd.com/nerd/howtoinstall-chiliproject-on-centos-5-6-take-two/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[HowTo] Install ChiliProject (or Redmine) on CentOS</title><link>http://sikhnerd.com/nerd/howto-install-chiliproject-or-redmine-on-centos/</link> <comments>http://sikhnerd.com/nerd/howto-install-chiliproject-or-redmine-on-centos/#comments</comments> <pubDate>Sat, 05 Feb 2011 23:22:16 +0000</pubDate> <dc:creator>Sikh Nerd</dc:creator> <category><![CDATA[Nerd]]></category> <category><![CDATA[chiliproject]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[redmine]]></category> <category><![CDATA[ruby]]></category><guid
isPermaLink="false">http://sikhnerd.com/?p=617</guid> <description><![CDATA[This a quick and dirty guide to getting a chiliproject or redmine installation up on CentOS 5.5 with the following: Ruby Enterprise Edition Rails RubyGems Passenger Apache MySQL This is [...]<div
id="yarp"> Related posts:<ol><li><a
href='http://sikhnerd.com/nerd/howtoinstall-chiliproject-on-centos-5-6-take-two/' rel='bookmark' title='[HowTo]Install ChiliProject on CentOS 5.6 take two'>[HowTo]Install ChiliProject on CentOS 5.6 take two</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>This a quick and dirty guide to getting a <a
href="https://www.chiliproject.org">chiliproject</a> or redmine installation up on CentOS 5.5 with the following:</p><ul><li>Ruby Enterprise Edition</li><li>Rails</li><li>RubyGems</li><li>Passenger</li><li>Apache</li><li>MySQL</li></ul><p>This is just a suggested method that I would use for testing locally, there are MANY alternate, better ways of doing this. This is just to get you started in the right direction to setup and test ChiliProject/Redmine. In the future I&#8217;ll post a full proper tutorial as soon as I get time. In this &#8220;tutorial&#8221; I assume you are doing things as root on a server intended only to host a single redmine, in general this is not a secure or perfect setup but is fine for internal use.</p><p>First, let&#8217;s install some prerequisites and the things we want from the centos repositories:</p><pre class="brush: bash; title: ; notranslate">
yum install gcc zlib-devel 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
</pre><p>This will get mysql and apache, as well as the basic tools you should need to build the remaining applications.</p><p>Start httpd and make sure there are no errors, configure the server to start automatically</p><pre class="brush: bash; title: ; notranslate">
/etc/init.d/httpd start
Starting httpd:                                            [  OK  ]
/sbin/chkconfig httpd on
</pre><p>Same with mysql</p><pre class="brush: bash; title: ; notranslate">
/etc/init.d/mysqld start
Starting MySQL:                                            [  OK  ]
/sbin/chkconfig mysqld on
</pre><p>Ensure both are done correctly:</p><pre class="brush: bash; title: ; notranslate">
/sbin/chkconfig --list httpd
httpd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
/sbin/chkconfig --list mysqld
mysqld         	0:off	1:off	2:on	3:on	4:on	5:on
</pre><p>Download, extract and install ruby enterprise edition, if you are not comfortable managing and updating a source installaiton, you should consider using <a
href="https://packages.endpoint.com">this repository</a> or <a
href="http://rvm.beginrescueend.com/">rvm</a>.</p><pre class="brush: bash; title: ; notranslate">
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
./ruby-enterprise-1.8.7-2010.02/installer
</pre><p>Follow the prompts in the installer, the defaults should be fine.</p><p>Create some useful symlinks:</p><pre class="brush: bash; title: ; notranslate">
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/rake /usr/bin/rake
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/gem /usr/bin/gem
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby /usr/bin/ruby
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/irb /usr/bin/irb
</pre><p>Remove the included copy of rails and install the version required by ChiliProject</p><pre class="brush: bash; title: ; notranslate">
gem uninstall rails
gem install rails -v=2.3.5
</pre><p>Let&#8217;s install passenger:</p><pre class="brush: bash; title: ; notranslate">
/opt/ruby-enterprise-1.8.7-2010.02/bin/passenger-install-apache2-module
</pre><p>Once it completes it will give you the following lines to place in the apache config, you can use your favorite editor to add these to /etc/httpd/conf/httpd.conf</p><pre class="brush: bash; title: ; notranslate">
   LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so
   PassengerRoot /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.2
   PassengerRuby /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby
</pre><p>Restart Apache:</p><pre class="brush: bash; title: ; notranslate">
/etc/init.d/httpd restart
</pre><p>In case you don&#8217;t have git and svn installed, enable EPEL repositories and get them:</p><pre class="brush: bash; title: ; notranslate">
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
yum install git subversion
</pre><p>Now just follow the directions at <a
href="https://www.chiliproject.org/projects/chiliproject/wiki/Installation">https://www.chiliproject.org/projects/chiliproject/wiki/Installation</a> (or <a
href="http://www.redmine.org/projects/redmine/wiki/RedmineInstall">redmine</a>)</p><p>Once you have confirmed it&#8217;s working with webrick, add this to your apache conf:</p><pre class="brush: bash; title: ; notranslate">
   &lt;VirtualHost *:80&gt;
      ServerName www.yourhost.com
      DocumentRoot /somewhere/public    # &lt;-- be sure to point to 'public'!
      &lt;Directory /somewhere/public&gt;
         AllowOverride all              # &lt;-- relax Apache security settings
         Options -MultiViews            # &lt;-- MultiViews must be turned off
      &lt;/Directory&gt;
   &lt;/VirtualHost&gt;
</pre><p>In my example setup it would be like the following:</p><pre class="brush: plain; title: ; notranslate">
&lt;VirtualHost *:80&gt;
      ServerName www.my.domain.com
      DocumentRoot /var/www/chiliproject/public
      &lt;Directory /var/www/chiliproject/public&gt;
         AllowOverride all
        Options -MultiViews
      &lt;/Directory&gt;
   &lt;/VirtualHost&gt;
</pre><p>Restart apache and everything should be working as expected :)</p><p>This is just a rough guide, hit me up on IRC for specific help. If you are setting up a site for public use, this guide isn&#8217;t recommended at all.</p><div
id="yarp"><p>Related posts:<ol><li><a
href='http://sikhnerd.com/nerd/howtoinstall-chiliproject-on-centos-5-6-take-two/' rel='bookmark' title='[HowTo]Install ChiliProject on CentOS 5.6 take two'>[HowTo]Install ChiliProject on CentOS 5.6 take two</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://sikhnerd.com/nerd/howto-install-chiliproject-or-redmine-on-centos/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>[How to] Facebook in Punjabi</title><link>http://sikhnerd.com/quick-things/how-to-facebook-in-punjabi/</link> <comments>http://sikhnerd.com/quick-things/how-to-facebook-in-punjabi/#comments</comments> <pubDate>Fri, 05 Mar 2010 03:53:38 +0000</pubDate> <dc:creator>Sikh Nerd</dc:creator> <category><![CDATA[Quick Things]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[interface]]></category> <category><![CDATA[language]]></category> <category><![CDATA[punjabi]]></category> <category><![CDATA[translation]]></category><guid
isPermaLink="false">http://sikhnerd.com/?p=421</guid> <description><![CDATA[This is how you change your Facebook language to Punjabi. Quick explanation: Go to Language Preferences, change the drop down to ਪੰਜਾਬੀ Long Version: Sign into your Facebook account. Click [...]<div
id="yarp"> Related posts:<ol><li><a
href='http://sikhnerd.com/sikh/download-sikhnerd-punjabi-fonts-mega-pack/' rel='bookmark' title='Download &#8211; SikhNerd Punjabi Fonts Mega Pack'>Download &#8211; SikhNerd Punjabi Fonts Mega Pack</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>This is how you change your Facebook language to Punjabi.</p><h3>Quick explanation:</h3><p>Go to <a
href="http://www.facebook.com/editaccount.php?language">Language Preferences</a>, change the drop down to ਪੰਜਾਬੀ</p><h3>Long Version:</h3><p>Sign into your<a
href="http://facebook.com"> Facebook</a> account.</p><p>Click on Account at the top right, choose Account Settings <a
class="shutterset_" href="http://sikhnerd.com/wp-content/gallery/fbookpun/001.png"><img
class="ngg-singlepic ngg-none" src="http://sikhnerd.com/wp-content/gallery/fbookpun/thumbs/thumbs_001.png" alt="001" /></a></p><p>Click on Language <a
class="shutterset_" href="http://sikhnerd.com/wp-content/gallery/fbookpun/002.png"><img
class="ngg-singlepic ngg-none" src="http://sikhnerd.com/wp-content/gallery/fbookpun/thumbs/thumbs_002.png" alt="002" /></a></p><p><a
class="shutterset_" href="http://sikhnerd.com/wp-content/gallery/fbookpun/003.png"><img
class="ngg-singlepic ngg-none" src="http://sikhnerd.com/wp-content/gallery/fbookpun/thumbs/thumbs_003.png" alt="003" /></a></p><p>Choose ਪੰਜਾਬੀ <a
class="shutterset_" href="http://sikhnerd.com/wp-content/gallery/fbookpun/004.png"><img
class="ngg-singlepic ngg-none" src="http://sikhnerd.com/wp-content/gallery/fbookpun/thumbs/thumbs_004.png" alt="004" /></a></p><p>Voila! Your Facebook is now in Punjabi <a
class="shutterset_" href="http://sikhnerd.com/wp-content/gallery/fbookpun/005.png"><img
class="ngg-singlepic ngg-none" src="http://sikhnerd.com/wp-content/gallery/fbookpun/thumbs/thumbs_005.png" alt="005" /></a></p><p>Now the not-so-anonymous person who keeps asking me this should be happy :)</p><div
id="yarp"><p>Related posts:<ol><li><a
href='http://sikhnerd.com/sikh/download-sikhnerd-punjabi-fonts-mega-pack/' rel='bookmark' title='Download &#8211; SikhNerd Punjabi Fonts Mega Pack'>Download &#8211; SikhNerd Punjabi Fonts Mega Pack</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://sikhnerd.com/quick-things/how-to-facebook-in-punjabi/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 946/1024 objects using disk: basic

Served from: sikhnerd.com @ 2012-01-03 20:26:50 -->
