Skip to content

Instantly share code, notes, and snippets.

@amit352
Forked from ganine/Vagrantfile
Created November 22, 2017 03:20
Show Gist options
  • Save amit352/1dfe74d424edd1f4b92aaa9e76d2730a to your computer and use it in GitHub Desktop.
Save amit352/1dfe74d424edd1f4b92aaa9e76d2730a to your computer and use it in GitHub Desktop.

Revisions

  1. @ganine ganine revised this gist Mar 9, 2014. 1 changed file with 36 additions and 23 deletions.
    59 changes: 36 additions & 23 deletions bootstrap_ubuntu1204.sh
    Original file line number Diff line number Diff line change
    @@ -1,66 +1,79 @@
    #!/usr/bin/env bash


    # Update sources
    sudo apt-get update -y

    # Git
    sudo apt-get install git-core -y
    git config --global color.ui true

    echo '.*swp' > ~/.gitignore_global
    git config --global core.excludesfile ~/.gitignore_global

    # Tig
    sudo apt-get install tig -y

    # Zsh
    sudo apt-get install zsh -y
    sudo chsh -s $(which zsh) $(whoami)

    # Prezto
    zsh

    git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

    setopt EXTENDED_GLOB
    for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
    ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
    done

    # tmux
    sudo apt-get install tmux -y

    # ack!
    sudo apt-get install ack-grep -y
    echo 'alias ack="ack-grep"' >> ~/.zshrc

    # cURL
    sudo apt-get install curl -y

    # htop
    sudo apt-get install htop -y


    # Development tools
    sudo apt-get install build-essential -y

    # Packages required for compilation of some stdlib modules
    sudo apt-get install tklib -y

    # Extras for RubyGems and Rails
    sudo apt-get install zlib1g-dev libssl-dev -y

    # Readline Dev on Ubuntu 12.04 LTS
    sudo apt-get install libreadline-gplv2-dev -y

    # Nokogiri dependencies
    sudo apt-get install libxml2 libxml2-dev libxslt1-dev -y


    # rbenv
    git clone https://github.com/sstephenson/rbenv.git .rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
    echo 'eval "$(rbenv init -)"' >> ~/.zshrc

    git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

    git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
    echo 'bundler' >> ~/.rbenv/default-gems


    # Node.js
    sudo apt-get install nodejs -y


    # Vim
    sudo apt-get install vim -y

    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  2. @ganine ganine revised this gist Mar 9, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bootstrap_ubuntu1204.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ sudo apt-get install tig -y

    # Zsh
    sudo apt-get install zsh -y
    chsh -s $(which zsh)
    sudo chsh -s $(which zsh) $(whoami)

    # tmux
    sudo apt-get install tmux -y
  3. @ganine ganine created this gist Mar 9, 2014.
    9 changes: 9 additions & 0 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    VAGRANTFILE_API_VERSION = "2"

    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.box = "precise64"
    config.vm.provision :shell, :privileged => false, :path => "bootstrap_ubuntu1204.sh"
    end
    66 changes: 66 additions & 0 deletions bootstrap_ubuntu1204.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,66 @@
    #!/usr/bin/env bash


    # Update sources
    sudo apt-get update -y

    # Git
    sudo apt-get install git-core -y
    git config --global color.ui true

    # Tig
    sudo apt-get install tig -y

    # Zsh
    sudo apt-get install zsh -y
    chsh -s $(which zsh)

    # tmux
    sudo apt-get install tmux -y

    # ack!
    sudo apt-get install ack-grep -y
    echo 'alias ack="ack-grep"' >> ~/.zshrc

    # cURL
    sudo apt-get install curl -y

    # htop
    sudo apt-get install htop -y


    # Development tools
    sudo apt-get install build-essential -y

    # Packages required for compilation of some stdlib modules
    sudo apt-get install tklib -y

    # Extras for RubyGems and Rails
    sudo apt-get install zlib1g-dev libssl-dev -y

    # Readline Dev on Ubuntu 12.04 LTS
    sudo apt-get install libreadline-gplv2-dev -y

    # Nokogiri dependencies
    sudo apt-get install libxml2 libxml2-dev libxslt1-dev -y


    # rbenv
    git clone https://github.com/sstephenson/rbenv.git .rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
    echo 'eval "$(rbenv init -)"' >> ~/.zshrc

    git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

    git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
    echo 'bundler' >> ~/.rbenv/default-gems


    # Node.js
    sudo apt-get install nodejs -y


    # Vim
    sudo apt-get install vim -y

    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle