Historic archive

Install Ruby 2.2.2

We recommend you install git , curl before you get started. In Ubuntu sudo apt-get install git curl Pre-reqs Make your current non-root user as a sudoer. To do so, write a file /etc/sudoe…

VirtEngine by DET.io 1 minute

A technician working on hardware in a server room.

We recommend you install git, curl before you get started.

In Ubuntu

sudo apt-get install git curl

Pre-reqs

Make your current non-root user as a sudoer. To do so, write a file /etc/sudoers.d/USERNAME

USERNAME  ALL = (root) NOPASSWD:ALL

Make it as only readable

$ chmod 0440 /etc/sudoers.d/USERNAME

NOTE Please avoid using superuser(root) from here. Run all the below commands as USERNAME

Install RVM

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

If your current .gnupg/ folder is in root permission, then change the permission to USERNAME with the command sudo chown -R USERNAME:USERNAME ~/.gnupg/

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

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

to run rvm from anywhere

$ source ~/.rvm/scripts/rvm

Once you have rvm installed, go ahead and install ruby 2.2.2

$ rvm install ruby-2.2.2

This will download and install and setup ruby for ya. !

set the installed ruby as default

$ rvm use ruby-2.2.2 --default

Using Ruby

$ rvm list

rvm rubies

=\* ruby-2.2.2 [ x86_64 ]

=> - current
=* - current && default
 * - default  ``

Ruby on Rails

If you wish to work on a ruby on rails project like Nilavu

its quite simple.

$ git clone https://github.com/megamsys/nilavu.git

$ cd nilavu

$ bundle update

$ bundle install

$ rails s

Voila! we covered installing ruby and using it to run a RoR application.

You can use Megam - Cloud Management to launch a Ruby on Rails App in minutes..

Continue reading

More from the archive

A padlock and key — bonded stake under slash conditions.
Historic archive

Meet VirtEngine at HostingCon India 2016!

Introduction VirtEngine will be exhibiting in HostingCon India 2016! Make sure to visit our Booth @ G1 if you’re paying a visit. About HostingCon HostingCon is the premiere industry confe…

Server racks in a provider data centre.
Historic archive

Installing VirtEngine on CentOS

Introduction Before we begin, lets install OpenJDK8 and cassandra. This tutorial will help you set up VirtEngine. Prerequisites OpenJDK8 su -c “yum install java-1.8.0-openjdk” Cassandra 3…