Skip to content

Commit

Permalink
move ssh key generation to first step so people can be setting up the…
Browse files Browse the repository at this point in the history
…ir github and heroku accounts while everything else is installing. also, people miss the prompt if it isn't shown until 30 minutes after typing the original command
  • Loading branch information
Dan Croak committed May 1, 2011
1 parent fbb7f0f commit bf60fca
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ Then, run this one-liner:
What it sets up
---------------

* package manager (Homebrew on OS X, apt-get on Ubuntu)
* git
* ack
* Postgres
* Redis
* ImageMagick
* RVM (Ruby Version Manager)
* Ruby 1.9.2-p180
* Gems: bundler, rails, heroku, taps, sqlite3 pg
* ssh public keys
* SSH public keys (for authenticating with services like Github and Heroku)
* Homebrew or apt-get (for managing operating system libraries)
* Git (for managing versions of code)
* Ack (for finding things in files)
* Postgres (for storing relational data)
* Redis (for storing key-value data)
* ImageMagick (for cropping and resizing images)
* RVM (for managing versions of the Ruby programming language)
* Ruby 1.9.2 stable (for writing general-purpose code)
* Bundler gem (for managing Ruby libraries)
* Rails gem (for writing web applications)
* Heroku gem (for interacting with the Heroku API)
* Taps gem (for pushing and pulling SQL databases between environments)
* SQLite and PG gems (for making Ruby talk to SQL databases)

It should take between 20-60 minutes for everything to install.
14 changes: 7 additions & 7 deletions mac
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env bash

echo "Setting up SSH keys. Press enter at each prompt ..."
ssh-keygen -t rsa

echo "Copying public key to clipboard. Paste it into your Github account ..."
cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh

echo "Installing Homebrew, a great OS X package manager ..."
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"

Expand Down Expand Up @@ -43,10 +50,3 @@ echo "Installing the Taps gem to push and pull SQL databases between development
echo "Installing Ruby gems to talk to the databases ..."
gem install sqlite3 pg --no-rdoc --no-ri

echo "Setting up SSH keys. Press enter at each prompt ..."
ssh-keygen -t rsa

echo "Copying public key to clipboard. Paste it into your Github account ..."
cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh

14 changes: 7 additions & 7 deletions ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ fi

cd "$HOME/dev"

echo "Setting up SSH keys. Press enter at each prompt ..."
ssh-keygen -t rsa

echo "This is your public key. Copy and paste it into your Github account ..."
cat ~/.ssh/id_rsa.pub
open https://github.com/account/ssh

echo "Using apt-get to install OS packages so let's update it first ..."
sudo apt-get update

Expand Down Expand Up @@ -49,10 +56,3 @@ echo "Installing the Taps gem to push and pull SQL databases between development
echo "Installing Ruby gems to talk to the databases ..."
gem install sqlite3 pg --no-rdoc --no-ri

echo "Setting up SSH keys. Press enter at each prompt ..."
ssh-keygen -t rsa

echo "This is your public key. Copy and paste it into your Github account ..."
cat ~/.ssh/id_rsa.pub
open https://github.com/account/ssh

0 comments on commit bf60fca

Please sign in to comment.