Skip to content

Instantly share code, notes, and snippets.

@SethWilson
Last active September 11, 2015 13:37
Show Gist options
  • Save SethWilson/59ff594dad672a4ca52e to your computer and use it in GitHub Desktop.
Save SethWilson/59ff594dad672a4ca52e to your computer and use it in GitHub Desktop.
Installing GSS on AWS EC2
# From : https://gorails.com/setup/ubuntu/14.04
# and
# https://www.digitalocean.com/community/tutorials/how-to-deploy-sinatra-based-ruby-web-applications-on-ubuntu-13
# and parts from
# https://www.digitalocean.com/community/tutorials/how-to-install-ruby-2-1-0-and-sinatra-on-ubuntu-13-with-rvm
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
sudo apt-get install ruby
# Install rbenv
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install 2.2.3
rbenv global 2.2.3
ruby -v
#install bundler
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
sudo apt-get install nginx
gem install unicorn
#configure git
git config --global color.ui true
git config --global user.name "Seth Wilson"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
#add key to github
The next step is to take the newly generated SSH key and add it to your Github account. You want to copy and paste the output of the following command and paste it here. https://github.com/settings/ssh
cat ~/.ssh/id_rsa.pub
Once you've done this, you can check and see if it worked:
ssh -T [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment