Skip to content

Instantly share code, notes, and snippets.

@Pluto1010
Created October 5, 2014 11:20

Revisions

  1. Pluto1010 revised this gist Oct 5, 2014. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions install ruby 2.1.3, git and Gems
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    locale-gen de_DE.UTF-8 > /dev/null;

    # update apt index
    apt-get update -qy

  2. Pluto1010 created this gist Oct 5, 2014.
    30 changes: 30 additions & 0 deletions install ruby 2.1.3, git and Gems
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    locale-gen de_DE.UTF-8 > /dev/null;

    # update apt index
    apt-get update -qy

    # upgrade system
    apt-get upgrade -qy

    # install git
    apt-get install -qy git-core build-essential

    # remove all unneeded packages
    apt-get autoremove -qy


    # default gem settings
    echo 'gem: --no-ri --no-rdoc' >> /etc/gemrc

    # install ruby 2.1.3 from ruby source
    cd /tmp &&\
    wget -O ruby-install-0.4.3.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.3.tar.gz &&\
    tar -xzf ruby-install-0.4.3.tar.gz &&\
    cd ruby-install-0.4.3/ &&\
    make install

    ruby-install ruby 2.1.3
    gem install bundler;

    cd /vagrant
    bundle install