Merge lp:~natefinch/juju-core/win-getting-started into lp:juju-core/docs

Proposed by Nate Finch
Status: Merged
Merged at revision: 114
Proposed branch: lp:~natefinch/juju-core/win-getting-started
Merge into: lp:juju-core/docs
Diff against target: 240 lines (+175/-22)
2 files modified
htmldocs/getting-started.html (+16/-22)
htmldocs/ssh-keygen-win.html (+159/-0)
To merge this branch: bzr merge lp:~natefinch/juju-core/win-getting-started
Reviewer Review Type Date Requested Status
Dave Cheney (community) small nits Needs Fixing
Antonio Rosales Pending
Review via email: mp+183246@code.launchpad.net

Description of the change

Add windows to the list of supported client OSes and modify the instructions to support Windows. Note that there is a link to the windows installer that currently is non-functional.

To post a comment you must log in.
Revision history for this message
Nate Finch (natefinch) wrote :

Oh yeah, also modified the contribution instructions to use python's SimpleHTTPServer to test the docs, rather than trying to set up apache.

74. By Nate Finch

suggest juju init instead of generate-config to save typing

75. By Nate Finch

merge from trunk

Revision history for this message
John A Meinel (jameinel) wrote :

You have a comment about using SimpleHTTPServer, but I don't see that string anywhere in the actual diff. Did you forget to push to update it?

Revision history for this message
Nate Finch (natefinch) wrote :

Oh, sorry, after I made my changes, I merged from trunk and someone else
had already made the SimpleHTTPServer change, so mine got "lost", since it
was identical to the other one.

On Tue, Sep 3, 2013 at 8:19 AM, John A Meinel <email address hidden>wrote:

> You have a comment about using SimpleHTTPServer, but I don't see that
> string anywhere in the actual diff. Did you forget to push to update it?
>
> --
>
> https://code.launchpad.net/~natefinch/juju-core/win-getting-started/+merge/183246
> You are the owner of lp:~natefinch/juju-core/win-getting-started.
>

Revision history for this message
Dave Cheney (dave-cheney) wrote :
Download full text (6.8 KiB)

=== modified file 'htmldocs/getting-started.html'
--- htmldocs/getting-started.html 2013-08-22 13:55:23 +0000
+++ htmldocs/getting-started.html 2013-08-30 20
+ <li> An Ubuntu, Windows, or OSX machine to install the client on.</li>

A Ubuntu, Windows or OS X machine ...

+ <li> An environment which can provide a new server with an Ubuntu cloud operating system image on-demand. This includes services such as Amazon EC2, HP Cloud, or an OpenStack installation.</li>

s/an/a

+ <li> An SSH key-pair. If you have not already set one up, you need to generate an appropriate keypair.</li>

s/An/A

+ On Linux and Mac OSX:<br/>
+ <pre>ssh-keygen -t rsa -b 2048</pre> <br/> On Windows: <br/>See the <a href="ssh-keygen-win.html">Windows instructions</a>
+ </ul>

+ <p>Open the Start Menu and type "cmd" (without quotes) in the search box at the bottom of the Start

Use <code>cmd</code> then you don't need to tell people to omit the quotes.

Menu. Click on cmd.exe when it comes up in the search results. This will open up a Windows command prompt. </p>
+ <p>type the following in the command prompt: <pre>mkdir .ssh</pre><br/><br/>
+ This will create a folder called .ssh in your home directory.</p>

<code>.ssh</code>

