Along with all the other flavours of Linux , Ubuntu AMI is also available on AWS for installation. This post will describe how to install Ubuntu in AWS.
Install Ubuntu in AWS
First of all you need to login to AWS console and click on “Launch instance” button on the console to start installation process for Ubuntu. Once you clicked Launch instance button system will ask you below options , Please choose following options during the process.
- Choose an AMI in the classic instance wizard: Please select Ubuntu Server 16.04 LTS (HVM), SSD Volume Type . (Make sure you select Free Tier only check box in the left pane, just to make sure that you are using free services offered by AWS.). Click Next.
- Instance details: t2.micro,Click Next.
- Configure Instance Details: Do not change anything,Click Next.
- Add Storage: Keep it default i.e. 8 GB General purpose SSD,Click Next.
- Add Tags: Do not change anything,Click Next.
- Configure Security Group: Make sure port 22 is open from any so that you can access the server from anywhere and also make sure you need to open custom TCP port number 5901 in case you want access Ubuntu desktop remotely using VNC application or software.
- Click Review and launch.
- Create new key pair:Please do not forget to Create a new key pair. Give name for your key and download it on your computer with .pem extension.
- Now Launch your instance.
Once the instance is launched you can able to see the same under EC2 dashboard as below:
Now to login to this Ubuntu instance you will have to use default initial user name as “ubuntu”. In case you don’t know how to login to AWS EC2 instance Please follow these instructions.
This how your Putty terminal looks after login.
login as: ubuntu Authenticating with public key "imported-openssh-key" Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1013-aws x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 40 packages can be updated. 23 updates are security updates. Last login: Wed May 10 05:39:14 2017 from 103.211.42.59 ubuntu@ip-172-31-14-116:~$ sudo su - root@ip-172-31-14-116:~# uname -a Linux ip-172-31-14-116 4.4.0-1013-aws #22-Ubuntu SMP Fri Mar 31 15:41:31 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux root@ip-172-31-14-116:~#