Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*.egg
*.egg-info
dist
build
eggs
parts
bin
Expand Down
125 changes: 0 additions & 125 deletions amazon/custom-ami.txt

This file was deleted.

Binary file added amazon/images/amazon-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/amazon-diff-ami.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed amazon/images/ec2-1.png
Binary file not shown.
Binary file removed amazon/images/ec2-2.png
Binary file not shown.
Binary file removed amazon/images/ec2-3.png
Binary file not shown.
Binary file removed amazon/images/ec2-4.png
Binary file not shown.
Binary file removed amazon/images/ec2-5.png
Binary file not shown.
Binary file removed amazon/images/ec2-6.png
Binary file not shown.
Binary file removed amazon/images/ec2-7.png
Binary file not shown.
Binary file removed amazon/images/ec2-8.png
Binary file not shown.
Binary file removed amazon/images/ec2-9.png
Binary file not shown.
Binary file removed amazon/images/ec2-create-img1.png
Binary file not shown.
Binary file removed amazon/images/ec2-create-img2.png
Binary file not shown.
Binary file removed amazon/images/ec2-dashboard-instance-name.png
Binary file not shown.
Binary file removed amazon/images/ec2-security.png
Binary file not shown.
Binary file added amazon/images/terminate-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amazon/images/terminate-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified amazon/images/win-putty-2.png
Binary file modified amazon/images/win-putty-3.png
Binary file modified amazon/images/win-putty-4.png
Binary file modified amazon/images/win-puttygen-2.png
27 changes: 8 additions & 19 deletions amazon/index.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
===============================
Getting started with Amazon EC2
===============================
Amazon Web Services instructions
================================

.. toctree::
:maxdepth: 2
:maxdepth: 5

start-up-an-ec2-instance
log-in-with-ssh-win
log-in-with-ssh-mac

log-in-with-ssh-win
installing-dropbox
terminating-your-instance.txt

A final checklist:

- EC2 instance is running;
- used AMI ami-7f340c16;
- NOT micro instance (m1.large, or bigger);
- SSH, HTTP, HTTPS are enabled on the security group;

Amazon Web Services reference material
--------------------------------------

`Instance types <http://aws.amazon.com/ec2/instance-types/>`__

`Instance costs <http://aws.amazon.com/ec2/pricing/>`__
starting-up-a-custom-ami
technical-guide
using-screen
8 changes: 5 additions & 3 deletions amazon/installing-dropbox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ Make the Dropbox directory on /mnt and link it in::

mkdir /mnt/Dropbox
ln -fs /mnt/Dropbox /root
ln -fs /mnt/Dropbox /home/ubuntu

and then run it::
and then run it, configuring it to put stuff in /mnt::

/root/.dropbox-dist/dropboxd &
HOME=/mnt /root/.dropbox-dist/dropboxd &

When you get a message saying "this client is not linked to any account",
copy/paste the URL into browser and go log in. Voila!

Your directory '/root/Dropbox', or, equivalently, '/mnt/Dropbox', is now
linked to your Dropbox account!
28 changes: 18 additions & 10 deletions amazon/log-in-with-ssh-mac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,32 @@ to set the permissions on the private key file to "closed to all evildoers".

Then type::

ssh -i ~/Desktop/amazon.pem root@ec2-???-???-???-???.compute-1.amazonaws.com
ssh -i ~/Desktop/amazon.pem ubuntu@ec2-???-???-???-???.compute-1.amazonaws.com

(but you have to replace the stuff after the '@' sign with the name of the host).

Here, you're logging in as user 'root' to the machine
Here, you're logging in as user 'ubuntu' to the machine
'ec2-174-129-122-189.compute-1.amazonaws.com' using the authentication
key located in 'amazon.pem' on your Desktop.

You should now see a text line that starts with something like
``ubuntu@ip-10-235-34-223:~$``. You're in! Now type::

Note, you have to replace the stuff after the '@' sign with the name
of the host; see the red circle in:
sudo bash
cd /root

.. image:: images/ec2-dashboard-instance-name.png
:width: 50%
to switch into superuser mode (see: http://xkcd.com/149/) and go to your
home directory.

----
This is where the rest of the tutorials will start!

At the end you should see text and a prompt that look like this:
If you have Dropbox, you should now visit :doc:`installing-dropbox`.

You might also want to read about :doc:`terminating-your-instance`.

.. image:: images/win-putty-4.png
:width: 50%
To log out, type::

exit
logout

or just close the window.
32 changes: 27 additions & 5 deletions amazon/log-in-with-ssh-win.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Download Putty and Puttygen from here: http://www.chiark.greenend.org.uk/~sgtath
Generate a ppk file from your pem file
======================================

(You only need to do this once for each key!)
(You only need to do this once!)

Open puttygen; select "Load".

Expand All @@ -30,9 +30,6 @@ Now, "save private key". Put it somewhere easy to find.
.. image:: images/win-puttygen-4.png
:width: 50%

Now that you've generated your PPK file from your PEM file, you can log
in. To do that...

Logging into your EC2 instance with Putty
=========================================

Expand All @@ -47,7 +44,7 @@ by puttygen). Then select 'Open'.
.. image:: images/win-putty-2.png
:width: 50%

Log in as "root".
Log in as "ubuntu".

.. image:: images/win-putty-3.png
:width: 50%
Expand All @@ -57,3 +54,28 @@ Declare victory!
.. image:: images/win-putty-4.png
:width: 50%

Here, you're logging in as user 'ubuntu' to the machine
'ec2-174-129-122-189.compute-1.amazonaws.com' using the authentication
key located in 'amazon.pem' on your Desktop.

You should now see a text line that starts with something like
``ubuntu@ip-10-235-34-223:~$``. You're in! Now type::

sudo bash
cd /root

to switch into superuser mode (see: http://xkcd.com/149/) and go to your
home directory.

This is where the rest of the tutorials will start!

If you have Dropbox, you should now visit :doc:`installing-dropbox`.

You might also want to read about :doc:`terminating-your-instance`.

To log out, type::

exit
logout

or just close the window.
15 changes: 0 additions & 15 deletions amazon/security-rules.txt

This file was deleted.

Loading