0% found this document useful (0 votes)
5 views

Linux-VM-Setup in Linux

Uploaded by

crazykamlesh107
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Linux-VM-Setup in Linux

Uploaded by

crazykamlesh107
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Mr.

Ashok

What IS EC2
 EC2 stands for Amazon Elastic Compute Cloud
 Amazon EC2 is most well-known services, offers businesses the ability to run applications on
the public cloud
 EC2 provides resizable computing capacity in the cloud so developers can enjoy great
scalability for building applications
 Instead of purchasing your own hardware and connecting it to a network, Amazon gives you
nearly unlimited virtual machines to run your applications while they take care of the
hardware.
 AWS supports multiple operating systems from Windows to many flavors of Linux etc. As a
customer, you are also able to bring your own custom OS and run it on their platform.
IN OTHER WORDS, A custom rubber band that can stretch for building applications.

What is Linux?
 Linux is an open-source operating system like other operating systems such as Microsoft
Windows, Apple Mac OS, iOS, Google android, etc.
 An operating system is a software that enables the communication between computer
hardware and software.
 It conveys input to get processed by the processor and brings output to the hardware to
display it. This is the basic function of an operating system.
 Linux is around us since the mid-90s. It can be used from wristwatches to supercomputers. It
is everywhere in our phones, laptops, PCs, cars and even in refrigerators. It is very much
famous among developers and normal computer users.

Evolution of Linux OS
 The Linux OS was developed by Linus Torvalds in 1991, which sprouted as an idea to improve
the UNIX OS. He suggested improvements but was rejected by UNIX designers. Therefore, he
thought of launching an OS, designed in a way that could be modified by its users.

Linux Architecture

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

Launching LINUX VM Using AWS EC2 Service

1) Create Account in AWS ( URL: https://portal.aws.amazon.com/billing/signup#/start )

2) Login into AWS Account using your credentials

3) Choose region which is near to you ( For Me Asia Pacific - Mumbai)

4) Go to services and Select EC2 and Click on Launch Instance

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

5) Click on Launch Instance

6) Choose an Amazon Machine Image (AMI) (Note: select free tier eligible)
Ex: Select Ubuntu Server

7) Select Instance Type (t2.micro and click on Next)

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

8) Configure Instance Details and Click on Next (Default value 1 instance)

9) Add Storage and click on Next (Default 8)

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

10) Add Tag and click on Next

11) Configure Security Group and Click on 'Review and Launch'

(For Linux We are opening SSH port)

12) Review Instance Launch and click on Launch

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

13) Select New Key Pair --> Choose Name --> Download Key Pair

(Store that key-pair file because we need that file to connect to VM)

14) Once Instance launched you can see below message

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

15) Go to EC2 Dashboard and see Instance Status -> Select Instance Name and Click on ‘Connect’

16) Connect to EC2 instance by clicking on Connect button displaying in below window

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

17) Once you connected to VM, you can see below terminal

18) You can execute below linux commands in terminal

 whoami
 pwd
 ls

Congratulations, you launched Linux VM using AWS – EC2

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

Connecting to Linux VM using Putty

1) Download Putty software (https://www.putty.org/) & install it

2) Open the folder that PuTTY was installed to (default path is C: > Program Files > PuTTY)
and double click on “puttygen.exe”

3) Click on Load button and select .pem file which we have downloaded from EC2

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

Once PEM file loaded, click on ‘Save private key’ button (it will give ppk file)

4) Go to putty installed folder and double click on putty.exe file

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

5) In Putty window, Go to SSH -> Auth -> Click Browse -> Select PPK file which we have saved

6) Enter EC2 Linux VM Public IP in below window and click on Open

Click on ‘Accept’ in below window

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677


Mr. Ashok

7) It will ask login as, Enter VM Username (you can find username in EC2 Instance
(My VM Username is ubuntu)

Once login successful you can see below terminal

8) Execute below commands in terminal

9) Congratulations, you are able to connect to Linux VM using Putty

==== Learn Here.. Lead Anywhere..!! ====

🌐 https://www.ashokitech.com email: [email protected] WhatsApp: +91 9985396677

You might also like