RVM on CentOS

RVM also know as Ruby Version Manager is a command-line tool which allows you to easily install, manage, and work with multiple version of Ruby or environments from interpreters to sets of gems. Here is a really easy guide to install RVM on CentOS.


Install Curl.

sudo yum install curl  

Install RVM.

This will install RVM.

\curl -sSL https:/ /get.rvm.io | bash -s stable

A reopen of Terminal is require to set the RVM environment variable.

exit # To close the Terminal  

RVM is a really smart tool it figures by its self what Linux distribution you are using. We can now download the required tools to build Ruby on CentOS.

rvm requirements  

I will be installing the current stable version of Ruby using RVM. At the time of this post the latest version of Ruby is Ruby 2.1.1, So I will be installing it in using the command below, you can install any version of Ruby as you require by simply changing the version ‘2.1.1’ by the version you prefer or require for your project.

rvm install 2.1.1  

To set Ruby 2.1.1 as the default Ruby environment.

rvm use 2.1.1 --default  

If you have issue with setting the default Ruby environment or get an error that says the command does not exits, You can fix that too by adding the lines below in your .bashrc.

source ~/.rvm/scripts/rvm  

Now we have Ruby installed on CentOS using RVM. If you have any problem feel free to leave a comment below.

Ruby on Fedora

Ruby is a dynamic, reflective, object-oriented, general-purpose open source programming language with focus on simplicity and productivity. It has elegant syntax that is natural to read and easy to write. Ruby is a great language for developing Web Applications, Ruby has great frameworks for the Web like Ruby on Rails, Sinatra and many more. The current latest stable version available for Fedora is Ruby 2.0. Lets get into installing process.


ruby-devel is required by some gems for Ruby.

yum install ruby ruby-devel  

Now we have Ruby installed on Fedora. If you have any problem feel free to leave a comment below.

Compile and install Python 2.7.6 on CentOS

  • Enter the command below to get root privilege.

    su –


sudo su  
  • Installing Development Tools

    yum groupinstall ‘development tools’

  • Installing dependencies require by Python 2.7.6

    yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel wget

  • Downloading Python 2.7.6 source.

    wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz

  • Unpacking Python 2.7.6 source.

    tar -xvf Python-2.7.6.tar.xz

  • Entering into Python 2.7.6 source directory.

    cd Python-2.7.6.tar.xz

  • Commands used to compile and install Python 2.7.6.


    make install

    make clean

Now we have Python 2.7.6 installed on our CentOS system. If you have any problem feel free to leave a comment below.

Package Control on Sublime Text 3

What is Package Control?

Package Control is a package manager developed by Will Bond. Package Control can be used for downloading and installing plugins, Color Scheme and extensions developed by third party developers, The Package Control is really very useful because it can be always be used to add more features to Sublime Text.


The Package Control is written Python which makes it very easy to install and develop packages for it.

  • Go here.

  • Copy the code from the link above.

  • Open Sublime Text 3.

  • The built in Console of Sublime Text 3 by visiting to Menu > Views > Show Console

The Console would look like the image below.

Sublime Text 3 Console

  • Paste the code in the Console that you have copied from the link above.

You may require to restart Sublime Text 3

  • Access you Package Control by visiting Menu > Preferences > Package Control.

You package control must look like this

Sublime Text 3 Package Control

We now have Package Control installed on Sublime Text 3. The Color Scheme used in the screenshot is Solarized (Light).

If you have any problem with the steps above feel free to leave a comment below.

Linux Mint Debian 201403 has been released

Recently Linux Mint team announced Linux Mint Debian 201403, Linux Mint Debian Edition also known as LMDE is based directly on Debian Testing, instead of Ubuntu. Linux Mint Debian looks identical to Linux Mint which is based on Ubuntu. Linux Mint Debian offers all functionality seen on Linux Mint, while using Debian as a base instead of using Ubuntu. Linux Mint Debian is available in both MATE and Cinnamon desktop environments. Linux Mint Debian is a semi-rolling release (partially rolling) development model, this means that, unlike Debian Testing (a rolling release) which constantly receives updates, Linux Mint Debian periodically introduces “update Packs” which are tested snapshots of Debian Testing, this also means that Linux Mint Debian is more stable then Debian Testing. Keeping Linux Mint Debian up-to-Date is very easy, update Packs keep Linux Mint Debian current. Linux Mint does not use Debian package repositories, Linux Mint Debian has its own repositories. You can add a Debian repositories to Linux Mint without any problem, The only thing to be kept in mind while adding a Debian repositories is to see that the repositories is Debian testing or Debian Jessie which is current testing. If you like to take risk you can switch to Debian Sid which is also known as Debian unstable. Switching to Debian Sid is a personal preference and is not recommended if you are not an experienced user. If you are using Linux Mint Debian than a you need is a ‘dist-upgrade’ to upgrade to the current snapshot.

New Features!

update Pack 8

Cinnamon 2.0

MATE 1.6

Latest Mint tools and improvements

Support for EFI and GPT

System requirements:

x86 processor (LMDE 64-bit requires a 64-bit processor. LMDE 32-bit supports all x86 processors, non-PAE included).


5 GB of disk space

Graphics card capable of 800×600 resolution

DVD drive or USB port


64 Bit

Cinnamon x64 Bit

MATE 64 Bit

32 Bit

Cinnamon 32 Bit

MATE 32 Bit

Node.js on Ubuntu

What is Node.js?

Node.js is a brilliant platform for creating network applications. It is mainly known for its non-blocking I/O and event driven system. In simple terms, Node.js can easily handle a large number of requests while simultaneously consuming lesser server memory. These are the attributes make Node.js a better than other languages and platforms.

Why use Node.js?

Node.js comes with a built in HTTP server library. This means it doesn’t require the help of any external piece of software to act as a web server. Using Node.js alone one can have greater control of the web server parameters.

We will be installing Node.js on Ubuntu using Chris Lea PPA. The PPA will keep you will up-to-date to the latest stable version of Node.js depending on your Ubuntu release, The PPA might also download required dependencies depending on you Ubuntu install type.

There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed from node to nodejs. You’ll need to symlink /usr/bin/node to /usr/bin/nodejs or you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.

Lets get it up and running!

  • You need to update you local repository database by entering the command below.sudo apt-get update
  • Adding the PPA.sudo add-apt-repository ppa:chris-lea/node.js
  • Re-updating the local repository database to add the PPA to the local repository database.sudo apt-get update
  • Installing Node.js using the PPA

This will also install NPM.

sudo apt-get install nodejs  

Writing you first Node.js App.

  • We need to create a file named app.js. app is the name .js stands for javascript file. js is always used to specify that the file is a javascript file.
  • Add the lines given below.
var http = require("http"); 
server = http.createServer(function (request, response) { 
 console.log("New request. Request url:" + request.url);
 response.writeHead(200, {"Content-Type":"text/plain"});

console.log("Starting Node.js server"); 
console.log("Running at");

You can visit to see the app in action.

Now we have Node.js installed on Ubuntu. If you have any problem feel free to leave a comment below.