Skip to content

Instantly share code, notes, and snippets.

@oojewale
Last active October 19, 2017 11:04
Show Gist options
  • Save oojewale/c9edc668b68b97883ee35f45f203718c to your computer and use it in GitHub Desktop.
Save oojewale/c9edc668b68b97883ee35f45f203718c to your computer and use it in GitHub Desktop.
Basic env setup for Amazon AMI
#!/bin/bash
sudo yum install -y git gcc openssl-devel readline-devel zlib-devel
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
~/.rbenv/bin/rbenv init
source ~/.bash_profile
eval "$(rbenv init -)"
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.3.1
rbenv global 2.3.1
ruby -v
gem install bundler
mkdir ~/.rbenv/plugins
git clone git://github.com/dcarley/rbenv-sudo.git ~/.rbenv/plugins/rbenv-sudo
sudo yum groupinstall "Development tools"
sudo yum -y install postgresql postgresql-server postgresql-libs postgresql-contrib postgresql-devel postgresql-docs
sudo service postgresql initdb
sudo chkconfig postgresql on
sudo service postgresql start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment