Linux-VM-Setup in Linux
Linux-VM-Setup in Linux
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
6) Choose an Amazon Machine Image (AMI) (Note: select free tier eligible)
Ex: Select Ubuntu Server
13) Select New Key Pair --> Choose Name --> Download Key Pair
(Store that key-pair file because we need that file to connect to VM)
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
17) Once you connected to VM, you can see below terminal
whoami
pwd
ls
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
Once PEM file loaded, click on ‘Save private key’ button (it will give ppk file)
5) In Putty window, Go to SSH -> Auth -> Click Browse -> Select PPK file which we have saved
7) It will ask login as, Enter VM Username (you can find username in EC2 Instance
(My VM Username is ubuntu)