How to create an Amazon Machine Image

You can create an Amazon Machine Image or AMI for your existing EC2 instance. The AMI will allow you to launch a fresh EC2 instance using the AMI as a template. You can also share the AMI with other AWS accounts.

Step 1

To get started, it is best practise to stop your instance before you start. So right click your instance and click stop

Step 2

When the instance has stopped, right click it again, click image and then create Image

Step 3

Give your Image a name, a description and then click create Image

Step 4

In the screen that appears click the ami ID.



Step 5

You will now see your image creation as pending.

Step 6

Once the ami is marked as available you can then launch it as an EC2 instance.

A full video tutorial can be found here:

How to set up server 2019 on amazon web services

Amazon Web Services (AWS) have recently released Windows server 2019 on to AWS. This tutorial will show you how to set up windows server 2019 on AWS.

Step 1

First log into you aws account and then click Services and then EC2

Step 2

Next Click Launch Instance.

Ste

Step 3

Search for 2019 and then select the Windows Server 2019 Base.

Step 4

Select an instance size that suits your needs and then click next – Note you will be charged for larger instances.

Step 5

Click Next.

Step 6

Click Next again.

Step 7

Click Add Tag

S

Step 8

For Key type Name (make sure to use the a capital N) and for value enter the name you want for your instance. The Click next

Step 9

The click Review and Launch

Step 10 

Click Launch

Step 11

Choose to: Create a new key pair, give you key pair a name and then download the key pair. Then click Launch instances.

Step 12

Click your instance ID

Step 13

Wait till you see an instance State of running

Step 14

Then Right click you EC2 instance and select Get Windows Password

Step 15

Browse to where you downloaded your key and then click decrypt password.

The Copy your password to the clipboard

Step 16

Note your public IP in our case:

Step 17

Open up RDP and login to your instance using the public IP, the password you copied and the username administrator.

You will now be brought to you server 2019 EC2 instance on AWS.

A full video tutorial can be found here:

Notepad++ Tutorial How to find and replace in files.

When you are searching for a certain string in multiple files the last thing you want to do is to open each file individually and change each string one by one in each file. Notepad++ allows you to search and replace in multiple files are once.

Step 1

First open Notepad++ and press ctrl + F to open the find screen, then click find in files.

Step 2

In the screen that appears enter the string you want to find, the what you want to replace it with. Leave the filters as the default and then in directory enter the path where you want to implement the find and replace. When ready click Replace in files


.

Step 3

Click ok to allow the replace to take place.

You should then see a message that indicates how many occurrences were replaced.

A full video can be seen below:

How to Create a VPC on AWS with public and private subnets

A virtual private cloud (VPC) is an on-demand configurable pool of shared computing resources allocated within a public cloud environment, providing a certain level of isolation between the different organizations (denoted as users hereafter) using the resources. The isolation between one VPC user and all other users of the same cloud (other VPC users as well as other public cloud users) is achieved normally through allocation of a private IP subnet and a virtual communication construct (such as a VLAN or a set of encrypted communication channels) per user

In this tutorial we will show you how to create a VPC in AWS with a public and private subnet.

Step 1

Log into the aws console, click services and then VPC.

Step 2

Next click Elastic Ips on the left hand side


Step 3

Click to allocate new address.

Step 4

Click allocate and then close.

Step 5

Click VPC Dashboad in the upper left to go back to the VPC dashboard.

Step 6

Click launch VPC Wizard

Step 7

Click VPC with Public and Private Subnets and click select.

Step 8

Enter values relevant to you and then click create VPC

After you click create you should see the VPC creating, note, it may take several minutes for the NAT gateway to create.

You should then see a message that states the VPC is created.

A full video tutorial can be seen here:

How to change the hostname on windows server 2016

Windows Server 2016 is a server operating system developed by Microsoft as part of the Windows NT family of operating systems, developed concurrently with Windows 10.

This tutorial will show you how to change the hostname on windows server 2016.

Step One.

Click the start menu and then click Server Manager.

Step Two.

Click local server and then your computer name.

Step Three

Click Change

Step Four

Enter a computer name and then click OK

Step Five

Click OK


Step Six

Restart your computer and when the server restarts you will see that your hostname will be changed.

A full video tutorial can be found here:

Set root password MariaDB

MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation.

After you install MariaDB you log in using the following command:

mysql -u root -p

You may notice that you don’t get prompted for a password. In order to correct this you will need to run the following :

Step 1

SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘yourPassword’);

Step 2

UPDATE mysql.user SET plugin = ‘ ‘ WHERE user = ‘root’ AND host = ‘localhost’

Step 3

FLUSH PRIVILEGES;

Step 4

exit

Step 5

Run mysql -u root -p You will now need your password to log in.

A full video tutorial can be found here:

 

How to check MariaDB version

“MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation”

This short MariaDB tutorial will show you how to check the version of MariaDB you are running. We are running MariaDB on CentOS 7 but the process should be much the same for other operating systems.

Step 1 

Log into your MariaDB instance, in our case we log in using the command:

mysql -u root -p

Step 2

After you log in you can see your version in the welcome text – highlighted in the screen-grab below:

Step 3

If you cannot see your version here you can also run the following command to see it:

SELECT VERSION();

A full video tutorial on the process can be found here:

 

 

How To Create a S3 Bucket

This AWS tutorial will show you how to create a S3 bucket on AWS.

“Amazon S3 or Amazon Simple Storage Service is a “simple storage service” offered by Amazon Web Services (AWS) that provides object storage through a web service interface. Simply, Amazon S3 provides a web interface to easily store and retrieve data safely, in any amount, at any time, from anywhere, at a low cost. Amazon S3 uses the same scalable storage infrastructure that Amazon.com uses to run its global e-commerce network.”

Step 1

Log into you AWS account click services and then s3

Step 2

In the screen that appears click create bucket

Step 3

Give your bucket a unique name (It most be unique across all of AWS) then click Create in the lower left.

Step 4

You should now see your bucket, click it to access it.

Step 5

Click upload, to add a file.

Step 6

Click add file & navigate to a file on your machine to upload.

Step 7

Click upload to upload your file.

You should now see your file in your bucket:

 

A full video tutorial can be found here:

How to enable RDP on Windows server 2016

By default Windows Server 2016 disables Remote Desktop Connections (RDP) to the server. If you wish to RDP to the server you will need to enable it first. This tutorial will show you how to enable RDP on windows server 2016.

Step 1 

Click the start button and then Server Manager.

Step 2

Then click on Local server and where it says Remote Desktop click on the Disabled.

Step 3

Click to Allow remote connections to the computer and then click Apply and OK.

You will now be able to RDP into your server. A full video tutorial can be found here:

How to Setup CentOS 7 on AWS

This tutorial will show you how to create a CentOS 7 instance on AWS. We assume that you already have you AWS account created and that you are logged in already.

Step 1

Click Services and then EC2

Step 2

Click Launch Instance

Step 3

  • Click AWS Marketplace
  • Search for CentOS
  • Select the top result – CentOS7

Step 4

Click Continue

Step 5

Select your machine type and click Next Configure Instance details. In our case we will select the t2.micro instance as it is free tier eligible.

Step 6

Change Auto-assign public IP to Enable and click Next: Add storage.

Step 7

Leave the defaults and click Next:Add Tags

Step 8

Click Next: Configure Security Group

Step 9

Click review and Launch.

Step 10

Review your settings and then click Launch.

Step 11

In the drop down menu select create a new key pair, give the key pair a name and Download the Key Pair, then click launch Instances.

Step 12

Click your instance ID to see the instance.

You should now see your instance.

Step 13

To connect to our instance we will need to convert the key we downloaded, to do so we will use putty and puttygen they can be downloaded form here: https://www.putty.org/

Open puttygen and click Load

Step 14

Navigate to where you downloaded your key, click all files, click on your key and click open.

Step 15

Now click Save Private key, when prompted click yes you want to save without a passphrase.

Step 16

Now open putty and enter your public IP into the host name or IP address field, then expand SSH on the left had side.

Step 17

Click auth and then browse, navigate to where you saved your key and select it.

Step 18

Now click open

Step 19

Click Yes

Step 20

Enter centos as the username and click enter.

You will now be logged in

A full video tutorial can be found here: