<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tremaine Little on Medium]]></title>
        <description><![CDATA[Stories by Tremaine Little on Medium]]></description>
        <link>https://medium.com/@tremainemlittle?source=rss-8d4fc489497a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I7L67ElrI4vUezLyJJLMaw@2x.jpeg</url>
            <title>Stories by Tremaine Little on Medium</title>
            <link>https://medium.com/@tremainemlittle?source=rss-8d4fc489497a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:51:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tremainemlittle/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Jenkins and Docker]]></title>
            <link>https://medium.com/@tremainemlittle/jenkins-and-docker-bd107190532a?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd107190532a</guid>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 09:40:40 GMT</pubDate>
            <atom:updated>2024-01-22T09:40:40.857Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QN-vyEd5W68dMSrHBdxbA.png" /></figure><h4>What is Jenkins ?</h4><p>Jenkins is an open source automation server that enables tasks like testing, building, deploying software, supporting continuous delivery and integration in software development.</p><h4>What is a Docker Volume ?</h4><p>In Docker, a volume is a storage solution that allows you to store and share data independently of the container. This ensures data persistence even the container is updated or deleted.</p><p>The following steps will walk you through how to…</p><ol><li>Pull the Jenkins LTS image from Docker Hub</li><li>Create a Docker volume for Jenkins to persist its data.</li><li>Run the container with the volume and correct port mapped to the container.</li><li>Retreive the Admin password.</li><li>Login and create a new user.</li><li>Launch a new Jenkins container using the same volume and verify that the data has persisted by loggin in as the newly created user.</li></ol><p><em>Launch an EC2 instance from AWS create or use an existing key pair and security group.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mOKOrPAK51047j6Y42PFQ.png" /></figure><p><em>Connect to your instance</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q1Iau71lPPqKWKkiYLriw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3zO_0NUXirqEXaZo5AgPw.png" /></figure><p><em>Using Docker Hub grab the Jenkins image from Docker Hub</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wiirs3WU4kI2iPOzt6Ql6g.png" /></figure><p><em>Take the pull command from docker hub and then enter or copy and paste to the ubuntu terminal.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3cv0ZT9vKG-Y5hNGtqq1hw.png" /></figure><p><em>Create Docker Volume</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7beVwScvhF9vU4uugfeZA.png" /></figure><p><em>Locate your volume with the list command</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zZ7prme3r75kqhCz4PcVw.png" /></figure><p><em>Run your container</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VhdmNu1dsPMOdLmSZI-zIA.png" /></figure><p><em>List Container</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YpTjcI0xC5PUnnH7X2_Bqw.png" /></figure><p><strong>Retrieving the Admin Password</strong></p><p><em>Access Bash Shell</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*OSz-YDUaDOpWikybe46qqQ.png" /></figure><p><em>Locate the admin password by going through each directory</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5c-I0BKYeYnICCyAo09ECg.png" /></figure><p><strong>Unlock Jenkins</strong></p><p><em>In AWS copy your EC2 instance public IP address and add “:8080” to it in your internet browser. Copy and paste the password that we located earlier while cycling though directories.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBQNpUbgnLxsm9v2KcT_NA.png" /></figure><p><em>Click continue install suggested plug ins.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cz-F-3J0xUos4I_G_LPO_g.png" /></figure><p><em>Input the required information on the following screen and continue. (make note of username and password as you will need this information.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jafm_6mWEBbV2rsr4RluAw.png" /></figure><p><em>The following screen will display your instance configuration. Copy the URL and save it for use later.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSf2tEc1LSqS1tMTE-vpLw.png" /></figure><p><em>Save and finish. Follow any prompts.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TrSo1wjxoArYyHy1R6m-Ag.png" /></figure><p><strong>Test your set up</strong></p><p><em>Run the container</em><br>- sudo docker run -d -p 8080:8080 -p 50000:50000 -v jenkins_data:/var/jenkins_home — name jenkins_data2 jenkins/jenkins:lts</p><p><em>Stop container</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UluAYeglVZ3aYiZU141sfQ.png" /></figure><p><em>List containers</em><br>sudo docker logs jenkins_data2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-KTBC6HzYahOXopJWlP97A.png" /></figure><p><em>Navigate to the login page for Jenkins by copying the EC2 instance’s public IP address from AWS and add “:8080” into the internet browser. Input the admin login info you created moments ago. If everything is successful you shouldn’t run into any issues and once logged in you should see the following screen.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*NAQnK5NsLg6yBdnV2hHL2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*wFLeZ5-_DQkj3-CrY0wZ_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x35qqYIRFlQOC2Ll6rHudw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd107190532a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Deploying an Ubuntu Docker Container with Apache2 to display a Custom Webpage”]]></title>
            <link>https://medium.com/@tremainemlittle/deploying-an-ubuntu-docker-container-with-apache2-to-display-a-custom-webpage-2fdd6cf76c3b?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fdd6cf76c3b</guid>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 15:53:10 GMT</pubDate>
            <atom:updated>2024-01-15T15:53:10.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*sNmvPtgGBTDvdDWh_PIcLQ.png" /></figure><p>Docker provides a strong platform for containerization which enables developers to package applications and dependencies into isolated units. In this guide, I will walk you through running a Docker container based on Ubuntu, updating packages, installing Apache2, and adding a custom webpage displaying the message “Leveled Up.”</p><p>Launch an EC2 instance using Ubuntu AMI, t2.Micro free tier, key pair (new or existing), and a security group (new or existing) allowing ssh access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GAu3xnaEgybS1JUHNv-7g.png" /></figure><p>Download Visual Studio Code open the application and select “Connect to” “Connect to host” and “Configure SSH hosts”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSK_hc-tWBMxFkKN9ulbNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVklOhWOCF925oc0boE41Q.png" /></figure><p>Select your File Path</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5CM90I1h4_C2DolhrYZsA.png" /></figure><p>Enter information needed to connect to the EC2 instance. The host will be named “Docker” , your hostname will be the public IP address of the EC2 instance created in AWS (Simply copy and paste), the user will be “ubuntu”, and the identity file will be where your keypair is stored on your device. When finished, the final product will look similar to the example below, save the config by using “command + s”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNDugK77xkwgosdU2jRF8Q.png" /></figure><p>Now close out of the config then go back to “Connect to”, this time click on “Docker” and accept the prompts that pop up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mIadWmqIdHlRaofPgCNlYw.png" /></figure><p>Once the SSH is connected open a new terminal and install docker using the command below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*GstuaT-9tqPpbYyzrKihNw.png" /></figure><p>Once Docker is installed on your ubuntu terminal run the following command to check the version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*eN8atwbt4HGeiCJG1Nv48g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FnDac1iwvhY6PqEX2jSZyw.png" /></figure><p>Head over to Docker Hub in your browser and grab a verified ubuntu image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLCN3krz4WsMs5dOyQTBJQ.png" /></figure><p>Basically now what you want to do is create the container to run once its connected to the terminal. After that verify it with the “ls” command to make sure its running in the background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CW95QFdUIq2zl5d_-pSRjw.png" /></figure><p>Copy the “container ID” you will need it for the next command you run in order to connect the container through the terminal from the root and install the apache2 web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rLSKlUXKGjT1NbBpbCCSkQ.png" /></figure><p>Install Updates</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MmhesFiKdK-DEBhETEby6g.png" /></figure><p>Install the Apache web server follow the prompts and enter the information based upon your time zone/geographic location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-NE_JsomlWF819IW8GUdw.png" /></figure><p>Start the Apache2 server with the following command to begin creating the custom web page. Check the status to make sure it is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HutRFi148_LSeuNNNPR8hQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1GfHDe73lt0Hf86OwyQiw.png" /></figure><p>Create your custom web page and message with the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4mJI6t2BH1tB-DLNbDPWag.png" /></figure><p>From EC2 instance created in AWS take the public IP address and place it in your browser to verify that the web page is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLOjooV8mQUMiwW-02XfZw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fdd6cf76c3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing User-Data with EC2 Instances]]></title>
            <link>https://medium.com/@tremainemlittle/implementing-user-data-in-ec2-instances-09b3c1fb4325?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/09b3c1fb4325</guid>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 14:27:13 GMT</pubDate>
            <atom:updated>2023-11-14T00:24:33.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*b77avnYq3VEZx06y7ywVVQ.png" /></figure><h4><strong>What is Command Line Interface ?</strong></h4><p>CLI is a text-based way of interacting with software or computer by entering commands in a command prompt or terminal. Unlike Graphical User Interface (GUI) which uses elements like icons or windows, users communicate with the system by typing text commands.</p><h4><strong>What is User-Data ?</strong></h4><p>User data is used to perform tasks like configuring applications, installing software, or customizing an instance to meet your requirement. User Data can be provided in the form of a script or a cloud-init compatible configuration when launching an EC2 instance. Whichever operating system used in the instance will execute this data during the initial boot process. User-Data is a powerful feature that allows you to automate tasks, instance setup, and configuration, making it easier to deploy and manage instances.</p><p><strong>Objective</strong><em>:</em> The Level-Up Bank wants to move its website and online banking platform to the cloud to improve scalability, reliability, and security. The bank uses AWS for its cloud services and starts by creating a t2.micro EC2 instance with Apache webserver. The banking industry is constantly evolving, and banks need to be able to adapt quickly to changing market conditions and customer needs. Moving its app to AWS gives the<br>bank the flexibility to quickly spin up new instances, test new features, and experiment with different configurations. This can help the bank innovate and respond more quickly to changing market conditions, giving it a competitive advantage.</p><p><strong>Step by Step Guide</strong></p><ol><li>Log into the AWS console and click on “EC2.” Next, you will select “Launch Instance.”</li><li>Create a t2.micro EC2 instance with the OS of your choice. I chose Centos (free tier).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exiME-fmAFZI8Ts4WLXk5g.png" /></figure><p>3. Create your security group. You will need to create a keypair if you want to SSH into your instance and only “allow SSH from” your IP address (My IP). In order to verify that the user data works, you will need to “allow HTTP traffic from the internet” to view your updated OS. Click “Launch instance.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvaQFD6jx4kfPvtZ3vKWqA.png" /></figure><p>4. Expand the “advance details” tab then scroll down to “User data.” In the user-data field, use a bash script that updates all packages, installs Apache, and starts the Apache service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lnHc-2Q6SIQZJaCinT2NQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjjwK86FwjC5sgyFhWBuwg.png" /></figure><p>5. Connect to your instance via SSH. I used “terminal.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJVokhI6iP3bzg9m9I6UMg.png" /></figure><p>Always remember to “cd” into the folder that contains your keypair. Mine go to my “downloads” folder. Run the “chmod” command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwBW7hbsa8GUhPVy6xbDVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4X4rt42tNk2Q3klnBX8MA.png" /><figcaption>Don’t forget to substitute “Centos” into the command !</figcaption></figure><p>6. Click on your instance for details to find the IPv4 address that you can copy and paste into your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1fQUA0X8HI41wheWj5U9A.png" /></figure><p>7. Verify that the instance has the apache webserver downloaded and installed through the public IP. Copy the address and paste it into your browser. This is what you should see !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJtCOmV60W1hXELZWuMbyw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09b3c1fb4325" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating/Adding Users and Groups with permissions using Linux]]></title>
            <link>https://medium.com/@tremainemlittle/creating-and-adding-users-and-groups-with-permissions-using-linux-015de198b2e0?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/015de198b2e0</guid>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 15:25:21 GMT</pubDate>
            <atom:updated>2023-10-24T06:46:30.437Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*9XezIH85MaFrwd0dlk8X7g.jpeg" /></figure><p><strong>Objective:</strong> In the current competitive banking environment, Level Up Bank recognizes the need to constantly evolve its IT infrastructure to meet the demands of its internal operations and customer services. With a rapidly growing team across various departments such as Development, Operations, and Analytics, a secure and efficient user management system is paramount. This system should not only facilitate seamless data accessibility and interdepartmental operations but also uphold our high standards for data privacy and security. In this exercise I will document step by step how to create a directory for the bank’s Development, Operations, and Analytics departments. We will also design it so that the departments only have access to the category they belong to.</p><h4>New to Linux ?</h4><p>If you are semi new to Linux there are quite a few commands that you will find yourself using to achieve our objective. Below I will list a few to help you with this exercise.</p><p><strong>CD :</strong> <em>Change Directory</em>. This command is used to navigate in the file system by changing your current working directory to a specific location.</p><p><strong>Sudo:</strong> <em>SuperUserDo. </em>This command allows authorized users to execute with the same privileges of a superuser. Sudo is basically a security feature that is used to delegate “limited” permissions to normal users while still upholding security on the Linux system. It reminds me of when you were a kid and your parents made you say the “magic word” when you forget your manners. Think of Sudo as the “magic word.” Without Sudo, you don’t get your treat ;)</p><p><strong>Touch:</strong> this command is used to create a file or possibly update the timestamp of an already existing file. When you run “touch” followed by an actual filename it will attempt to create a new file with the name you specify if it has not already been created. If the file happens to already exist it will update and modify the timestamp of the existing file to the current time.</p><p><strong>MKDIR:</strong> <em>Make Directory. </em>this command is used to create new directories or folders within the file system. When you run “MKDIR” followed by the name of the directory you wish to create, it will create that directory within the directory you are currently working in or it will create the directory in whatever path you specify.</p><p><strong>Groupadd: </strong>this command is used to create a new user group. Consider this a way to manage or organize user accounts. Like other commands you follow this with names or a name of a group you wish to create.</p><p><strong>Chown: </strong><em>Change Owner</em>. this command like many others is pretty self explanitory. It is used to change ownership of files or directories. With this command you are able to change user owner or group owner of a directory or file.</p><p><strong>Chmod: <em>Change Mode</em></strong>. the chmod command is used to change permissions. this allows you to control who will be able to read, write, and execute. File permissions in Linux are represented by three permission types for three separate entities and they are known as the <em>owner</em>, the <em>group</em>, and <em>others</em>. For example you usually can identify them numerically by remembering</p><p>“4” = Read Permission</p><p>“2” = Write Permission</p><p>“1” = Execute Permission.</p><p>Let’s say for instance we would like to give the owner permission to do all three and give the group read only permissions it would look like this</p><p>chmod 740 example.txt</p><p>The “7” is your read permission + Write permission + Execute permission (4+2+1). The “4” is your Read permission only. The “Others” which is the third digit reprsented by “0” has no permission.</p><h3><strong>Getting Started</strong></h3><ol><li>To begin our tasks, log into AWS Console and launch an EC2 instance for Ubuntu. Create a key pair also.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ThhF44IFdbGOXYnThVtLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNAxWBdQUl2Ier2quTgaqQ.png" /></figure><p>2. Run the chmod command if necessary to ensure your key is not publicly viewable. Connect to your EC2 instance via SSH Client. Update your package server. The purpose of updating your package server is for security updates, bug fixes, compatibility, new features, and performance to name a few.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tndoJQYRXheVWgZtoQb3_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i7gGnno7JvmXNTzvp26D7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vjS3kHocN7TBd9fEro2xA.png" /></figure><h3>Create Directories for 3 Groups</h3><p>3. The Three departments we will create directories for are Development, Operations, and Analytics.</p><p>“Sudo mkdir Development Operations Analytics”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTYSKO6_ZumjuxB4YnUdiA.png" /></figure><p>Each group will only be able to access the department they belong to.</p><p>“sudo 050 Development/ Operations/ Analytics/”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RvwTf90L3GC5tEBCPAIW-A.png" /></figure><p>4. Long list your directories to verify file attributes. It should look like the example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29A8zsj52YZGxz8XCrrEiw.png" /></figure><p>5. Enter the Analytics directory and add a file. Then do the same for Operations and Development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oozXpUWZ7e-vaaqn_6wuaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKeBr_V78nZk2bITftR5Kw.png" /></figure><p>6. Give each group ownership of their respective department.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Msv0rWatxsw5FgMSwZd2YA.png" /></figure><p>7. Add Users and their associated info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*Lc3c_uhnwByytaifDZmfUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qMTGK0hIDgALMMcP3zQGbQ.png" /></figure><p>8. Each user is granted password credentials. “sudo passwd”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*TTYtAVot3cIne_hCIbEHsw.png" /></figure><p>9. And finally, make the users “Owners” of the directories that correspond with their department !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KfWznAgzKo2Xv6hnYBIZQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=015de198b2e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an Apache Web Server using CentOS]]></title>
            <link>https://medium.com/@tremainemlittle/creating-an-apache-web-server-using-centos-44b138575bf7?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b138575bf7</guid>
            <category><![CDATA[apache-http-server]]></category>
            <category><![CDATA[centos7]]></category>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 06:31:58 GMT</pubDate>
            <atom:updated>2023-10-18T06:31:58.770Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KaLIBDV3OAl4JKjJ8SEPqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x72D8y7HLw6MnG1cPE187Q.png" /></figure><p><strong>Objective:</strong> As a junior cloud engineer at Level Up Bank, your team has been tasked with creating a new web server using CentOS, an open-source Linux distribution widely used for web servers. The web server will host the bank’s website, providing information about its services and allowing customers to access their accounts online.</p><p><strong>What is CentOS ?</strong></p><p>CentOS (<em>Community ENTerprise Operating System</em>) is basically a community that allows a group of people to work on CentOS project outputs. AWS, CloudLinux, Almalinux, and RedHat all contribute to this community.</p><p><strong>Getting Started</strong></p><ol><li>) To create your server you will first launch an EC2 instance. Once logged in to your AWS console locate and click on the EC2 dashboard and then click on “Launch Instance.”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-KX42B_Y4PqIW2LMyDpHw.png" /></figure><p>2.) Once you click on “Launch Instance” you will then name your instance and select your Amazon Machine Image. In this case I named my instance “week5project” and “Centos” will have to be found in the Amazon Marketplace. Once you’ve located the correct version select it and remain on the free tier. Keep the default settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ts1jvmz968CDicA-_EsKJA.png" /></figure><p>3.) In order to communicate/access your instance for your command line you will need to create a key pair. In my example I will name mine “Week5.” In the example below you will notice the name in red with a error message indicating it “already exists” thats only because I am showing you what i’ve already done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZthTWBmqh1KWDUG55eZgOQ.png" /></figure><p>4.) Next we will configure security settings by creating a security group that allows both HTTP traffic and SSH from “YOUR” IP address. Now launch your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vi-lMVFWu5yBGHR0R88ZDQ.png" /></figure><p>5.) Check the status of your instance it may take a moment to be created but once it says that it&#39;s running we’re good to go ! Click on “Actions” then “Connect to Instance.” From the “SSH client” tab you will copy the example command located at the bottom then paste it into your “terminal” or “Powershell” whichever one you use. In my example I will be using Terminal to input commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZopXzp2SggErYaKAw3o3Wg.png" /></figure><p>6.) Once you paste your key pair configuration you need to make a slight change in the example. Substitute the “ec-2user” in your example command for “centos” to configure the EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9lLZ_fxTD4iOpQl6ZFAlg.png" /></figure><p>7.) To access your instance you will be prompted to type “yes” or “no” ….type “yes.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adoIgK4A8XKdpajpnGf7-w.png" /></figure><p>8.) Now we will need to update Centos to ensure it has the most recent packages. The prompt will gather an amount of packages and then you will need to run a command to install those packages. There will be a prompt that will ask you if it&#39;s ok. Yes it is you will type “Y” to confirm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQZrXb_k0y8L2ELYAP1mhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WdVHcy6Ph_C4PjMEhgMG0Q.png" /></figure><p>9.) Now we are almost at the finish line this is where we will enable the Apache website. You will need to input the command “sudo systemctl start httpd.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QL-WfrjSo3XrgToEahEUXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCvftzg-2mNT0mxTWslFGQ.png" /></figure><p>10.) Let’s see if it worked. Locate the instance summary for your Public IPv4 address to verify if your page can now be viewed. Copy that into your address bar and go ! After completion you will need to stop your instance to avoid additional costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-7oM5WAR_zGD5Z47sfKDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQ1GKLUiter7qp4wJa1loQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvclDZMGLJlhgdI_LaK-BQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b138575bf7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using SSH To Connect to AWS EC2]]></title>
            <link>https://medium.com/@tremainemlittle/using-ssh-to-connect-to-aws-ec2-949f3364071a?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/949f3364071a</guid>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Wed, 04 Oct 2023 16:46:29 GMT</pubDate>
            <atom:updated>2023-10-04T16:46:29.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*oWhaIkywJIYqH1bR8gsPbA.jpeg" /></figure><p>Level Up In Tech Week 3 Project</p><p>In this write up I will be covering the necessary steps needed to solve a foundational case. Below is the case that was given to me.</p><p>1. <strong>Problem</strong></p><p>Level Up Corporation, a mid-sized tech company, leverages the power of Amazon Web Services to host both its Linux and Windows applications. The company currently has 100+ EC2 instances running simultaneously. Level Up has a dedicated IT team located globally to handle the administration and maintenance of these instances. However, due to the absence of a reliable, secure, and direct remote administration tool, the IT team faces significant challenges in efficiently managing, troubleshooting, and maintaining these servers, leading to prolonged downtime, decreased productivity, and potential security risks.</p><p>2. <strong>Solution</strong></p><p>Implement SSH (Secure Shell) for Linux EC2 instances and RDP (Remote Desktop Protocol) for Windows EC2 instances. If executed properly this will allow the IT team to effectively manage and troubleshoot servers, regardless of their geographical location.</p><p><strong>In simple terms, what is EC2 ?</strong></p><p><strong><em>Amazon Elastic Compute Cloud</em></strong> is a service that allows users to rent a virtual machine/computer to run their own computer applications. EC2 is used for scalable computing capacity in the AWS Cloud so that users are able to deploy and develop applications without the traditional constraints of hardware.</p><p><strong>Step by Step Directions</strong></p><ol><li>Log into the AWS Console with your username and password. Locate the search bar and type in “EC2.”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQ0IkYzYTjJE7TItgv468Q.png" /></figure><p>2. Locate “Launch Instance” (Orange Button) and click on it. On this screen you will name your instance. In my example it is <em>LUITweek2project. </em>Select the appropriate Amazon Machine Image, for this instance the application we will be using is Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwpgsZu-W8jkxcGZE653cg.png" /></figure><p>3. Next we will need to create a key pair. A key pair is a combination of both a public key that is used to conceal/hide the data and the private key which will be used to decode/decipher the data. In my example I named the pair <em>week2projectpair. </em>Be sure to keep all default settings<em>. </em>Click “Create Key Pair.”Disregard the error message in the example as I have already created the pair prior to my explanation/screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2do84EH_cOTTYCu0HPOWA.png" /></figure><p>4. Under Firewall (security groups) create a security group that allows SSH traffic from your IP address which ultimately only allows YOU to have access. Now you may Launch Instance !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gM-30Qck7Ifn2ecqPjyegQ.png" /></figure><p>5. Now that your instance has been launched, you must verify that you have access to it. Click “Connect to Instance.” Finally run the <em>whoami</em> command to verify you are in your EC2 instance. Notice the system responds to the command by returning the default user name or whatever you may have created. In my example I kept the default user name <em>ec2-user</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7TCW9C1Rl-u-S4tFG2VjQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=949f3364071a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Static Website]]></title>
            <link>https://medium.com/@tremainemlittle/creating-a-static-website-9dde4ab3dba8?source=rss-8d4fc489497a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dde4ab3dba8</guid>
            <dc:creator><![CDATA[Tremaine Little]]></dc:creator>
            <pubDate>Mon, 25 Sep 2023 17:28:41 GMT</pubDate>
            <atom:updated>2023-09-25T17:28:41.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*yJuONl8pHeiU093UJQXB5Q.png" /></figure><p><strong>What is a Static Website ?</strong></p><p>A static website is distributed to a user exactly the way it’s stored by the original creator. What this means is that nothing on the page will vary by the user or even the site administrator unless there’s a redesign of the original site, or the site administrator goes directly into the code to change it.</p><p><strong><em>What is Amazon Web Service?</em></strong></p><p>AWS (Amazon Web Services) is a cloud computing platform provided by Amazon that includes a mixture of infrastructure-as-a-service (IaaS), platform-as-a-service (PaaS) and packaged-software-as-a-service (SaaS) offerings. Amazon Web Services (AWS) is the world’s most complete and broadly adopted cloud, offering over 200 fully featured services from data centers worldwide. If you are operating/hosting a web page that won’t require frequent updates or modifications this is actually a very good idea. Millions of customers are using AWS to save money and lower costs, become more agile, and innovate faster. Which is exactly what Level Up Bank is in search of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZHOTjOC4do0JJZY1cYp8A.jpeg" /></figure><p><strong><em>What do we need to get started ? (Requirements)</em></strong></p><ol><li>You will need to create an AWS account. For this project we will operate under the “free tier.”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b63SCMMj36J_5HkNyuAnkw.png" /></figure><p>2. The file that contains the sample code for our website. Notice in my example the “(1).” I will revisit this at a later step where I run into an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nmzoLmbY8CBeNhIh1fma3w.png" /></figure><p><strong><em>Create a S3 Bucket</em></strong></p><ol><li>Once you have created your AWS account your next step will be to navigate the search bar located at the top of your screen. Type “S3” and select the first option.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1IPDSZ7ww6Ji48kvvwErBw.png" /></figure><p>2. After you select S3, click “Create a Bucket” and give your bucket a unique name. For my example I named my bucket “mystaticwebsiteproject2121.” Be sure to keep all of the default settings then scroll down to the bottom and select “Create a Bucket.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xea382eUJOsPYFuHkG_rA.png" /></figure><p><strong><em>Forgot something ? (How to Edit an existing bucket)</em></strong></p><p>Wait a minute we never used that code ! No worries. Let’s go back and modify our bucket.</p><p>3. Locate your newly created bucket by that unique name that you gave it earlier and select it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-Zf9uM-q7BAhb7G3-cozQ.png" /></figure><p>4. Now you will see an option that says “Upload” click it and upload the file that contains the code that was given to us previously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kWTsyxrJRcFuEkEIAfazWw.png" /></figure><p>5. <strong>Almost finished</strong>. Inside of your bucket locate the “Properties” tab, scroll down to the bottom of the page where you will see “Static Website Hosting” and click “Edit.” This is where we will select “Enable” under “Static Website Hosting.” This is also where need to specify the home or default page of the website by entering the appropriate information for the index document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wfhVQ2l1-2i-nb5oM1urVQ.png" /></figure><p>6. We now need to enable public access so that our website will become accessible from the internet. Select the “Permissions” tab in your bucket and uncheck “Block all public access.” What you are doing by unchecking that box is allowing access and removing a block. “Confirm” and move forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4VA8ev5CV5vYag2nfk3SA.png" /></figure><p><strong>Error</strong> <strong>Message</strong></p><p>If you were to attempt to access the website at this point you will run into an error message. This error appears when an empty website directory with a permission error is visited.</p><p>7. Now, in your “Permissions” tab you will need to add the bucket policy. This can be done 2 ways. You can use ACL or you can use bucket policy. In my opinion using bucket policy is the better method and is also what is recommended. Click the “edit” button which is located next to bucket policy to insert the following code. The “Bucket ARN” will replace “YOUR-BUCKET-ARN” when you paste the code. Below is an example of how things look once that is done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWTpHGa4C2fBVBXPQyFD0A.png" /></figure><p>8. Now under your properties tab, scroll down to the bottom of the page where you will see your bucket website endpoint URL. Copy that URL !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wW56fJUiHEQNzuoLNpiPg.png" /></figure><p><strong><em>The Final Test (Test your work for efficiency)</em></strong></p><p>9. Open a new browser window and paste the endpoint URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cekWXFwBMZbrW9eoLwvWBg.png" /></figure><h3>What I learned</h3><p>In step five I made a critical mistake while editing “Static Website Hosting.” Below is a screenshot of what I originally typed in for my index document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDmuydusScSxRJ8L_dKs4Q.png" /></figure><p>If you attempt to access the website later on without making sure this index document matches up exactly with the file you actually use below is the error you will run into.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_LPdfm4Bb3PrJQFELoc7KA.png" /></figure><p><strong><em>Why did I type this ?</em></strong></p><p>In my brain I remember the file being named this. However going back to step two I made the mistake of downloading this file twice to my computer therefore the duplicate file had a “(1)” in the filename. See screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wfhVQ2l1-2i-nb5oM1urVQ.png" /></figure><p>I just wanted to share what has been kicking my butt the whole weekend ! I hope this helps someone else if they ever run into the same problem from making such a small mistake.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dde4ab3dba8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>