Archive for 'System Administration'

How to install Ruby & Ruby on Rails (RoR) on Centos

Posted on 31. Oct, 2009 by forouzani.

0

To install Ruby and Ruby on Rails on Centos 5, first, we need to add the rubyworks repository to Yum.
Create this file:
# vi /etc/yum.repos.d/rubyworks.repo
And paste this text into it:
# Link file for RubyWorks yum repository
[rubyworks]
name=RubyWorks
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1
Now that Yum is setup, we can install Ruby on Rails 2.2.2
# yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql
We also [...]

Continue Reading

Install memcached on a Linux Server

Posted on 07. Mar, 2008 by forouzani.

0

First lets to go a place where we can store our downloaded software packages:
# cd /usr/local/src
Now we need to make sure we have libevent installed. To find out if you have libevent installed, type the following
# whereis libevent
If you dont get any results, then libeven it not installed. If you do have it installed, you [...]

Continue Reading

Xymon (hobbit) installation tutorial

Posted on 02. Oct, 2007 by forouzani.

4

Before installing Xymon, we need to make sure its dependancies are installed – this includes PCRE, RRDTool and fping.
Installing PCRE
Installing the Perl Compatible Regular Expression library is quite simple:
# yum install pcre pcre-devel
You may also need to create a soft link from /usr/include/pcre/pcre.h to /usr/include/pcre.h
# ln -s /usr/include/pcre.h /usr/include/pcre/pcre.h
Installing RRDTool
RRDTool itself also has dependancies, in [...]

Continue Reading

Delete all .svn folders using Windows Command Prompt

Posted on 12. Apr, 2007 by forouzani.

1

You can use the following command to delete all .svn folders in your subversion directory recursively.
FOR /R . %f IN (.svn) DO RD /s /q %f

Continue Reading

Compiling and Installing Ruby and Rails on Ubuntu/Debian

Posted on 04. Feb, 2007 by forouzani.

0

The following will install the latest versions of Ruby, Rails and Mongrel on a Ubuntu machine:
# sudo apt-get install build-essential libreadline5-dev zlib1g-dev libncurses5-dev
# wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz (stable ruby)
# wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.4.tgz
# tar -xzf ruby-1.8.6.tar.gz
# cd ruby-1.8.6
# vim ext/Setup
Uncomment the entries for readline and zlib – save changes and exit
# ./configure –prefix=/usr (we want to install in /usr/bin [...]

Continue Reading