在AWS Free Tier上安装Ubuntu 10.04(Ubuntu 10.04 & Amazon AWS Free Tier) 转自:http://guru.gg/aether/ubuntu-10-4-amazon-aws-free-tier

 

说白了,就是提供了一个修改过的AMI,将官方的15G EBS改为10G EBS。不过这个AMI有个问题,就是使用这个AMI的t1.micro类型的instance在安装jdk时会出问题。实际上,这是个ubuntu的bug,32位在t1.micro下会有问题,改用64位的问题就可以解决了,可以参考我的另一篇文章在AWS的ubuntu中安装jdk程序停滞。

Ubuntu 10.04 & Amazon AWS Free Tier

This guide will give you an idea of setting up a fairly basic Ubuntu server using Amazon Web Services free tier. It assumes you know a thing or two and have already signed up for an account with AWS.

Normally Alestic has links to latest and greatest images for Ubuntu from Canonical (AMI is Amazon’s internal format for disk images.)

In this example we’re using Ubuntu 10.04 Lucid running from EBS which is Amazon’s Elastic Block Storage. We get 10GB free per month from Amazon until Nov 2011.

This also gives us our first problem:

The image is 15GB in size which will cost us fiddy cents a month in EBS ($0.10/month/GB).

Sod that

 

For now, if you’re using the servers in us-east-1 then you should have access to ami-c2a255ab which is a 10GB EBS version of Alestic’s Ubuntu 10.04 LTS Lucid instance-store I made using some helpful instructions.

Warning: As with any software, be careful which AMIs you trust. Using the instructions above you can relatively easily make your own AMI from the Canonical ones, or just swallow the $0.50 every month to use them directly.

Copy the AMI name (ami-c2a255ab).

Now from the EC2 console select Instances > Launch Instance > Community AMIs and wait for the list to load (it’s long.)

When it’s loaded, paste in ‘ami-c2a255ab‘ and the 10.04 image will now be the only one left. Select it.

On the next page change the Instance Type to Micro (t1.micro, 613 MB).

Create a key-pair and save that file somewhere safe as it’s what you’ll be using instead of a password to SSH.

On the Configure Firewall page, create a new policy that allows SSH on port 22.

Now you’re ready to launch a new instance.

Launch

Once the instance has launched you’ll see the instance and a new 10GB EBS listed in the AWS Console. You’re ready to rock!

To start tinkering, click on the instance in the AWS management console and look for Public DNS: ec2-xx-xx-xx-xxx.compute-1.amazonaws.com. This will be personal to your server and the address you use to SSH in.

If you’re using PuTTY under Windows, check this page for setup info.

Your login will be Ubuntu, and using the key means we have no password.

You’ll find out you can sudo, but not su. If you need to su urgently then ‘sudo su’ will work for now.

But why not go on and read one of the many guides on setting up your brand new instance?

Comment below if you’ve got any debugging instructions, useful AMIs to add or useful links for further steps.

 

你可能感兴趣的:(jdk,image,server,ubuntu,basic,debugging)