Created
August 6, 2012 18:23
-
-
Save frank-who/3277326 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: curl -L https://raw.github.com/gist/3277326/ubuntu_bootstrap.sh | bash | |
RUBY=1.9.3-p327 | |
echo "Updating Packages"; echo | |
apt-get -y update && apt-get -y upgrade | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libgdbm-dev libxml2 libxml2-dev libxslt-dev git-core | |
echo "Installing Ruby"; echo | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$RUBY.tar.gz | |
tar -xvzf ruby-$RUBY.tar.gz | |
cd ruby-$RUBY/ | |
./configure --prefix=/usr/local && make && make install | |
echo "Installing Gems"; echo | |
gem install chef ruby-shadow ohai --no-ri --no-rdoc | |
echo "Generating keys"; echo | |
ssh-keygen -t rsa | |
echo "Complete!"; echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment