Posted in AWS, Linux, Windows

AWS-CLI (AWS-COMMAND LINE INTERFACE)

Accessing AWS through Windows Powershell

https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi // Download the MSI installer for windows (64-bit) and run the downloaded MSI installer by following the onscreen instructions. Open powershell as administrator and execute the following commands. Before continuing with the commands download the Access key ID and The Secret Access Key from the security credentials of the respected aws account as shown

  • aws configure // To get started with the aws -cli
  • Provide the Access key ID and the respective Secret access key to get access to the aws (Respective account).
  • Follow the onscreen commands by typing the default region name and the default output format.
Default region names in aws-cli

Accessing AWS through Linux using AWS-CLI

Open any Ubuntu Linux operated system and follow the same steps, initializing with the configuration of aws using sudo aws configure.

Looking for the basic commands of aws-cli

https://docs.aws.amazon.com/cli/latest/userguide/aws-cli.pdf
Posted in Active Directory, AWS, Windows

CONNECTING TO A WINDOWS SERVER FROM WINDOWS OS REMOTELY

  • An windows 2019 instance was created in aws and held the status to be running.
  • mstsc // Typed in the Run to get access remotely on windows server.

The public IP address of the instance was pasted accordingly as follows.

  • In AWS, get the login credentials by using the Key-pair (.ppm) starting from the Get Windows Password > Choose the Key-pair (.ppm) > Decrypt the password
  • Use the credentials to get access remotely on the virtual instance generated.
  • Enjoy the remotely accessed windows server.

Posted in AWS, LAMP Stack, Linux

MYSQL DATABASE

Database : A database is an organized collection of data.

Installing MySQL-server in Ubuntu

  • sudo apt-get install mysql-server // Installing the mysql
  • sudo mysql_secure_installation // securing the mysql server
A permission followed by the choice of strength of the password, type the password and continue with the default settings.

Creating a database in MySQL

  • sudo mysql -u root -p
  • enter the password // Connecting to MySQL
  • create database Akhil0087 // Creating a database in mysql
  • use Akhil0087 // Entering into the database
  • create table Topics(
  • Topic VARCHAR(255) NOT NULL,
  • created_on DATE,
  • Author VARCHAR(255) NOT NULL
  • ) ENGINE=INNODB; // Creating a table in the database
  • describe Topics; // To get the following output.
  • insert into Topics (Topic, created_on, Author) values ('AWS', '2019-11-21', 'Akhil'); // Providing the values for each described field.

Interested in further more operation related to database

Posted in AWS, Linux

SETTING UP A FIREWALL IN UBUNTU 18.04

For a Firewall with ufw to be settled up in Ubuntu is really an important aspect in the point of security. In spite of the fact that there may be various approaches to do as such, I pursue the accompanying steps.

  • sudo apt-get install ufw // Installing ufw
  • sudo ufw default deny incoming
  • sudo ufw default allow outgoing // Setting up the default policies
  • sudo ufw enable // Enabling the Firewall
  • sudo allow 80
  • sudo allow ssh // Allowing few ports and can also be deleted/ deny the ports.
  • sudo ufw disable
Have you also got in love with setting up firewall in ubuntu, then have a look into this

Posted in AWS, LAMP Stack, Linux

INSTALLING AN APACHE SERVER ON UBUNTU IN AWS

The IP Address (public) of the created instance is used to get access remotely either using putty or windows remote access control. In the following case putty is used to get access on a Ubuntu 18.04 (Created EC2 instance) remotely. The downloaded key-pair has been converted from .ppm to .ppk using puttyGen and loaded as shown in the figure.

  • sudo apt-get install apache2 // Installing Apache2
  • sudo systemctl status apache2 // Checking the status of Apache which display active (running)
  • http://server_IP_address // Testing of Apache server, server IP address should be entered in any browser which should result in the following output.

If someone could not be able to get the output please allude:

https://phoenixnap.com/kb/ubuntu-start-stop-restart-apache

Posted in AWS, Linux

CREATING A VIRTUAL SERVER IN AWS

To begin utilizing Amazon EC2 you will need to dispatch a virtual server, known as an Amazon EC2 Instance.

In the above pictures, an Ubuntu 18.04 instance has been launched with the default settings as shown. A key-pair (Virginia) which has been already created is used in security proposals. [Suggested a new key-pair for every new instance created.]

Posted in AWS

CREATING AWS ACCOUNT

The era of cloud technology is steeping up day by day with a great pace. Instating with an AWS account (free) is one of the beginning strides in the realm of cloud innovation. The following are the means to be trailed by a person to make a free AWS account.

Select the option of create an account and fill in with complete your details along with the payment details. Choose an AWS support plan and sit tight for the record check which may nearly take a standard time of 24 hrs. On a note of reference in comparison of the plans accessible in the AWS https://aws.amazon.com/premiumsupport/plans