Skip to content

Commit 855ca92

Browse files
committed
create_an_ssh_key, diagnostics, misc
1 parent 2ec03e5 commit 855ca92

15 files changed

+151
-156
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Author: Alex Chaffee <mailto:[email protected]>
44

55
# Overview
66

7-
This app creates <http://installfest.heroku.com> which leads students through the various complicated setup instructions for getting Ruby, Rails, Git, etc. installed on whatever combination of computer, OS, and version they happened to bring the the workshop.
7+
This is a Sinatra app, deployed at <http://installfest.heroku.com>, which leads students through the various complicated setup instructions for getting Ruby, Rails, Git, etc. installed on whatever combination of computer, OS, and version they happened to bring the the workshop.
88

99
The site comprises files stored in a "case" directory; the one we care about now is ROOT/cases/installfest.
1010

@@ -136,7 +136,7 @@ StepFile is an [Erector](http://erector.rubyforge.org)-based DSL, so if you want
136136
end
137137

138138

139-
# TODO (app)
139+
# TODO (features)
140140

141141
* big fat checkboxes
142142
* checking the box should make the step go green
@@ -156,7 +156,15 @@ StepFile is an [Erector](http://erector.rubyforge.org)-based DSL, so if you want
156156
* add a `tip` directive
157157
* add a `details` block (nested, maybe collapsed)
158158

159-
## content
159+
# TODO (technical)
160+
* upgrade to Erector 0.9
161+
* test all pages during "startup"
162+
* growl if broken
163+
* 404 should show page with TOC and stuff
164+
* StepFile object
165+
* move fonts local
166+
167+
# TODO (content)
160168
* install ALL the operating systems!
161169

162170

cases/installfest/create_a_heroku_account.step

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ step "Install the heroku gem" do
2828
end
2929

3030
step "Add your SSH key to your Heroku account" do
31+
link "create_an_ssh_key"
3132
console "heroku keys:add"
3233
todo "link to ssh key setup instructions"
3334
end
3435

35-
step "If you have further Heroku issues" do
36+
tip "If you have further Heroku issues" do
3637

3738
note "try following [<http://support.heroku.com/forums/43117/entries/32505> these directions] to install (or re-install) the `heroku` client."
3839

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
note "An SSH key uniquely identifies you (and your computer) when your computer is communicating with other computers. Think of an SSH key as a fancy password."
2+
3+
note "You'll need one of these to create your Heroku and Github accounts."
4+
5+
important "Be sure to use the same email address that you used when you set up Git."
6+
7+
important "**REPLACE** `[email protected]` with your **actual email address** below."
8+
9+
console "ssh-keygen -C [email protected] -t rsa"
10+
11+
choice "keyphrase" do
12+
option "Hit enter to accept blank passphrase, then hit enter again"
13+
option "If your computer is shared with other people, as in a work laptop, you should choose and enter a real passphrase. Twice."
14+
end
15+
16+
todo "expected output of ssh-keygen command"
17+
18+
verify do
19+
note "Your brand-new public key is now stored at `~/.ssh/id_rsa.pub`"
20+
todo "what is a home directory? what is tilde?"
21+
tip "Public vs. Private Keys" do
22+
note "If you look inside `~/.ssh/`, you will notice two files with the same name: `id_rsa` and `id_rsa.pub`."
23+
note "`id_rsa.pub` is your **public key** and can be shared freely."
24+
note "`id_rsa` is your **private key** and must be kept secret."
25+
note "If someone else gets your private key and your passphrase, then they can pretend to be you and log on to your Heroku or Github accounts and cause mischief!"
26+
end
27+
end
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
console "which git"
4+
result "/usr/local/bin/git"
5+
6+
console "which ruby"
7+
result "~/.rvm/rubies/ruby-1.9.2-p0/bin/ruby"
8+
9+
console "which rails"
10+
result "~/.rvm/gems/ruby-1.9.2-p0@global/bin/rails"
11+
12+
console "gem list --local"
13+
note "this will show a lot of gems... check with a TA to make sure you have all the gems you need"
14+
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
console "which git"
4+
todo "result"
5+
6+
console "which ruby"
7+
todo "result"
8+
9+
console "which rails"
10+
todo "result"
11+
12+
console "gem list --local"
13+
note "this will show a lot of gems... check with a TA to make sure you have all the gems you need"
14+
15+

cases/installfest/get_a_sticker.step

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ verify "heroku deploy" do
3535

3636
end
3737

38+
link "diagnostics_for_windows"
39+
link "diagnostics_for_rvm"

cases/installfest/install_sqlite_manager.step

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,35 @@ step "Install SQLite Manager" do
99

1010
note "Install the [SQLite Manager](https://addons.mozilla.org/en-US/firefox/addon/5817) Firefox plugin."
1111

12-
note "If you have trouble installing, follow these detailed instructions:"
12+
end
1313

14+
step "If you have trouble installing, follow these detailed instructions:" do
15+
16+
verify "Your Firefox Version" do
17+
note "Open Firefox"
18+
note "Select the *Help* menu"
19+
note "Click *About Mozilla Firefox*"
20+
note "The version number is right under the 'Firefox' title."
21+
result "3.6 or higher"
22+
note "If you have an old version, [upgrade firefox](http://www.mozilla.com/en-US/firefox/upgrade.html)"
23+
end
24+
1425
note <<-MARKDOWN
1526

16-
* If you already have Firefox installed, verify that it is **version 3.6.13** or greater. (Help -&gt; About Mozilla Firefox. The version number is right under the &quot;Firefox&quot; title.)
17-
18-
* If you don't have Firefox installed, or it's an older version, [<http://www.mozilla.com/en-US/> install Firefox].
19-
20-
* Once it's installed, open Firefox and go to Tools -&gt; Add-ons. At the top of the add-ons window, click &quot;Get Add-ons.&quot;
27+
* Once it's installed, open Firefox and go to Tools -> Add-ons. At the top of the add-ons window, click "Get Add-ons."
2128

22-
* There will be search box directly underneath &quot;Get Add-ons&quot; that says &quot;Search All Add-ons.&quot; Enter &quot;SQLite&quot; (without the quotes) in the box and hit enter.
29+
* There will be search box directly underneath "Get Add-ons" that says "Search All Add-ons." Enter `SQLite` in the box and hit enter.
2330

24-
* **SQLite Manager** should be the top result. Click &quot;Add to Firefox...&quot; (If SQLite Manager isn't in the results, check the spelling - SQLite only has one L. Also, check that you have at least Firefox 3.5.)
31+
* **SQLite Manager** should be the top result. Click "Add to Firefox..."
2532

26-
* Wait for the countdown, then click &quot;Install Now.&quot;
33+
* If SQLite Manager isn't in the results, check the spelling - SQLite only has one L.
2734

28-
* In the Add-ons windows, click &quot;Restart Firefox.&quot;
35+
* Wait for the countdown, then click "Install Now."
2936

30-
* Once Firefox restarts, the Add-ons window should say &quot;1 new add-on has been installed.&quot;
37+
* In the Add-ons window, click "Restart Firefox."
38+
* This will preserve the windows you have open, so it should bring you right back to this page.
39+
40+
* Once Firefox restarts, the Add-ons window should say "1 new add-on has been installed."
3141

3242
MARKDOWN
3343
end

cases/installfest/osx_panther.step

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -78,32 +78,10 @@ In some cases, SQLite was installed with Rails in the previous section. To check
7878

7979
If the list does not include sqlite3-ruby, do <code>sudo gem install sqlite3-ruby</code> in Terminal app.
8080

81-
**SQLite Manager Firefox add-on**
82-
83-
Step 1 is [<http://www.mozilla.com/en-US/> install Firefox]. Even if it's already installed, you may need to upgrade; the add-on requires 3.5 or greater. ([How to find out which version of Firefox you have](how_to_find_out_which_version_of_firefox_you_have))
84-
85-
Install the SQLite Manager Firefox add-on.
86-
87-
* Open Firefox
88-
89-
* Under the Tools menu, select Add-Ons
90-
91-
* Click Get Add-Ons at the top of the small window that comes up
92-
93-
* In the search box, enter "SQLite" without the quotes
94-
95-
* The first search result should be SQLite Manager.
96-
* If SQLite Manager is not in the search results, you probably have a version of Firefox that is too old. [<http://www.mozilla.com/en-US/> Install a newer version of Firefox] and then try again to install the add-on.
97-
98-
* Click the "Add to Firefox..." button.
99-
100-
* Click "Install" in the small window that comes up
101-
102-
* Click "Restart Firefox" in the add-ons window to complete the install. This will preserve the windows you have open, so it should bring you right back to this page.
103-
104-
* Once Firefox has restarted, look under the Tools menu. SQLite Manager should be one of the options.
105-
10681
MARKDOWN
82+
83+
link "install_sqlite_manager"
84+
10785
end
10886

10987
step "Install KomodoEdit " do
@@ -115,23 +93,19 @@ step "Other required libraries " do
11593
sudo gem install rspec rspec-rails cucumber cucumber-rails database_cleaner webrat --no-rdoc --no-ri
11694
sudo gem install heroku --no-rdoc --no-ri
11795
BASH
118-
end
119-
120-
step "Verify installation " do
121-
note <<-MARKDOWN
122-
123-
Make sure you can do everything in the following sections of the [<http://wiki.devchix.com/index.php?title=Server_2003> Windows install directions] (from "Create a Test Application" onwards). Wherever it says "open git bash", substitute "open Terminal."
124-
125-
* [Server_2003#Create_a_test_application|Create a test application](server_2003_create_a_test_application_create_a_test_application)
126-
127-
* [Server_2003#Create a model|Create a model](server_2003_create_a_model_create_a_model)
128-
129-
* [Server_2003#Check test_app in to Local Git|Check test_app in to Local Git](server_2003_check_test_app_in_to_local_git_check_test_app_in_to_local_git)
96+
end
13097

131-
* [Server_2003#Create_an_ssh_public_key|Create an ssh public key](server_2003_create_an_ssh_public_key_create_an_ssh_public_key)
98+
step "Create an SSH key" do
99+
link "create_an_ssh_key"
100+
end
132101

133-
* [Server_2003#Create a Heroku Account|Create a Heroku Account](server_2003_create_a_heroku_account_create_a_heroku_account)
102+
step "Create a Heroku account" do
103+
link "create_a_heroku_account"
104+
end
134105

135-
* [Server_2003#Deploy test_app to Heroku|Deploy test_app to Heroku](server_2003_deploy_test_app_to_heroku_deploy_test_app_to_heroku)
136-
MARKDOWN
106+
step "Verify installation " do
107+
todo "create_a_test_application"
108+
todo "create_a_model"
109+
todo "check_test_app_in_to_local_git"
110+
todo "deploy_test_app_to_heroku"
137111
end

cases/installfest/osx_snow_leopard.step

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -49,49 +49,9 @@ step "Verify successful installation " do
4949
result "3.0 (or something???)"
5050
end
5151

52-
verify "gems" do
53-
54-
console "gem list --local"
55-
56-
result <<-PRE
57-
*** LOCAL GEMS ***
58-
59-
actionmailer (2.3.9)
60-
actionpack (2.3.9)
61-
activerecord (2.3.9)
62-
activeresource (2.3.9)
63-
activesupport (2.3.9)
64-
builder (2.1.2)
65-
configuration (1.1.0)
66-
cucumber (0.6.2)
67-
cucumber-rails (0.2.4)
68-
diff-lcs (1.1.2)
69-
gherkin (1.0.30)
70-
heroku (1.8.0)
71-
json (1.2.0) or json_pure (1.4.3)
72-
launchy (0.3.5)
73-
nokogiri (1.4.1)
74-
polyglot (0.3.0) (optional)
75-
rack (1.1.0)
76-
rails (2.3.5)
77-
rake (0.8.7)
78-
rest-client (1.3.1)
79-
rspec (1.3.0)
80-
rspec-rails (1.3.2)
81-
sqlite3-ruby (1.2.5)
82-
term-ansicolor (1.0.4)
83-
treetop (1.4.3) (optional)
84-
webrat (0.7.0)
85-
PRE
86-
end
8752
end
8853

89-
next_step "create_a_test_application" do
90-
91-
note <<-MARKDOWN
92-
**Finally**, make sure you can do everything in the Windows install directions. Wherever it says "git bash", you can mentally substitute "Terminal" - git bash is the name for the Terminal-equivalent program on Windows. I know, strange name!
93-
MARKDOWN
94-
end
54+
next_step "create_a_test_application"
9555

9656
step "Congratulations!" do
9757
note "You have everything you need to write a Ruby on Rails application."
@@ -107,7 +67,6 @@ MARKDOWN
10767
end
10868

10969
step "Destroy the heroku app" do
110-
11170
note "Go to <https://heroku.com/myapps> and then click on your app name. Scroll to the bottom of the page and click Destroy App."
11271
end
11372

cases/installfest/osx_snow_leopard_gcc.step

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -179,24 +179,9 @@ We'll be using the KomodoEdit text editor during the workshop, though you are fr
179179
MARKDOWN
180180
end
181181

182-
step "Create an ssh public key " do
183-
note <<-MARKDOWN
184-
185-
You'll need one of these to create your Heroku account in the next section.
186-
187-
* Open up a new Terminal window.
188-
<pre>ssh-keygen -C "Your Actual Email" -t rsa</pre> (email should match git config setting)
189-
190-
* Hit enter to accept default location for ssh key.
191-
192-
* Hit enter to accept blank passphrase (if computer is shared with other people, as in a work laptop, you should create a passphrase). Hit enter again to accept blank passphrase (or enter passphrase again).
193-
194-
* [Output of ssh-keygen command](output_of_ssh_keygen_command)
195-
196-
* Your brand-new public key is now stored at <code>~/.ssh/id_rsa.pub</code>.
197-
198-
MARKDOWN
199-
end
182+
step "Create an ssh public key" do
183+
link "create_an_ssh_key"
184+
end
200185

201186
step "Create a Heroku Account " do
202187
link "create_a_heroku_account"
@@ -239,7 +224,9 @@ If "rails server" starts up with no errors, you're golden! It'll look something
239224
</pre>
240225
If it does, congratulations! You've successfully installed Ruby AND Rails and started your server. ([Ruby and Rails 3 Diagnostics|Here are some more diagnostics to try if it's not so smooth.](ruby_and_rails_3_diagnostics_here_are_some_more_diagnostics_to_try_if_it_s_not_so_smooth_)) Let's check it in the browser.
241226

242-
* In your browser, go to <http://localhost:3000> ([<http://wiki.devchix.com/images/successful-rails-install.jpg> screenshot of successful install])
227+
* In your browser, go to <http://localhost:3000>
228+
229+
![Successful Rails Install](http://wiki.devchix.com/images/successful-rails-install.jpg)
243230

244231
* Back in the Terminal window where you ran <code>rails server</code>, type control-c to kill the server.
245232

0 commit comments

Comments
 (0)