jusupov.com

Computer Technology Blog

Amazon EC2, Cloud Computing Getting Started

without comments

Amazon has this services where you can use virtual servers, either your custom or prebuilt publicly shared server images. The key point here is that Amazon has a lot of servers that can be used at any time.

So let’s get started. The first thing to do is sign up at Amazon EC2. I’ll be using Ubuntu on this.

You need Java JRE, do:

apt-get install sun-java5-jre

vim .bashrc

# Amazon Ec2
export EC2_HOME=~/.ec2
export PATH=$PATH:$EC2_HOME/bin
export EC2_PRIVATE_KEY=~/.ec2/pk-VGKIRWAKVSIEXEPVFQ2NSVQ4APUMYAC3.pem
export EC2_CERT=~/.ec2/cert-VGKIRWAKVSIEXEPVFQ2NSVQ4APUMYAC3.pem
export JAVA_HOME=/usr
type bash to reload your bash_rc

cd ~/.ec2

Amazon has this services where you can use virtual servers, either your custom or prebuilt publicly shared server images. The key point here is that Amazon has a lot of servers that can be used at any time.

So let’s get started. The first thing to do is sign up at Amazon EC2. I’ll be using Ubuntu on this.

You need Java JRE, do:

apt-get install sun-java5-jre

vim .bashrc

# Amazon Ec2
export EC2_HOME=~/.ec2
export PATH=$PATH:$EC2_HOME/bin
export EC2_PRIVATE_KEY=~/.ec2/pk-VGKIRWAKVSIEXEPVFQ2NSVQ4APUMYAC3.pem
export EC2_CERT=~/.ec2/cert-VGKIRWAKVSIEXEPVFQ2NSVQ4APUMYAC3.pem
export JAVA_HOME=/usr
type bash to reload your bash_rc

cd ~/.ec2

Amazon has this services where you can use virtual servers, either your custom or prebuilt publicly shared server images. The key point here is that Amazon has a lot of servers that can be used at any time.

So let’s get started. The first thing to do is sign up at Amazon EC2. I’ll be using Ubuntu on this.

You need Java JRE, do:

apt-get install sun-java5-jre

vim .bashrc

# Amazon Ec2
export EC2_HOME=~/.ec2
export PATH=$PATH:$EC2_HOME/bin
export EC2_PRIVATE_KEY=~/.ec2/pk-VGKIRWAKVSIEXEPVFQ2NSVQ4APUMYAC3.pem
export EC2_CERT=~/.ec2/cert-VGKIRWAKVSIEXEPVFQ2NSVQ4APUMYAC3.pem
export JAVA_HOME=/usr
type bash to reload your bash_rc

cd ~/.ec2

ec2-add-keypair arstan-keypair

Save those lines including  —–BEGIN RSA PRIVATE KEY—– and also  —–END RSA PRIVATE KEY—– lines.

sudo chmod 600 id_rsa-arstan-keypair

ec2-describe-images -o amazon This will show the server images that Amazon has for you. You can see ec2-describe-images -a to see all the server images you have access to.

ec2-run-instances ami-0459bc6d -k arstan-keypair

ec2-describe-instances will show you instances you are running.

Written by Arstan

September 24th, 2008 at 8:44 am

Leave a Reply

You must be logged in to post a comment.