<?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 Delia S.N on Medium]]></title>
        <description><![CDATA[Stories by Delia S.N on Medium]]></description>
        <link>https://medium.com/@ngedelia?source=rss-3f5e28b66bbe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4RHXI5MR5_aQIrB5n8oH7A@2x.jpeg</url>
            <title>Stories by Delia S.N on Medium</title>
            <link>https://medium.com/@ngedelia?source=rss-3f5e28b66bbe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:49:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ngedelia/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[Building and Deploying with Maven on an Ubuntu EC2 Instance]]></title>
            <link>https://medium.com/@ngedelia/building-and-deploying-with-maven-on-an-ubuntu-ec2-instance-c8e152817387?source=rss-3f5e28b66bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e152817387</guid>
            <dc:creator><![CDATA[Delia S.N]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 12:53:00 GMT</pubDate>
            <atom:updated>2024-08-25T12:53:00.466Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to this comprehensive tutorial on setting up and building a Java project with Maven on an Ubuntu EC2 instance. Whether you’re a student or a professional looking to streamline your Java project management and deployment, this guide will walk you through the entire process — from setting up your cloud environment to running your application.</p><h3>Prerequisites</h3><p>Before diving into the tutorial, make sure you have the following:</p><ul><li><strong>AWS EC2 Instance</strong>: A t2.medium Ubuntu instance.</li><li><strong>Java Development Kit (JDK)</strong>: Installed on your EC2 instance.</li><li><strong>Git</strong>: For version control.</li><li><strong>Java Project</strong>: Hosted on GitHub (e.g., using Spring Boot).</li></ul><h3>Step 1: Setting Up Your EC2 Instance</h3><ol><li><strong>Create an EC2 Instance</strong>:</li></ol><ul><li>Launch a new t2.medium instance running Ubuntu on AWS.</li></ul><p><strong>2. Configure Security Group</strong>:</p><ul><li>Update the inbound rules of your Security Group to include a “Custom TCP” rule for ports 8000–9000. This allows external access to your application.</li></ul><p><strong>3. Connect to Your EC2 Instance</strong>:</p><ul><li>Use SSH to log in to your instance.</li></ul><h3>Step 2: Installing Necessary Tools</h3><ol><li><strong>Update the Package List</strong>:</li></ol><pre>sudo apt update</pre><p><strong>Switch to Root User</strong>:</p><pre>sudo su</pre><ol><li><strong>Install JDK 11</strong>:</li></ol><pre>apt install openjdk-11-jre-headless -y</pre><ol><li><strong>Install Maven</strong>:</li></ol><pre>apt install maven -y</pre><ol><li><strong>Clone the Java Project Repository</strong>:</li></ol><pre>git clone https://github.com/Raysimeon12/BoardgameListingWebApp.git</pre><ul><li>step 3: Building the Project with Maven</li></ul><ol><li><strong>Navigate to the Project Directory</strong>:</li></ol><pre>cd BoardgameListingWebApp/</pre><ol><li><strong>Run Maven Lifecycle Commands</strong>:</li></ol><ul><li><strong>Clean the project</strong>:</li></ul><pre>mvn clean</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*a_h6DwwzCT_mXxjy.png" /></figure><ul><li><strong>Validate the project</strong>:</li></ul><pre>mvn validate</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4WIPVafaNCjGkjx2.png" /></figure><ul><li><strong>Compile the source code</strong>:</li></ul><pre>mvn compile</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*VCYxOIGX0EX2rQ0m.png" /></figure><ul><li><strong>Run the test cases</strong>:</li></ul><pre>mvn test</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*A22V5I24ilsFO6Fg.png" /></figure><ul><li><strong>Package the code into a JAR file</strong>:</li></ul><pre>mvn package</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3ObKcHT6RTcVK0sU.png" /></figure><h3>Step 4: Running the Application</h3><ol><li><strong>Navigate to the Target Folder</strong>:</li></ol><pre>cd target/</pre><ul><li><strong>Run the JAR File</strong>:</li></ul><pre>java -jar /home/ubuntu/BoardgameListingWebApp/target/database_service_project-0.0.1.jar</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BykYKvdPfB2XAsBS.png" /></figure><p><strong>Access the Application</strong>:</p><ul><li>Open a web browser and enter the following URL:</li></ul><pre>http://&lt;Public-IP-of-EC2-Instance&gt;:8080</pre><ul><li>Replace &lt;Public-IP-of-EC2-Instance&gt; with the actual public IP address of your EC2 instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*NrizfnPvdYeAM96w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5ltXUSfgN4uuyNmDSrrRA.png" /></figure><h3>Additional Maven Commands</h3><ol><li><strong>Clean and Package</strong>:</li></ol><pre>mvn clean package</pre><p><strong>2. Skip Tests and Build</strong>:</p><pre>mvn clean package -DskipTests=true</pre><p><strong>3. Set Memory Limits for Build</strong>:</p><pre>mvn package -DargLine=&quot;-Xmx512m -Xms256m&quot;</pre><p><strong>4. Install to Local Repository</strong>:</p><pre>mvn install</pre><ol><li><strong>Deploy to Remote Repository</strong>:</li></ol><pre>mvn deploy</pre><p>Congratulations! You’ve successfully set up Maven on your Ubuntu EC2 instance, built your Java project, and deployed it. This hands-on experience not only improves your technical skills but also prepares you for real-world scenarios in software development and deployment. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e152817387" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A STEP-BY-STEP GUIDE ON Deploying EC2 with SSH Access Using Terraform]]></title>
            <link>https://medium.com/@ngedelia/quick-guide-deploying-ec2-with-ssh-access-using-terraform-b11e3ff12bc0?source=rss-3f5e28b66bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11e3ff12bc0</guid>
            <dc:creator><![CDATA[Delia S.N]]></dc:creator>
            <pubDate>Mon, 19 Aug 2024 22:50:31 GMT</pubDate>
            <atom:updated>2024-08-21T09:06:37.381Z</atom:updated>
            <content:encoded><![CDATA[<h4>1. Prerequisites</h4><ul><li><strong>AWS CLI</strong> and <strong>Terraform</strong> installed.</li><li>AWS Key Pair for SSH access.</li></ul><h4>2. Files Structure</h4><pre>provider.tf<br>main.tf<br>variables.tf (Optional)<br>outputs.tf (Optional)</pre><h4>Configuration</h4><ul><li><strong>provider.tf</strong>:</li></ul><pre>provider &quot;aws&quot; {<br>  region = &quot;us-west-2&quot;<br>}</pre><p><strong>main.tf</strong>:</p><pre>resource &quot;aws_security_group&quot; &quot;my_sg&quot; {<br>  name        = &quot;allow_ssh&quot;<br>  description = &quot;Allow SSH traffic&quot;<br>  ingress {<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  tags = {<br>    Name = &quot;allow_ssh_sg&quot;<br>  }<br>}<br><br>resource &quot;aws_instance&quot; &quot;my_ec2&quot; {<br>  ami           = &quot;ami-0c55b159cbfafe1f0&quot;<br>  instance_type = &quot;t2.micro&quot;<br>  key_name      = &quot;your-key-pair-name&quot;<br>  security_groups = [aws_security_group.my_sg.name]<br>  tags = {<br>    Name = &quot;my_ec2_instance&quot;<br>  }<br>}<br>outputs.tf (Optional):<br><br>hcl<br>Copy code<br>output &quot;instance_public_ip&quot; {<br>  value = aws_instance.my_ec2.public_ip<br>}</pre><h3>(Optional) Variables (variables.tf)</h3><pre>variable &quot;aws_region&quot; {<br>  default = &quot;us-west-2&quot;<br>}<br><br>variable &quot;instance_type&quot; {<br>  default = &quot;t2.micro&quot;<br>}<br><br>variable &quot;ami_id&quot; {<br>  default = &quot;ami-0c55b159cbfafe1f0&quot;<br>}<br><br>variable &quot;key_name&quot; {<br>  description = &quot;Name of the SSH key pair&quot;<br>  type        = string<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgPxR66TOtAZ2yisUJPcJQ.png" /></figure><h3>Explanation:</h3><ul><li>Adds flexibility by defining customizable variables.</li></ul><p><strong>outputs.tf</strong> (Optional):</p><pre>output &quot;instance_public_ip&quot; {<br>  value = aws_instance.my_ec2.public_ip<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*qOSzCwkUX_WWTTZs46ubXA.png" /></figure><h4>4. Deploy Infrastructure</h4><ol><li><strong>Initialize Terraform</strong>: terraform init</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*cZV_-GFroHUgfbwgolhTVw.png" /></figure><p><strong>2. Review Plan</strong>: terraform plan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*GoHl-Ez6n49dOyqW7hY-pQ.png" /></figure><p><strong>3. Apply Configuration</strong>: terraform apply (Confirm with yes)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*vkerHPSVt330Anvi7owpug.png" /></figure><h4>5. SSH Access</h4><ul><li>Retrieve the public IP: terraform output instance_public_ip</li><li>SSH into the instance:</li></ul><p>ssh -i /path/to/your-key-pair.pem ec2-user@&lt;public-ip&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvKIEr2nIvTPO90oCXoQzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eh0-pAog4YFN9tPUNrBuTA.png" /></figure><h3>Cleaning Up Resources</h3><h3>Destroy Infrastructure:</h3><pre>terraform destroy</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11e3ff12bc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A STEP BY STEP GUIDE ON HOW TO DEPLOY A JENKINS SERVER ON AN UBUNTU MACHINE:]]></title>
            <link>https://medium.com/@ngedelia/a-step-by-step-guide-on-how-to-deploy-a-jenkins-server-on-an-ubuntu-machine-0ac30dafd096?source=rss-3f5e28b66bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ac30dafd096</guid>
            <dc:creator><![CDATA[Delia S.N]]></dc:creator>
            <pubDate>Tue, 06 Aug 2024 11:37:27 GMT</pubDate>
            <atom:updated>2024-08-06T11:37:27.112Z</atom:updated>
            <content:encoded><![CDATA[<p>PREREQUISITES:</p><ul><li><strong>Ubuntu Server</strong>: Ensure you have an Ubuntu server running. This guide assumes you’re using Ubuntu 24.04 or later.</li><li><strong>Root or Sudo Privileges</strong>: You need to have sudo privileges to perform these actions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jm-Dsd_RQ3UxBIudemVFA.png" /></figure><h3>Step 1: Update the System</h3><ol><li><strong>Update Package Lists</strong>: Run the following commands to update your package lists and ensure your system is up-to-date.</li></ol><pre>sudo apt update<br>sudo apt upgrade -y</pre><p>Step 2: Install Java</p><p>Jenkins requires Java to run. OpenJDK 11 or later is recommended.</p><p><strong>1. Install OpenJDK</strong>:</p><pre>sudo apt install openjdk-11-jdk -y</pre><p>2.<strong>Verify Java Installation</strong>:</p><pre>java -version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zGHeSJ9KqTlqEW4_xhk4w.png" /></figure><p>Step 3: Add Jenkins Repository</p><ol><li><strong>Install Required Packages</strong>:</li></ol><pre>sudo apt install wget gnupg -y</pre><p>2.<strong>Add Jenkins Repository Key</strong>:</p><pre>wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -</pre><p>3.<strong>Add Jenkins Repository</strong>:</p><pre>sudo sh -c &#39;echo deb http://pkg.jenkins.io/debian-stable binary/ &gt; /etc/apt/sources.list.d/jenkins.list&#39;</pre><p>Step 4: Install Jenkins</p><p>1.<strong>Update Package Lists Again</strong>:</p><pre>sudo apt update</pre><p>2.<strong>Install Jenkins</strong>:</p><pre>sudo apt install jenkins -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zGHeSJ9KqTlqEW4_xhk4w.png" /></figure><p><strong>3.Start and Enable Jenkins</strong>:</p><pre>sudo systemctl start jenkins<br>sudo systemctl enable jenkins</pre><p>4.<strong>Check Jenkins Status</strong>:</p><pre>sudo systemctl status jenkins</pre><p>Step 5: Configure Jenkins</p><ol><li><strong>Access Jenkins Web Interface</strong>:</li></ol><p>NOTE: Ensure port 8080 is open on your virtual machine security group</p><p>Open your web browser and navigate to:</p><pre>http://&lt;your-server-ip&gt;:8080</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4qph4uun7SqLbyn5rTfX-Q.png" /></figure><p>2. <strong>Retrieve Jenkins Unlock Key</strong>:</p><p>Jenkins will ask for an unlock key to complete the setup. Retrieve the key with:</p><pre>sudo cat /var/lib/jenkins/secrets/initialAdminPassword</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a0kLgXOAw8aWtu0_UWkFag.png" /></figure><ul><li><strong>Enter Unlock Key</strong>:</li><li>Copy the key from the terminal and paste it into the Jenkins setup page.</li><li><strong>Install Suggested Plugins</strong>:</li><li>After unlocking Jenkins, it will prompt you to install plugins. Choose “Install suggested plugins” for a standard setup.</li><li><strong>Create First Admin User</strong>:</li><li>After plugins are installed, Jenkins will prompt you to create the first admin user. Fill out the required information.</li><li><strong>Finish Setup</strong>:</li><li>Complete the setup by following the instructions. Jenkins will redirect you to the main dashboard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifTBnmO7XQk2IcTEYzfpsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TiDMCCIrgdoQH6iiA1f9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5Wb--5_zDrzWIzxJWq_zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-P4OgPy0aR-R73747TUi4Q.png" /></figure><p><em>CONGRATULATIONS</em></p><p><strong><em>Contact on linkedin for any review: Nge Delia</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ac30dafd096" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up WordPress on Ubuntu Instance in AWS: A Comprehensive Guide]]></title>
            <link>https://medium.com/@ngedelia/setting-up-wordpress-on-ubuntu-instance-in-aws-a-comprehensive-guide-c24179a2c0da?source=rss-3f5e28b66bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c24179a2c0da</guid>
            <dc:creator><![CDATA[Delia S.N]]></dc:creator>
            <pubDate>Wed, 24 Jul 2024 11:06:10 GMT</pubDate>
            <atom:updated>2024-07-24T11:06:10.870Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Ever wanted to build your own website using WordPress on Amazon Web Services (AWS)? Well, my guide, ‘Setting Up WordPress on Ubuntu Instance in AWS: A Comprehensive Guide,’ has got you covered! We’ll walk you through each step, making it easy to set up your WordPress site on an Ubuntu server in the AWS cloud. Get ready to learn everything from creating the perfect AWS setup to optimizing WordPress for outstanding performance and security!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTrtEdlLciVlblWoPEcWvA.png" /><figcaption>Created an Ec2 instance</figcaption></figure><h3>step 1 : launch a new Ubuntu instance.</h3><p>Log in to the AWS Management Console, navigate to the EC2 dashboard, and launch a new Ubuntu instance. Choose the appropriate instance type, configure security groups, and generate a key pair for SSH access.</p><h3>step 2: login as Ubuntu</h3><p>Once the instance is launched, connect to it using SSH. You’ll need the private key generated during instance creation.</p><pre>ssh -i (key_pair) ubuntu@public_ip</pre><h3>step 3: write the command below</h3><pre>sudo -i</pre><h3>step 4: update ubuntu instances</h3><p>First of all make sure that the ubuntu instance is running. By write the following command</p><pre>sudo apt update</pre><h3>step 5: Install the Apache server</h3><p>Apache HTTP Server, commonly referred to as Apache, is one of the most popular and widely-used web servers in the world. write the following command.</p><pre>sudo apt install apache2 </pre><h3>step 6: Install PHP and MySQL</h3><p>PHP and MySQL are both essential components for running WordPress. WordPress is primarily built using PHP, a server-side scripting language designed for web development. WordPress uses a relational database management system (RDBMS) to store and manage its content, settings, and user data. By default, WordPress utilizes MySQL or its equivalent</p><pre>sudo apt install php libapache2-mod-php php-mysql</pre><h3>step 7: Install the Mysql server</h3><p>MySQL serves as the database management system where WordPress stores all its data, including posts, pages, comments, user information, settings, and plugin data. Without MySQL, WordPress wouldn’t have a structured system for storing and retrieving this information.</p><pre>sudo apt install mysql-server </pre><h3>step 8: Configure MySQL</h3><p>When you run sudo mysql -u root, you are essentially launching the MySQL client as the root user, which grants you full administrative access to the MySQL server.</p><pre>sudo mysql -u root </pre><p>Next, change the authentication plugin to mysql_native_password and set a strong password:</p><p>The directive to “change the authentication plugin to mysql_native_password and set a strong password” is typically advised for security reasons.</p><pre>ALTER USER &#39;root&#39;@&#39;localhost&#39; IDENTIFIED WITH mysql_native_password by &#39;YourPassword&#39;;</pre><p>The above command is used in MySQL to change the authentication method and password for the specified user (root in this case) connecting from the specified host (<a href="http://localhost/">localhost</a> in this case).</p><p>Note: Change the password as desired in the place of “YourPassword”</p><h3>step 9: Create WordPress Database User</h3><p>The command CREATE USER &#39;<a href="/service/mailto:wp_user&#39;@localhost">wp_user&#39;@localhost</a> IDENTIFIED BY &#39;YourPassword&#39;; is used in MySQL to create a new user account with a specified username and password</p><pre>CREATE USER &#39;wp_user&#39;@localhost IDENTIFIED BY &#39;YourPassword&#39;;</pre><p>NOTE : Please feel free to customize the password in place of “YourPassword” and adjust the username to your preference.</p><h3>step 10: Create WordPress Database</h3><p>The command CREATE DATABASE wp; is used in MySQL to create a new database named “wp”. This statement instructs the MySQL server to create a new database with the specified name.</p><pre>CREATE DATABASE wp;</pre><h3>step 11: Grant Privileges</h3><p>The command sequence cd /tmp and wget <a href="https://wordpress.org/latest.tar.gz">https://wordpress.org/latest.tar.gz</a> is used to download the latest version of WordPress in compressed (.tar.gz) format from the official WordPress website.</p><pre>cd /tmp<br>wget https://wordpress.org/latest.tar.gz </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*00ytndM_6zgvMuIh1_FD2A.png" /></figure><h3>step 12: Unzip WordPress</h3><p>The command tar -xvf latest.tar.gz is used to extract the contents of a tar archive file (latest.tar.gz in this case) in Unix-like operating systems</p><pre>tar -xvf latest.tar.gz</pre><h3>step 13: Move WordPress to Document Root</h3><p>The command sudo mv wordpress/ /var/www/html is used to move the WordPress files from the current directory (wordpress/) to the web server’s document root directory (/var/www/html in this case)</p><pre>sudo mv wordpress/ /var/www/html</pre><h3>step 14: Restart Apache Server</h3><p>The command sudo systemctl restart apache2 is used to restart the Apache web server on systems using systemd as the init system</p><pre>sudo systemctl restart apache2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFM5G9nRqkHkSjiuBhtoaQ.png" /></figure><h3>You’ve completed all the setup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ejbFrfI3Ux5Q_R4MRseR_A.png" /></figure><p>Congratulations! You’ve successfully set up WordPress on your Ubuntu server. Now, you can access your WordPress site and start creating content. I hope you find this guide very helpful. If you need any assistance, please feel free to reach out to me on</p><p>LINKEDIN: <a href="https://www.linkedin.com/in/nge-delia-9a788531a/">Nge Delia | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c24179a2c0da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>