+ </section>
+ <section id="download">
+ <h1>Download puttygen.exe</h1>
+
+ <p>Download puttygen.exe from the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY download page</a></pre>
+
+ <p>The file you download is not an installer, but a simple executable you can run directly.</p>
+ <p>Once downloaded, run puttygen.exe, you should see a dialog that looks like this:</p>
+ <p><img src="media/puttygen.png"/></p>
+
+ </section>
+ <section id="generate">
+ <h1>Generating your keys</h1>
+ <p>The defaults for the parameters at the bottom of the window are correct (SSH-2 RSA and 2048 bits). Click generate, and move your mouse back and forth over the window to generate your key.</p>
+ <p>It is recommended that you specify a passphrase (password) for your key, so that if it is lost, it can't be used without the password. Choose a password you can remember, because it cannot be recovered if forgotten.</p>
+ </section>
+ <section id="saving">
+ <h1>Save your keys</h1>
+ <p>Click Conversions->Export OpenSSH Key on the main menu. Find the .ssh folder you created earlier and save the key in that folder with the name id_rsa (no extension). This is where Juju and some other programs will look for it by default.<p>
+
+ <p>Next, you need to save your public key. To do this, right click in the box under "Public key for pasting into OpenSSH authorized_keys file", and click "Select All". Copy the text using Ctrl-C or right-click Copy.</p>
+
+ <p>Open Notepad and paste the contents of the clipboard. Save the file with the name id_rsa.pub in the same directory where you saved the private key (note,...

Read more...

review: Needs Fixing (small nits)
Revision history for this message
Nate Finch (natefinch) wrote :

> === modified file 'htmldocs/getting-started.html'
> + <li> An Ubuntu, Windows, or OSX machine to install the client
> on.</li>
>
> A Ubuntu, Windows or OS X machine ...

Wait, that can't be right. Ubuntu starts with a vowel sound (oo), and thus we should use "an", such as "an owl".

> + <li> An environment which can provide a new server with an
> Ubuntu cloud operating system image on-demand. This includes services such as
> Amazon EC2, HP Cloud, or an OpenStack installation.</li>
>
> s/an/a

as above

> + <li> An SSH key-pair. If you have not already set one up, you
> need to generate an appropriate keypair.</li>
>
> s/An/A

I pretty much always see people pronounce SSH as Ess Ess Aych, thus I used "an". I consider ssh to be such a universally known acronym at this point, that it's basically its own word. However, if others disagree, that's fine.

Revision history for this message
Antonio Rosales (arosales) wrote :

Note the current branch will need to re-factored to work with the current juju.ubuntu.com/docs layout. Other than that LGTM. The ssh section is a need add too.

-thanks,
Antonio

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'htmldocs/getting-started.html'
2--- htmldocs/getting-started.html 2013-08-22 13:55:23 +0000
3+++ htmldocs/getting-started.html 2013-08-30 20:12:23 +0000
4@@ -61,10 +61,12 @@
5 <p>This tutorial will show you how to get started with Juju, including installing, configuring and bootstrapping a new Juju environment.
6 Before you start you will need:</p>
7 <ul>
8- <li> An Ubuntu or OSX machine to install the client on.</li>
9- <li> An environment which can provide a new server with an Ubuntu cloud operating system image on-demand. This includes services such as Amazon EC2, HP Cloud, an OpenStack installation, or your local machine</li>
10- <li> An SSH key-pair. If you have not already set one up, you can generate an appropriate keypair with:</li>
11- <pre>ssh-keygen -t rsa -b 2048</pre>
12+ <li> An Ubuntu, Windows, or OSX machine to install the client on.</li>
13+ <li> An environment which can provide a new server with an Ubuntu cloud operating system image on-demand. This includes services such as Amazon EC2, HP Cloud, or an OpenStack installation.</li>
14+ <li> An SSH key-pair. If you have not already set one up, you need to generate an appropriate keypair.</li>
15+ On Linux and Mac OSX:<br/>
16+ <pre>ssh-keygen -t rsa -b 2048</pre> <br/> On Windows: <br/>See the <a href="ssh-keygen-win.html">Windows instructions</a>
17+ </ul>
18 </ul>
19 </section>
20 <section id="install">
21@@ -73,30 +75,22 @@
22 <nav class="control">
23 <a href="." class="selected" data-action="ubuntu">Ubuntu</a>
24 <a href="." class="" data-action="macosx">Mac OSX</a>
25+ <a href="." class="" data-action="windows">Windows</a>
26 </nav>
27 <div class="terminal-wrap">
28 <div data-section="ubuntu">
29 <p>To install Juju, you simply need to grab the latest juju-core package from the PPA:</p>
30 <pre>sudo add-apt-repository ppa:juju/stable
31- sudo apt-get update && sudo apt-get install juju-core</pre>
32+ sudo apt-get update &amp;&amp; sudo apt-get install juju-core</pre>
33 </div>
34 <div data-section="macosx">
35 <p>Juju is in <a href="http://brew.sh/">Homebrew</a>, to install do:</p>
36 <pre>brew install juju</pre>
37
38- <p>You can grab the latest pre-relase OSX client from our <a href="https://github.com/juju/juju-core/releases">Github Page</a>. Uncompress the tarball, then you can run the <code>juju</code> command from the terminal. We're in the process of testing these builds to be production ready, so if you have a problem please <a href="https://bugs.launchpad.net/juju-core/+filebug">file a bug</a>.</p>
39-
40- <p>If you have go installed you can install juju using go get. You can install go via homebrew you'll need bzr too:</p>
41- <pre>brew install go bzr
42- export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
43- </pre>
44- <p>Once you have go and bzr you can install juju:</p>
45- <pre>mkdir $HOME/go
46- export GOPATH=$HOME/go
47- go get -v launchpad.net/juju-core/...
48- export PATH=$PATH:$GOPATH/bin
49- </pre>
50- <p>be sure to add your go bin dir to your path permanently by adding it to your .bashrc</p>
51+ <p>We're in the process of testing the OSX client, so if you have a problem please <a href="https://bugs.launchpad.net/juju-core/+filebug">file a bug</a>.</p>
52+ </div>
53+ <div data-section="windows">
54+ <p>Download and run the <a href="PLACEHOLDER">Juju windows installer</a></p>
55 </div>
56 </div>
57 </section>
58@@ -104,12 +98,12 @@
59 <section id="config">
60 <h1>Configuring</h1>
61
62- <p>Now the Juju software is installed, it needs to be configured to use your particular cloud provider. This is done by generating and editing a file, "environments.yaml", which will live in your ~/.juju/ directory. You can generate the environments file manually, but Juju also includes a boilerplate configuration option that will flesh out most of the file for you and minimise the amount of work (and potential errors).</p>
63+ <p>Now that the Juju software is installed, it needs to be configured to use your particular cloud provider. This is done by generating and editing a file, "environments.yaml", which will live in Juju's configuration directory (~/.juju/ on Linux and OSX, %LOCALAPPDATA%/Juju on Windows). You can generate the environments file manually, but Juju also includes a boilerplate configuration option that will flesh out most of the file for you and minimise the amount of work (and potential errors).</p>
64 <p>To generate an initial config file, you simply need to run:</p>
65- <pre><code>juju generate-config -w</code></pre>
66+ <pre><code>juju init</code></pre>
67
68- <p>The -w switch causes the file to be written to your ~/.juju directory if an environments.yaml file does not already exist. It will also create the ~./juju directory if that does not exist.</p>
69- <p>This file will contain sample profiles for different types of cloud services, but you will need to edit the files to provide specific information for your cloud provider. Sections are created for Amazon (AWS) services, HPCloud and a generic OpenStack instance. For more specifics on what needs to be changed, see the relevant sections below.</p>
70+ <p>This will cause the file to be written to your Juju configuration directory if an environments.yaml file does not already exist. It will also create the directory if that does not exist.</p>
71+ <p>This file will contain sample profiles for different types of cloud services, but you will need to edit the files to provide specific information for your cloud provider. Sections are created for Amazon (AWS) services, HPCloud, and a generic OpenStack instance, as well as a local option on Linux. For more specifics on what needs to be changed, see the relevant sections below.</p>
72 <ul>
73 <li><a href="config-aws.html">Configuring for Amazon AWS</a></li>
74 <li><a href="config-hpcloud.html">Configuring for HP Cloud</a></li>
75
76=== added file 'htmldocs/media/puttygen.png'
77Binary files htmldocs/media/puttygen.png 1970-01-01 00:00:00 +0000 and htmldocs/media/puttygen.png 2013-08-30 20:12:23 +0000 differ
78=== added file 'htmldocs/ssh-keygen-win.html'
79--- htmldocs/ssh-keygen-win.html 1970-01-01 00:00:00 +0000
80+++ htmldocs/ssh-keygen-win.html 2013-08-30 20:12:23 +0000
81@@ -0,0 +1,159 @@
82+<!DOCTYPE html>
83+<html>
84+ <head>
85+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
86+ <title>Juju Documentation - Creating an SSH keypair on Windows</title>
87+ <link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,700,700italic|Ubuntu+Mono' rel='stylesheet' type='text/css' />
88+ <link rel="stylesheet" type="text/css" media="screen" href="//juju.ubuntu.com/wp-content/themes/juju-website/css/reset.css" />
89+ <link rel="stylesheet" type="text/css" media="screen" href="//juju.ubuntu.com/wp-content/themes/juju-website/css/960.css" />
90+ <link rel="stylesheet" type="text/css" media="screen" href="//juju.ubuntu.com/wp-content/themes/juju-website/css/base.css" />
91+ <link rel="stylesheet" type="text/css" media="screen" href="//juju.ubuntu.com/wp-content/themes/juju-website/css/home-new.css" />
92+ <link rel='stylesheet' id='stacktack-css' href='//juju.ubuntu.com/wp-content/plugins/stacktack/css/stacktack.min.css?ver=3.4.2' type='text/css' media='all' />
93+ <link href="css/main.css?1375975745" rel="stylesheet" type="text/css"/>
94+
95+ <!--[if lt IE 9]>
96+ <script type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
97+ <![endif]-->
98+</head>
99+ <body class="resources">
100+ <header class="global clearfix" role="banner">
101+ <div class="header-navigation">
102+ <div>
103+ <nav role="navigation">
104+ <ul>
105+ <li class="page_item page-item-6"><a href="https://juju.ubuntu.com/">Home</a></li>
106+ <li class="page_item page-item-7"><a href="https://juju.ubuntu.com/get-started/">Get started</a></li>
107+ <li class="page_item page-item-9 current_page_item"><a href="https://juju.ubuntu.com/resources/">Resources</a></li>
108+ <li class="page_item page-item-13"><a href="https://juju.ubuntu.com/community/">Community</a></li>
109+ <li class="page_item page-item-3688"><a href="https://juju.ubuntu.com/charm-store/">Charm Store</a></li>
110+ <li class="page_item page-item-3691"><a href="https://juju.ubuntu.com/events/">Events</a></li>
111+ <li class="page_item page-item-4474"><a href="https://juju.ubuntu.com/charm-championship/">Charm Championship</a></li>
112+ <li class="page_item page-item-4249"><a href="https://juju.ubuntu.com/survey/">Survey</a></li>
113+ <li>
114+ <form id="form-search" method="get" action="https://juju.ubuntu.com/">
115+ <fieldset>
116+ <input id="input-search" type="text" name="s" value="Search" />
117+ </fieldset>
118+ </form>
119+ </li>
120+ </ul>
121+ </nav>
122+ </div>
123+ </div>
124+ <div class="header-content">
125+ <div class="clearfix">
126+ <img src="https://juju.ubuntu.com/wp-content/themes/juju-website/img/arrow-nav.png" width="9" height="5" style="left:455px; display: block;" class="arrow-nav">
127+ <div class="header-navigation-secondary"></div>
128+ <div class="header-image"></div>
129+ <h1>Resources</h1>
130+ <h2>A collection of some of the most important online references for Juju users and developers.</h2>
131+ </div>
132+ </div>
133+</header>
134+ <section id="content" class="container-12">
135+ <div class="grid-12 doc-container">
136+ <div id="navlinks" class="grid-3 doc-navigation">LINKS</div>
137+ <div class="grid-9 doc-content">
138+ <article>
139+ <section id="intro">
140+ <h1>Creating SSH Keypairs on Windows</h1>
141+ <p>This tutorial will show you how to create SSH keys for use with Juju on Windows.</p>
142+ </section>
143+ <section id="folder">
144+ <h1>Create the .ssh folder</h1>
145+
146+ <p>First you need to create a folder called .ssh in your home directory, which will be where you save your ssh keys.<p>
147+ <p>Open the Start Menu and type "cmd" (without quotes) in the search box at the bottom of the Start Menu. Click on cmd.exe when it comes up in the search results. This will open up a Windows command prompt. </p>
148+ <p>type the following in the command prompt: <pre>mkdir .ssh</pre><br/><br/>
149+ This will create a folder called .ssh in your home directory.</p>
150+ </section>
151+ <section id="download">
152+ <h1>Download puttygen.exe</h1>
153+
154+ <p>Download puttygen.exe from the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY download page</a></pre>
155+
156+ <p>The file you download is not an installer, but a simple executable you can run directly.</p>
157+ <p>Once downloaded, run puttygen.exe, you should see a dialog that looks like this:</p>
158+ <p><img src="media/puttygen.png"/></p>
159+
160+ </section>
161+ <section id="generate">
162+ <h1>Generating your keys</h1>
163+ <p>The defaults for the parameters at the bottom of the window are correct (SSH-2 RSA and 2048 bits). Click generate, and move your mouse back and forth over the window to generate your key.</p>
164+ <p>It is recommended that you specify a passphrase (password) for your key, so that if it is lost, it can't be used without the password. Choose a password you can remember, because it cannot be recovered if forgotten.</p>
165+ </section>
166+ <section id="saving">
167+ <h1>Save your keys</h1>
168+ <p>Click Conversions->Export OpenSSH Key on the main menu. Find the .ssh folder you created earlier and save the key in that folder with the name id_rsa (no extension). This is where Juju and some other programs will look for it by default.<p>
169+
170+ <p>Next, you need to save your public key. To do this, right click in the box under "Public key for pasting into OpenSSH authorized_keys file", and click "Select All". Copy the text using Ctrl-C or right-click Copy.</p>
171+
172+ <p>Open Notepad and paste the contents of the clipboard. Save the file with the name id_rsa.pub in the same directory where you saved the private key (note, the extension should be .pub, not .txt).</p>
173+
174+ <p>That's it! You now have ssh keys that can be used with Juju and other applications that require ssh keys.
175+ </section>
176+ </article>
177+ </div>
178+ </section>
179+ <div class="shadow"></div>
180+ <footer class="global clearfix" role="contentinfo">
181+ <div class="row">
182+ <div class="inner-wrapper">
183+ <nav role="navigation" class="clearfix">
184+ <ul class="footer-a">
185+ <li class="grid-3 first-col">
186+ <h4><a href="/get-started">Get started</a></h4>
187+ <ul>
188+ <li class="page_item page-item-20"><a href="https://juju.ubuntu.com/get-started/local/">Local</a></li>
189+ <li class="page_item page-item-22"><a href="https://juju.ubuntu.com/get-started/amazon/">Amazon Web Services</a></li>
190+ <li class="page_item page-item-18"><a href="https://juju.ubuntu.com/get-started/hp-cloud/">HP Cloud</a></li>
191+ <li class="page_item page-item-16"><a href="https://juju.ubuntu.com/get-started/rackspace/">Rackspace</a></li>
192+ <li class="page_item page-item-3596"><a href="https://juju.ubuntu.com/get-started/openstack/">Openstack</a></li>
193+ <li class="page_item page-item-3600"><a href="https://juju.ubuntu.com/get-started/maas/">MAAS</a></li>
194+ </ul>
195+ </li>
196+ <li class="grid-3">
197+ <h4><a href="/resources">Resources</a></h4>
198+ <ul>
199+ <li><a href="http://juju.ubuntu.com/docs">Documentation</a></li>
200+ <li><a href="/resources/videos/">Videos</a></li>
201+ <li><a href="http://uistage.jujucharms.com:8080/">Juju GUI demo site</a></li>
202+ </ul>
203+ </li>
204+ <li class="grid-3">
205+ <h4><a href="/community">Community</a></h4>
206+ <ul>
207+ <li class="page_item page-item-28"><a href="https://juju.ubuntu.com/community/juju-blog/">Juju Blog</a></li>
208+ <li class="page_item page-item-4262"><a href="https://juju.ubuntu.com/community/weekly-charm-meeting/">Weekly Charm Meeting</a></li>
209+ <li class="page_item page-item-4036"><a href="https://juju.ubuntu.com/community/charmers/">Charmers</a></li>
210+ <li><a href="https://lists.ubuntu.com/mailman/listinfo/juju">Mailing List</a></li>
211+ <li><a href="http://webchat.freenode.net/?channels=juju">Chat</a></li>
212+ <li><a href="http://askubuntu.com/questions/tagged/juju?sort=faq&pagesize=50">FAQ</a></li>
213+ </ul>
214+ </li>
215+ <li class="grid-3 last-col">
216+ <h4><a href="https://launchpad.net/juju">Code</a></h4>
217+ <ul>
218+ <li><a href="https://launchpad.net/juju-core">Juju Core</a></li>
219+ <li><a href="https://launchpad.net/charms">Charms</a></li>
220+ </ul>
221+ </li>
222+ </ul>
223+ </nav>
224+ </div>
225+ </div>
226+ <div class="row no-border">
227+ <div class="legal inner-wrapper">
228+ <p>&copy; 2013 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.</p>
229+ <p><a href="https://bugs.launchpad.net/juju-website/+filebug">Report a bug on this site</a></p>
230+ </div>
231+ </div>
232+</footer>
233+
234+ <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
235+ <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"></script>
236+ <script src="//d38yea5fb4e2oh.cloudfront.net/jquery.stacktack.min.js"></script>
237+ <script type="text/javascript" src="js/main.js"></script>
238+ <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
239+ </body>
240+</html>

Subscribers

People subscribed via source and target branches