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).
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.
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.