Tip:
Highlight text to annotate it
X
so we have now connect via either windows or mac to our ec2 instance that
we've dialed in the cloud i'm going to talk about our standard operating
procedure or what i would call our standard operating system ubuntu 12.04.2
LTS in a t1 micro instance
from this point forth for the duration of the class
unless otherwise specified we're going to assume that all those commands
are executed on your remote aws instance so if i say ls or cd or
execute command dash command the implication is that it will execute on
your aws instance and not your local machine
if you are a sophisticated computer user you know unix cold
then you can run it on your local machine but we won't support that mode of operation
mainly because local machines have all kinds of configuration issues and
this gets us a homogeneous environment so everyone can be on the same
playing field and to get some sense of that, just take a
look at this figure so you can imagine many different students
some of them running os x and some running windows and some
running chromebook or something more exotic and all of them can connect via ssh to their
own micro instances which is a slice of a much larger computer
and all assignments from this point forth are assumed to be executed on an aws
instance unless explicity stated otherwise so this smooths out os and configuration inhomogeneity
and we can assume that it's run on a t1 micro instance with ubuntu 120.04.2 lts
unless otherwise specified. so that's really where all the assignments
in the class will be relative to.
and one of the awesome things about aws is the reason why this is so useful is
you can clone the environment here into another machine
and you can give access to that to your friend who can then collaborate with you
whereas cloning all the material on your local laptop
and all its dependencies is much less trivial so when you actually connect
one thing that's useful to keep in mind is that
when you're running commands on your local machine
versus when you're running commands on your remote machine
for example, these commands are running on your local machine
after you hit ssh now you can type in hostname and echo and
so on and these are being executed remotely in this case in a
data center in Virginia and when you type exit
you're out and in this case you're back to your local machine
so remember the distinction between remote and local execution
and in this case remote execution is in the cloud
you have now executed your first commands in a cloud computer