Skip to content

Instantly share code, notes, and snippets.

@herry13
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save herry13/b35cc2abcb04b9305ff8 to your computer and use it in GitHub Desktop.

Select an option

Save herry13/b35cc2abcb04b9305ff8 to your computer and use it in GitHub Desktop.
Post creation script for ubuntu VM prepared for Nuri
#!/bin/bash
## install required packages
sudo apt-get -y update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libreadline6-dev libyaml-dev git mercurial
## downward and install ruby-2.1.2
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2/
./configure
make
sudo make install
cd /tmp
rm -rf ruby-2.1.2
rm ruby-2.1.2.tar.gz
## install required Ruby Gems
sudo gem install antlr3 --no-ri --no-rdoc
## set vim config
echo "set ts=4
set number" > ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment