IT in Education

Ubuntu LTS with Amazon Elastic Compute Cloud (EC2)

awsAmazon EC2  allows you to run instances of Ubuntu LTS (Long Term Support).  This article describes how to get started with an Ubuntu Server, using a Micro instance (lowest cost, approx 2p per hour when I wrote this article).

Be warned that once you start a server up, you will start to be charged in accordance with Amazon's pricing structure.  Once you've finished with a server instance make sure you terminate the instance to stop being charged.

  1. Start by logging on to AWS and assume an admin role.
  2. Go to Services > EC2.
  3. Click the Launch instance button.
  4. In the Choose an Amazon Machine Image (AMI) section, search for Ubuntu.
    1. Select the AWS Marketplace tab (left pane).
    2. Select an entry from Canonical (e.g. Ubuntu 20.04 LTS).
  5. Choose your Instance type (e.g. t2.micro)
  6. Click Next: Configure instance details.
  7. Click Next: Add storage.
    1. Configure your storage needs.
  8. Click Next: Add tags.
  9. Click Next: Configure Security Group.
    1. Create a new security group.
    2. Security group name: ubuntu-security
    3. Description: ubuntu with SSH, http and https access.
    4. Add any Rules required: (e.g. SSH, HTTP and HTTPS)
  10. Click Review and Launch.
  11. Select your existing Key pair: (e.g. admin).
  12. Check the acknowledgement and click the Launch Instances button.

Click View instances to see your instance launching.

Configuration options

Here are the next steps towards accessing your newly created instance.

Update ubuntu

Once you've gained remote access to your server, it's important to make sure that your installation of ubuntu is upto date.

$ sudo apt-get update
$ sudo apt-get dist-upgrade

Note that depending on which version of Ubuntu you are installing, you might get the following screens:

  1. Configuring grub-pc: Click Ok.
  2. Grub install devices: Select both.
  3. Keep the default setting of Keep the local version currently installed.

Thanks for visiting,