Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ubuntu script

  • Loading branch information...
commit 444e4e404232fca09e5337b102faefbc35e910f1 1 parent aa0466f
@croaky croaky authored
Showing with 56 additions and 6 deletions.
  1. +1 −1  README.md
  2. +5 −5 mac.rb
  3. +50 −0 ubuntu
  4. 0  ubuntu.rb
View
2  README.md
@@ -13,4 +13,4 @@ First, install XCode. It comes with your OS X CD or you can [download it](http:/
Ubuntu
------
-Coming soon.
+ bash < <( curl https://github.com/thoughtbot/laptop/raw/master/ubuntu )
View
10 mac.rb
@@ -8,16 +8,16 @@
`rvm use 1.9.2-p180 --default`
puts "Installing Bundler for managing Ruby libraries ..."
- `gem install bundler`
+ `gem install bundler --no-rdoc --no-ri`
puts "Installing Rails to write and run web applications ..."
- `gem install rails`
+ `gem install rails --no-rdoc --no-ri`
puts "Installing the Heroku gem to interact with the http://heroku.com API ..."
- `gem install heroku`
+ `gem install heroku --no-rdoc --no-ri`
-puts "Installing the Taps gem to push and pull SQL databases between development, staging, and production environments"
- `gem install taps`
+puts "Installing the Taps gem to push and pull SQL databases between development, staging, and production environments ..."
+ `gem install taps --no-rdoc --no-ri`
puts "Installing Homebrew, a great OS X package manager ..."
`ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"`
View
50 ubuntu
@@ -0,0 +1,50 @@
+#!/usr/bin/env bash
+
+if [[ ! -d "$HOME/dev" ]]; then
+ mkdir -p "$HOME/dev"
+fi
+
+cd "$HOME/dev"
+
+printf "Installing OS packages. You will be prompted for your password ..."
+ sudo apt-get update
+ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev
+
+printf "Installing RVM (Ruby Version Manager) ..."
+ curl -s -O -L -B https://rvm.beginrescueend.com/releases/rvm-install-head
+ chmod +x rvm-install-head
+ "$PWD/rvm-install-head"
+ [[ -f rvm-install-head ]] && rm -f rvm-install-head
+
+printf "Setting up RVM to load with new shells ..."
+ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> "$HOME/.bash_profile"
+ source ~/.bash_profile
+ source ~/.rvm/scripts/rvm
+
+printf "Installing Bundler for managing Ruby libraries ..."
+ gem install bundler --no-rdoc --no-ri
+
+printf "Installing Rails to write and run web applications ..."
+ gem install rails --no-rdoc --no-ri
+
+printf "Installing the Heroku gem to interact with the http://heroku.com API ..."
+ gem install heroku --no-rdoc --no-ri
+
+printf "Installing the Taps gem to push and pull SQL databases between development, staging, and production environments ..."
+ gem install taps --no-rdoc --no-ri
+
+printf "Installing the sqlite3 gem ..."
+ gem install sqlite3 --no-rdoc --no-ri
+
+printf "Install Postgres, a great open source relational database ..."
+ sudo apt-get libpq-dev postgresql
+
+printf "Installing ImageMagick, good for cropping and re-sizing images ..."
+ sudo apt-get install imagemagick --fix-missing
+
+printf "Setting up SSH keys. Press enter at each prompt ..."
+ ssh-keygen
+
+printf "This is your public key. Copy and paste it into your Github account ..."
+ cat ~/.ssh/id_rsa.pub
+
View
0  ubuntu.rb
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.