• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

By Abhishek Ghosh October 22, 2014 9:51 am Updated on October 22, 2014

Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

Advertisement

Here is a step by step guide for the beginners on how to install RVM on Rackspace Cloud Server running Ubuntu 14.04, PVHVM version for Rails. Ruby is an elegant object-oriented, general-purpose programming language. Ruby has influence of Perl and Lisp – that is about usage of Ruby though.

 

This Guide To Install RVM on Rackspace Cloud Server is Not For Devops Account

 

Rackspace Support can install Ruby for all kind of accounts except the Infrastructure managed level. This guide is not intended to mess up your existing managed setup. For the Infrastructure managed level users, the whole server image will be available as premium download from our Premium Membership area along with Video Guide. This is the mother text guide which practically not require to purchase server image unless you need rapid multiple deployments.

You should have a fresh device – spin up a new server instance with current Performance 1 flavor with PVHVMfeature.

Advertisement

---

Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

 

Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

 

As usually, login to your device (=new server) as root; update and upgrade your device :

Your Location Will Be /root
Vim
1
2
3
ssh root@IPaddress
apt-get update -y && apt-get upgrade
# take decision judiciously for upgrade prompt

As Ruby on Rails does not come as a usable package, we usually use version managers like the Ruby Version Manager ( RVM ). This is true for all Unix like OS.

But you should always check whether Ruby is installed or not by running which ruby command. If Ruby is not installed, you will not get any output. First we need to install the dependencies :

/root
Vim
1
2
3
apt-get install curl git-core ruby
# read documentation here
# https://github.com/wayneeseguin/rvm

Actually if you run this command :

Vim
1
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

The bash script will do the major work. Find .bashrc file by running locate .bashrc command an edit it with nano. You need to edit the .bashrc file :

.bashrc
Vim
1
2
3
4
5
6
7
8
# use ^ + W to find the following :
[ -z "$PS1" ] && return
# and replace it with
if [[ -n "$PS1" ]]; then
# go to the end of file and add this
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi
# write out with ^ + O and exit with ^ + X

Run the following commands :

/root
Vim
1
2
3
4
5
6
7
8
9
10
11
12
# load .bashsrc to current environment
source ~/.bashrc
# get a list of what to install
rvm notes
# you'll get a huge output like sudo aptitude install build-essential bison openssl
# copy and paste and hit Enter / Return key
# on post installation, run
rvm list known
# you will get a list of versions
# you might need a specific version
rvm install <ver-number>-head
rvm --default <ver-number>-head

 

Shortcut to Install RVM for Ordinary Usage

 

While the above is precise, this method can give satisfactory result :

/root
Vim
1
2
3
4
\curl -sSL https://get.rvm.io | bash -s stable --rails
source ~/.rvm/scripts/rvm
rvm install <ver-number>
rvm use <ver-number>

 

Adding Nginx, Passenger and an application server

 

We can install in this way :

/root
Vim
1
2
3
4
5
6
7
# install the dependencies
# do not blindly copy
# install what you'll need
# we have libsqlite3-dev and nodejs for example
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties libxslt1-dev libxml2-dev libmysqlclient-dev libsqlite3-dev nodejs
gem install passenger
passenger-install-nginx-module

Here is a script :

Vim
1
https://gist.githubusercontent.com/AbhishekGhosh/afa3bacf2124e803bf73/raw/9b737a42e950581f16ed3074c69f5bcb920f24cb/nginx-ruby-controller-bash-script.sh

You can work with it :

/root
Vim
1
2
3
4
5
6
7
wget -O init-deb.sh https://gist.githubusercontent.com/AbhishekGhosh/afa3bacf2124e803bf73/raw/9b737a42e950581f16ed3074c69f5bcb920f24cb/nginx-ruby-controller-bash-script.sh
# move it
mv init-deb.sh /etc/init.d/nginx
# make it executable
chmod +x /etc/init.d/nginx
# apply it
/usr/sbin/update-rc.d -f nginx defaults

Our config file will be here :

/opt/nginx/conf/nginx.conf
Vim
1
2
3
4
locate nginx.conf
# copy the output to crosscheck
nano /opt/nginx/conf/nginx.conf
# edit normally

Database part is easy :

/root
Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
apt-get install mysql-server mysql-client libmysqlclient-dev
# mysql database creation, adding user etc
mysql -u root
# mysql >
# is omitted
CREATE DATABASE your-database;
CREATE USER 'user-name'@'localhost' IDENTIFIED BY 'your-password';
# may be?
GRANT SELECT,DELETE,INSERT,UPDATE ON .* TO 'user-name'@'localhost';
# example with service net
GRANT ALL PRIVILEGES ON .* TO 'user-name'@'60.669.769.69';
FLUSH PRIVILEGES;
exit

Final work is to deploy Rails.

Tagged With ruby

This Article Has Been Shared 876 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

  • Cloud Computing – Risks of Free Public Cloud you are using

    Cloud Computing, specially the free public cloud computing has potential risks. Most users are not even aware that they are actually using Cloud Computing.

  • OpenStack Swift and Rackspace Cloud Files

    OpenStack Swift and Rackspace Cloud Files made the real Cloud Computing developers and core users more power. Cloud Files Virtually equivalent to Cloud Server.

  • Rackspace Deployment Services Early Access Video Guide

    Rackspace Deployment Services Early Access Video Guide Shows How to Setup Rackspace Cloud Server, Load Balancers, Cloud Database in easy clicks from GUI.

  • Points to Check Before Switching to Cloud Computing

    If you work as a IT service provider you need either to explain the benefits of cloud computing or decide to switch own business, some points to check before switching to Cloud.

  • Setup WordPress on OpenShift with Domain

    Here is a full guide to rightly setup WordPress on OpenShift PaaS with domain name and avoid any possible problem with OpenShift’s App Name. There is no meaning of repeating the initial steps to Setup WordPress on OpenShift, we have two years old guide plus one year old video guide to setup WordPress on OpenShift. […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023
  • What is COB LED? How LED Chip On Board Works January 20, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)," in The Customize Windows, October 22, 2014, January 27, 2023, https://thecustomizewindows.com/2014/10/install-rvm-rackspace-cloud-server-ubuntu-pvhvm/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT