Prepare installation of Ruby Version Manager (RVM) :
sudo apt-get install curl
mkdir /tmp/rvm && cd $_# Install mpapis public key (might need `gpg2` and or `sudo`)
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
# Download the installer
wget https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer
wget https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
# Verify the installer signature (might need `gpg2`), and if it validates...
gpg --verify rvm-installer.asc
# Run the installer
bash rvm-installer stableFinish and test RVM installation:
source ~/.rvm/scripts/rvm
rvm list known# before
ruby -v
which ruby
# install
rvm install 2.2
rvm use --default 2.2
# after
ruby -v
which rubyAdd to ~/.bash_profile:
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*Install Jekyll 3 and some gems needed for this blog:
gem install jekyll
gem install jekyll-paginate jekyll-sitemap
gem install octopress -v 3.0.12.pre.1
gem install octopress-deploy octopress-hooks octopress-escape-code
gem install coderay pygments redcarpet titlecase
gem install sass -v 3.4.5
gem install glynn --source http://gemcutter.orgcd to Jekyll project and build:
jekyll build