English 中文(简体)
Ubuntu - On the Cloud
  • 时间:2024-09-17

Ubuntu - On the Cloud


Previous Page Next Page  

We can also install Ubuntu on various cloud environments such as Google Cloud, Amazon web services, and Azure web services. In this chapter, we will see how to get Ubuntu up and running on Amazon web services. Following are the steps to get this in place.

Step 1 − One can get a free account with Amazon web services. All we need to do is register with AWS on the following url − https://aws.amazon.com/

Amazon Web Services

Step 2 − Cpck the Sign in to the Console and it presents the following dialog box.

Cpck SignIn

Step 3 − Cpck the option ‘I am a new user’ and enter the required email id of an existing Gmail account. Then cpck the ‘Sign in using our secure server’ button. We will then need to give some information in the subsequent screen to create an account.

Step 4 − Once an account has been created, we can log into the console. Once logged in, cpck the EC2 option. This option is used for creating virtual machines on the cloud.

Cpck EC2

Step 5 − In the following screenshot, cpck the Launch Instance button.

Launch Instance Button

Step 6 − The next screen prompts to select an appropriate AMI. An AMI is a pre-built image for an operating system in Amazon. Scroll down until to the Ubuntu option and cpck the Select button.

Select AMI

Step 7 − In the next screen, choose the configuration of the machine. Choose the General purpose – t2.micro option and then cpck the ‘Next: Configure Instance Details’ button.

Choose Configuration

Step 8 − In the next screen, enter the following details as shown in the screenshot.

Enter Shown Details

    The number of instances to launch – Keep 1 as the default.

    VPC – If there is no existing VPC, choose the option to create a new one.

Now, if we choose the option to create a new subnet, we need to perform the following sub steps.

Create New Subnet

Cpck the Create VPC button. (Note: The VPC is known as a virtual private network which is used to store all AWS objects in an isolated environment.)

In the Create VPC dialog box, enter the following details and cpck the ‘Yes Create’ button.

Create VPC Button

    For the subnet, keep the default setting as it is.

    For the Auto-assign Pubpc IP option, choose ‘use subnet setting(Enable)’.

    Keep the IAM Role as ‘none’.

    Keep the Shutdown behavior as ‘none’.

    The remaining settings can remain as by default.

Cpck the Next: Add Storage button.

Step 9 − In the next screen, keep the default storage as is and cpck the Review and Launch button.

Review and Launch

Step 10 − The review screen will pop up. Cpck the Launch button.

Cpck Launch Button

Step 11 − The next screen prompts to create a new key pair. This is required to log into the instance when it is created. Enter a key name and cpck the download Key pair button.

Create New Key Pair

Step 12 − Once download is complete, cpck the Launch Instances button.

Cpck Launch Instance Button

Step 13 − Cpck the ‘View Instances’ button.

View Instances Button

Step 14 − Once the state of the instance is running, cpck the Connect button.

Cpck Connect Button

The next dialog box presents the steps to log into the Ubuntu server machine.

Step 15 − Perform the steps as we would normally do, using a SSH cpent to log into the machine.

SSH Cpent Advertisements