<?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 Suryadhanush on Medium]]></title>
        <description><![CDATA[Stories by Suryadhanush on Medium]]></description>
        <link>https://medium.com/@suryadhanush1235?source=rss-2aa9e2124a18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*D28IhSW0m8er8fGr</url>
            <title>Stories by Suryadhanush on Medium</title>
            <link>https://medium.com/@suryadhanush1235?source=rss-2aa9e2124a18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:27:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suryadhanush1235/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[Unveiling Hadoop’s Power: Parallelism and the Velocity Solution]]></title>
            <link>https://medium.com/@suryadhanush1235/unveiling-hadoops-power-parallelism-and-the-velocity-solution-f336ee75a594?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/f336ee75a594</guid>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[tcpdump]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 14:23:37 GMT</pubDate>
            <atom:updated>2023-12-10T14:23:37.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_TMjbI_YXL1aLcTL" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hadoop’s backbone lies in its ability to divide large datasets into smaller chunks, a process known as ‘splitting.’ These chunks are then processed in parallel across multiple nodes within a Hadoop cluster. This parallel processing, facilitated by the MapReduce paradigm, allows for simultaneous execution of tasks on different nodes, significantly enhancing data processing speed.</p><p>Addressing the Velocity Problem</p><p>The velocity problem arises due to the sheer volume and speed at which data is generated and needs to be processed. Hadoop’s solution is two-fold:</p><p>1. Splitting and Parallel Processing:<br> By breaking down data into smaller portions and executing processing tasks concurrently across nodes, Hadoop significantly reduces the time required to process vast datasets. This parallelism optimizes data upload, enabling faster ingestion into the cluster.</p><p>2. Distributed Computing:<br> Leveraging a distributed computing model, Hadoop distributes computational tasks across the cluster’s nodes, allowing for efficient utilization of resources and accelerating data processing.</p><p>Evidence of Parallelism in Action</p><p>While tools like TCPDump might not directly showcase Hadoop’s parallelism, exploring internal Hadoop mechanisms and documented cases provides concrete evidence. Studies and research often highlight the efficiency gained through Hadoop’s parallel processing framework, showcasing its ability to address the velocity problem effectively.</p><p>Conclusion</p><p>Hadoop’s prowess in harnessing parallelism is the key to overcoming the velocity challenge in processing large datasets. By leveraging parallel processing and distributed computing, Hadoop optimizes data upload speeds, offering a scalable solution for handling vast volumes of information in today’s data-driven landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f336ee75a594" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Storage Allocation in a Hadoop Cluster Using Linux Partitions]]></title>
            <link>https://medium.com/@suryadhanush1235/optimizing-storage-allocation-in-a-hadoop-cluster-using-linux-partitions-c792fef9a288?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/c792fef9a288</guid>
            <category><![CDATA[partition]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 13:49:13 GMT</pubDate>
            <atom:updated>2023-12-10T13:49:13.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sgu48SaCjzgbiuru" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the realm of Big Data, Hadoop stands as a cornerstone, efficiently managing colossal volumes of data across distributed nodes. One crucial aspect of configuring a Hadoop cluster involves allocating specific amounts of storage to individual nodes. In this guide, we’ll explore how to contribute limited/specific storage to the Hadoop cluster by leveraging Linux partitions.</p><p>Understanding Hadoop’s Distributed Storage</p><p>Hadoop operates on a distributed file system, spreading data across multiple nodes for enhanced performance and fault tolerance. Each node, typically referred to as a slave or datanode, contributes storage capacity to the cluster.</p><p>Allocating Limited Storage Using Linux Partitions</p><p>1. Partitioning the Disk:<br> Begin by identifying the disk to allocate for Hadoop storage. Utilize Linux tools like fdisk or parted to create a partition specifically for Hadoop data.</p><p>2. Formatting the Partition:<br> Once the partition is created, format it using a file system compatible with Hadoop, such as ext4 or XFS.</p><p>3. Mounting the Partition:<br> Mount the newly formatted partition to a designated directory that will serve as the storage location for Hadoop data.</p><p>4. Configuring Hadoop to Use the Allocated Storage:<br> Update Hadoop configuration files (hdfs-site.xml) to designate the mounted partition as a storage location for Hadoop data. Modify the dfs.data.dir property to include the path of the mounted partition.</p><p>5. Node Addition and Cluster Configuration:<br> Add the node with the allocated storage to the Hadoop cluster configuration. Update the cluster settings to recognize the added node and its designated storage.</p><p>6. Testing and Validation:<br> Validate the setup by initiating data writes and reads to ensure the newly allocated storage is seamlessly integrated into the Hadoop cluster.</p><p>Efficiently contributing limited or specific storage to a Hadoop cluster involves careful partitioning and configuration of Linux storage. By leveraging Linux partitions and integrating them into the Hadoop ecosystem, organizations can fine-tune their cluster’s storage capacity to meet specific needs and optimize data management.</p><p>By following these steps, you can precisely allocate and integrate limited storage as a slave node in a Hadoop cluster, enabling enhanced performance and scalability in handling Big Data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c792fef9a288" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Data Titans: How Tech Giants Harness Big Data and Hadoop for Efficiency]]></title>
            <link>https://medium.com/@suryadhanush1235/decoding-data-titans-how-tech-giants-harness-big-data-and-hadoop-for-efficiency-d8f99e6513a8?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8f99e6513a8</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 13:34:40 GMT</pubDate>
            <atom:updated>2023-12-10T13:34:40.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dC5qV-AwDIkt_NHV" /><figcaption>Photo by <a href="https://unsplash.com/@tvick?utm_source=medium&amp;utm_medium=referral">Taylor Vick</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s digital sphere, companies like Google, Facebook, and Instagram aren’t merely platforms; they’re data powerhouses. Their ability to handle massive amounts of data with precision and rapidity is nothing short of astounding. But what underpins this mastery?</p><p>1. Infrastructure Mastery<br> — Data Centers: Unveiling the colossal warehouses of servers powering these giants.<br> — Distributed Systems: Understanding the architecture that ensures seamless data flow across various locations globally.</p><p>2. Storage Technologies<br> — Cloud Storage: Delving into the cloud’s role in storing and retrieving petabytes of data effortlessly.<br> — Specialized Databases: Exploring databases tailored for specific types of data for optimized storage.<br> — Big Data Features: Introduction to the core characteristics of Big Data: Volume, Velocity, Variety, and Veracity.</p><p>3. Role of Hadoop<br> — Hadoop Ecosystem: Exploring the backbone of big data processing and storage.<br> — HDFS (Hadoop Distributed File System): Understanding its role in storing vast amounts of data across distributed nodes.<br> — MapReduce Paradigm: How Hadoop’s processing power crunches large datasets into manageable chunks.</p><p>4. Speed and Efficiency<br> — Parallel Processing: How these companies harness parallel computing to process data at breakneck speeds.<br> — Algorithms and Optimization: Unraveling the algorithms and techniques used to optimize data handling.</p><p>5. Managing the Data<br> — Data Governance: Discussing the critical role of governance in maintaining data integrity and security.<br> — Data Lifecycle Management: Insights into how they handle data from creation to deletion.</p><p>6. Manipulating Data for Insights<br> — Machine Learning and AI: Leveraging advanced technologies to derive meaningful insights from vast datasets.<br> — Real-time Analytics: How they process data in real-time to make split-second decisions.</p><p>The world of data is their canvas, and these tech titans are the maestros orchestrating its symphony. Their ability to utilize Big Data principles, coupled with the prowess of Hadoop, enables them to store, manage, and manipulate terabytes of data with unparalleled efficiency, setting the standard for the digital era.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8f99e6513a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS: Empowering Innovation — Success Stories from the Tech World]]></title>
            <link>https://medium.com/@suryadhanush1235/aws-empowering-innovation-success-stories-from-the-tech-world-5f803bff243a?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f803bff243a</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 18:24:42 GMT</pubDate>
            <atom:updated>2023-09-15T18:24:42.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS: Empowering Innovation — Success Stories from the Tech World</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Vnhthvo3ZcYZGn9" /><figcaption>Photo by <a href="https://unsplash.com/@christianw?utm_source=medium&amp;utm_medium=referral">Christian Wiediger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Amazon Web Services (AWS) has become the backbone of the tech industry, offering a vast array of cloud services that power innovation across various sectors. In this blog post, we will explore three captivating success stories of companies that have harnessed the capabilities of AWS to revolutionize their fields.</p><p>*1. Airbnb: Transforming the Travel Industry*</p><p>Airbnb, the pioneer in the sharing economy and vacation rentals, has grown exponentially since its inception. To handle this growth and provide a seamless experience to users worldwide, Airbnb relies on AWS.</p><p>- *Challenges:* Airbnb faced scaling challenges, especially during peak seasons. They needed a flexible and scalable infrastructure that could handle millions of concurrent users.</p><p>- *How AWS Helped:* By leveraging AWS services like Amazon EC2 for computing power, Amazon RDS for database management, and Amazon S3 for storage, Airbnb achieved the scalability and reliability needed. AWS’s global network of data centers ensured low latency for users worldwide.</p><p>- *Results:* Airbnb can now accommodate sudden spikes in demand, reduce downtime, and focus on developing new features to enhance user experiences.</p><p>*2. Slack: Revolutionizing Team Collaboration*</p><p>Slack, the popular team collaboration and messaging platform, chose AWS as its trusted cloud provider.</p><p>- *Challenges:* Slack needed a robust and secure infrastructure to handle millions of daily users and their messages while ensuring high availability and data security.</p><p>- *How AWS Helped:* AWS offered a wide range of services like Amazon EC2, Amazon EBS, and Amazon RDS, which allowed Slack to scale seamlessly. AWS’s security features and compliance certifications ensured data protection.</p><p>- *Results:* Slack’s partnership with AWS has contributed to its reliability and ability to handle rapid user growth. This allows businesses to communicate and collaborate effectively, even in remote work environments.</p><p>*3. Netflix: Reinventing Entertainment*</p><p>Netflix, the global streaming giant, relies on AWS to deliver content to its massive audience.</p><p>- *Challenges:* Netflix needed a scalable infrastructure to serve high-quality video content to millions of viewers simultaneously while optimizing costs.</p><p>- *How AWS Helped:* AWS’s CDN service, Amazon CloudFront, ensures fast content delivery globally. Netflix also uses AWS Lambda for serverless functions and AWS’s analytics tools for optimizing content recommendations.</p><p>- *Results:* With AWS, Netflix can provide uninterrupted streaming experiences for users, personalize content recommendations, and continually innovate its streaming service.</p><p>Conclusion:</p><p>These success stories illustrate how AWS empowers companies across various industries to innovate, scale, and provide better services to their customers. Whether it’s transforming the travel industry like Airbnb, revolutionizing team collaboration like Slack, or reinventing entertainment like Netflix, AWS plays a pivotal role in driving these technological advancements.</p><p>As the tech landscape evolves, AWS continues to be at the forefront, enabling companies to reach new heights and redefine what’s possible in their respective fields. These stories are just a glimpse of the transformative power of AWS in the world of technology and innovation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f803bff243a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Scalable WordPress Website on AWS: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@suryadhanush1235/building-a-scalable-wordpress-website-on-aws-a-step-by-step-guide-ae003128eae0?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae003128eae0</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 18:14:31 GMT</pubDate>
            <atom:updated>2023-09-15T18:14:31.100Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gkXkLkp5Vv5Z_YBX" /><figcaption>Photo by <a href="https://unsplash.com/@mrpeker?utm_source=medium&amp;utm_medium=referral">Mehmet Ali Peker</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s digital landscape, having a powerful and scalable web platform is crucial for businesses and individuals alike. Amazon Web Services (AWS) offers a comprehensive suite of services to host and manage web applications seamlessly. In this blog post, we’ll guide you through the process of setting up a WordPress website on AWS, leveraging services like EC2 for hosting, RDS for database management, and Apache for web serving. Let’s dive into each step:</p><p>*Step 1: Create an AWS EC2 Instance*</p><p>AWS EC2 (Elastic Compute Cloud) allows you to launch virtual servers in the cloud. Here’s how to set up an EC2 instance:</p><p>1. Sign in to your AWS Management Console.</p><p>2. Navigate to the EC2 dashboard.</p><p>3. Click on “Launch Instance.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CdWf7Aym9O7PuSjQjOCuzA.jpeg" /></figure><p>4. Choose an Amazon Machine Image (AMI) with your preferred operating system (e.g., Amazon Linux 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyx3GhH2qAMUMCylb0dUjQ.jpeg" /></figure><p>5. Select an instance type (you can use the Free Tier-eligible t2.micro instance).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNYoeqgltpwRF7tg1p1wmw.jpeg" /></figure><p>6. Configure the instance details, add storage as needed, and configure security groups to allow HTTP and HTTPS traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_U_QaonsuG4aPcg2nByKA.jpeg" /></figure><p>7. Review and launch the instance, creating or selecting an existing key pair for secure SSH access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Abp90IP80VgfSJsz599JdA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3ud6z0spnxRGYJ8LJDa9A.jpeg" /></figure><p>*Step 2: Configure Apache Webserver*</p><p>Once your EC2 instance is running, you’ll need to set up the Apache webserver:</p><p>1. SSH into your EC2 instance using the key pair you created during setup.</p><p>2. Update your package list: `sudo yum update -y`</p><p>3. Install Apache: `sudo yum install httpd -y`</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*yJxJU5M8n8U9YLnVq-qHcA.jpeg" /></figure><p>4. Start the Apache service: `sudo systemctl start httpd`</p><p>5. Enable Apache to start on boot: `sudo systemctl enable httpd`</p><p>Your webserver is now up and running, and you can access your EC2 instance’s public IP to see the Apache test page.</p><p>*Step 3: Download WordPress*</p><p>To install WordPress, you’ll first need to download it:</p><p>1. Navigate to your Apache web root directory: `cd /var/www/html`</p><p>2. Download the latest version of WordPress: `sudo wget <a href="https://wordpress.org/latest.tar.gz%60">https://wordpress.org/latest.tar.gz`</a></p><p>3. Extract the downloaded file: `sudo tar -xvzf latest.tar.gz`</p><p>4. Move the WordPress files to the web root: `sudo mv wordpress/* .`</p><p>5. Set proper permissions: `sudo chown -R apache:apache /var/www/html`</p><p>6. Remove the leftover directory: `sudo rm -rf wordpress`</p><p>*Step 4: Setup MySQL Database using AWS RDS*</p><p>AWS RDS (Relational Database Service) makes it easy to set up, operate, and scale a relational database in the cloud. Here’s how to configure it:</p><ol><li>Go to the AWS RDS dashboard.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4uj5H9gr6e3Lp6bDMaR4VA.jpeg" /></figure><p>2. Click “Create Database” and choose the database engine (e.g., MySQL).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqhhiQ3NOxKoZGYB3emsBA.jpeg" /></figure><p>3. Configure your database instance, including specifying a username and password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0rcMGEsciYAtu43K3cqQg.jpeg" /></figure><p>4. Adjust any additional settings, such as security groups, backups, and maintenance windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGte36_8vny9Sil9YkzOQQ.jpeg" /></figure><p>5. Review and create the database.</p><p>Once your RDS instance is available, note down the endpoint or connection string; you’ll need it for the WordPress configuration.</p><p>*Step 5: Configure WordPress with the Database*</p><p>Now, you need to configure WordPress to use the RDS database:</p><p>1. Access your WordPress site by entering your EC2 instance’s public IP in your web browser.</p><p>2. Follow the WordPress setup wizard, providing the database connection details:</p><p>- Database Name: The name you set for your RDS database.</p><p>- Username and Password: The RDS database username and password.</p><p>- Database Host: The RDS endpoint or connection string.</p><p>- Table Prefix: You can leave this as the default `wp_`.</p><p>3. Complete the WordPress setup by defining your site’s title, admin username, and password.</p><p>*Step 6: Launch Your WordPress Website*</p><p>With WordPress configured, you can now launch your website:</p><p>1. Log in to the WordPress admin dashboard using the credentials you created.</p><p>2. Customize your website by selecting themes, adding plugins, and creating content.</p><p>3. Your WordPress website is now live and accessible via your EC2 instance’s public IP or a custom domain if you’ve set one up.</p><p>Congratulations! You’ve successfully set up a scalable WordPress website on AWS, utilizing EC2 for hosting, RDS for database management, and Apache for web serving. This robust infrastructure allows your website to handle traffic and grow as your online presence expands.</p><p>AWS offers extensive services and capabilities, so feel free to explore additional features like Route 53 for domain management, Elastic Load Balancers for scaling, and CloudFront for content delivery to further enhance your website’s performance and reliability. Happy WordPress hosting on AWS! 🔥🚀 #AWS #WordPress #WebHosting #CloudComputing #DevOps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae003128eae0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Docker Container Deployment with Ansible: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@suryadhanush1235/automating-docker-container-deployment-with-ansible-a-step-by-step-guide-66844c9f2681?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/66844c9f2681</guid>
            <category><![CDATA[ansibl]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 17:45:28 GMT</pubDate>
            <atom:updated>2023-09-15T17:45:28.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dbs-ScTz3-sYB1Bu" /><figcaption>Photo by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the fast-paced world of DevOps and automation, Ansible has emerged as a powerful tool for configuring and managing servers and applications. In this blog post, we’ll explore how to create an Ansible playbook that automates the deployment of a Docker container running an Apache HTTP server (httpd) on managed nodes. This playbook will:</p><p>🔹 Configure Docker</p><p>🔹 Start and enable Docker services</p><p>🔹 Pull the httpd server image from Docker Hub</p><p>🔹 Run the Docker container and expose it to the public</p><p>🔹 Copy HTML code into the container’s web directory</p><p>🔹 Start the web server</p><p>Let’s dive in step by step:</p><p>Step 1: Install Ansible*</p><p>Ensure you have Ansible installed on your control node. If not, you can install it using your system’s package manager or a Python package manager like pip.</p><pre>yum install ansible-core</pre><p>*Step 2: Create an Ansible Playbook*</p><p>Create a YAML file (e.g., `docker_httpd.yml`) for your Ansible playbook with the following content:</p><pre>- name: Configure and Run docker containers<br>  hosts: all<br>  become: yes<br><br>  tasks:<br>    - name: Install docker<br>      yum:<br>        name: docker<br>        state: present<br><br>    - name: Start and enable docker<br>      service:<br>        name: docker<br>        state: started<br>        enabled: yes<br><br>    - name: Install httpd<br>      docker_image:<br>        name: httpd<br>        state: present<br><br>    - name: Run Docker Container<br>      docker_container:<br>        name: os1<br>        image: httpd<br>        ports:<br>          - &quot;80:80&quot;<br>        detach: yes<br>        restart_policy: always<br><br>    - name: Copy HTML code<br>      copy:<br>        src: html_copy/index.html<br>        dest: /var/www/html/index.html<br>        owner: root<br>        group: root<br>        mode: &quot;0644&quot;<br><br>     - name: start httpd<br>      service:<br>        name: httpd<br>        state: started</pre><p>*1. Install Docker*</p><p>- Task Name: `Install Docker`</p><p>- Module Used: `yum`</p><p>- Purpose: This task installs Docker on the managed node using the `yum` package manager. It ensures that Docker is present.</p><p>*2. Start and Enable Docker Service*</p><p>- Task Name: `Start and Enable Docker Service`</p><p>- Module Used: `service`</p><p>- Purpose: This task starts and enables the Docker service on the managed node. It ensures that the Docker service is running and set to start automatically on system boot.</p><p>*3. Pull httpd Server Image from Docker Hub*</p><p>- Task Name: `Pull httpd Server Image from Docker Hub`</p><p>- Module Used: `docker_image`</p><p>- Purpose: This task uses the `docker_image` module to pull the `httpd` server image from Docker Hub and ensure it is present on the managed node.</p><p>*4. Run Docker Container (httpd) and Expose to Public*</p><p>- Task Name: `Run Docker Container (httpd) and Expose to Public`</p><p>- Module Used: `docker_container`</p><p>- Purpose: This task runs a Docker container named `my_httpd_container` based on the `httpd` image. It maps port 80 inside the container to port 80 on the host (making the web server accessible), detaches the container (runs in the background), and sets it to restart always (in case of failures or system reboots).</p><p>*5. Copy HTML Code to /var/www/html*</p><p>- Task Name: `Copy HTML Code to /var/www/html`</p><p>- Module Used: `copy`</p><p>- Purpose: This task copies an HTML file from your local system (specified by `/html_copy/index.html`) to the `/var/www/html` directory inside the running Docker container. It ensures that your custom HTML code is placed in the web server’s document root.</p><p>*6. Start HTTPD Service*</p><p>- Task Name: `Start HTTPD Service`</p><p>- Module Used: `service`</p><p>- Purpose: This task starts the HTTPD (Apache web server) service inside the running Docker container. It ensures that the web server is active and serving the content from the copied HTML file.</p><p>Together, these tasks automate the process of configuring a Docker container with an HTTP server (httpd), copying your HTML code into it, and ensuring that the web server is up and running, making your application accessible to the public.</p><p>Step 3: Customize the Playbook*</p><p>- Replace all with the actual target hosts where you want to deploy the container.</p><p>- Replace html_copy/index.html with the path to your HTML code that you want to copy into the container.</p><p>*Step 4: Run the Playbook*</p><p>Execute the playbook using the `ansible-playbook` command:</p><pre>ansible-playbook docker_httpd.yml</pre><p>Ensure that you have SSH access to your managed nodes and the necessary permissions to perform these tasks.</p><p>Congratulations! You’ve created an Ansible playbook to automate the deployment of a Docker container running an HTTP server. This playbook can be extended and customized to automate more complex deployment scenarios, making your DevOps tasks more efficient and repeatable. Happy automating! 🔥🐳🚀 #DevOps #Automation #Docker #Ansible #Containerization</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66844c9f2681" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running GUI Commands Inside a Docker Container: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@suryadhanush1235/running-gui-commands-inside-a-docker-container-a-step-by-step-guide-cd7eb224c86b?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd7eb224c86b</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 15:26:29 GMT</pubDate>
            <atom:updated>2023-09-15T15:26:29.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BOvzS_zkhcfQbjfY" /><figcaption>Photo by <a href="https://unsplash.com/@rubaitulazad?utm_source=medium&amp;utm_medium=referral">Rubaitul Azad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the world of containerization, Docker has become the de facto standard for packaging and distributing applications. While Docker containers are typically associated with running command-line applications, it’s entirely possible to run graphical user interface (GUI) applications within a Docker container. In this guide, we’ll walk you through the process of running GUI commands inside a Docker container using CentOS as our base image.</p><p>*1. Install Docker*</p><p>First things first, ensure you have Docker installed on your host machine. If not, you can download and install Docker for your specific operating system.</p><pre>yum install docker -y<br>systemctl start docker</pre><p>*2. Create a Container with CentOS Image*</p><p>Now, let’s create a Docker container based on the CentOS image. You can use the following command to do this:</p><pre>docker run -it --name gui-container --env=&quot;DISPLAY&quot; --net=host centos:7</pre><p>This command will start an interactive shell session within the CentOS container.</p><p>*3. Set the Container Environment Variable for Display*</p><p>To enable GUI applications to display inside the container, you need to set the `DISPLAY` environment variable. You can achieve this by adding the following command within the container:</p><p>*4. Run the Container with Host Network Driver*</p><p>To enable network connectivity for your GUI application, it’s recommended to run the container using the host network driver. This ensures that your container shares the same network namespace as your host machine.</p><p>*5. Install Firefox Inside the Container*</p><p>You can install Firefox (or any other GUI application you prefer) inside the container just as you would on a regular CentOS system. For example, to install Firefox, use the following commands:</p><pre>yum update -y<br>yum install firefox -y</pre><p>*6. Run Firefox Inside the Container*</p><p>With Firefox installed, you can now run it from within the container. Simply type:</p><pre>firefox</pre><p>This will launch the Firefox browser, and you should see the GUI displayed on your host machine if everything is configured correctly.</p><p>Congratulations! You’ve successfully run a GUI application (Firefox) inside a Docker container. This method can be extended to run other GUI applications as needed. Remember that running GUI applications inside Docker containers can be a bit complex due to various dependencies, but with the right configuration and base image, it’s entirely feasible for development and testing purposes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd7eb224c86b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Command Line Fun]]></title>
            <link>https://medium.com/@suryadhanush1235/linux-command-line-fun-ba854462b0fb?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba854462b0fb</guid>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 14:35:44 GMT</pubDate>
            <atom:updated>2023-09-13T14:35:44.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wTlb11DD-t7nDsT2" /><figcaption>Photo by <a href="https://unsplash.com/@lukash?utm_source=medium&amp;utm_medium=referral">Lukas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Linux command line is a treasure trove of utilities, both practical and whimsical. In this blog, we’re going on a fun-filled journey to explore five unique and interesting Linux commands: Figlet, Rev, Factor, Yes, and Pv. These commands showcase the versatility and creativity that Linux users can enjoy.</p><p>*1. Figlet:*</p><p>Figlet is the artist’s tool in the Linux command line. It transforms ordinary text into stunning ASCII art. Simply type `figlet` followed by your text, and watch your words come to life in captivating designs. It’s a delightful way to add a personal touch to your terminal messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*k_aIPco_mb23xUhWB2Sbow.jpeg" /></figure><p>*2. Rev:*</p><p>Ever wondered how to reverse text in Linux? Look no further than `rev`. This command takes your text and flips it around, showing your words or lines in reverse order. It’s handy for examining text in a different perspective or for fun experiments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*GU0Dtvxo6W4dV8waMApHAQ.jpeg" /></figure><p>*3. Factor:*</p><p>`Factor` is the number wizard of Linux. Give it a number, and it will effortlessly break it down into its prime factors. It’s not just for mathematicians; it’s a useful tool for various applications, like cryptography and number theory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*PUzsz_eMNZD4QuXaGjb25g.jpeg" /></figure><p>*4. Yes:*</p><p>`Yes` is the affirmation champion. It endlessly prints “y” (or any other specified character) to your terminal. While it may seem quirky, it serves a purpose in automation scripts and can save you from repeatedly typing “yes” when confirming actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*YshCmA2QyfSRVYuejO6gSg.jpeg" /></figure><p>*5. Pv (Pipe Viewer):*</p><p>You might have seen the simulating text in movies, which appears as if it is being typed in real-time. Won’t it be nice, if you can have such an effect in your terminal.`Pv` is the data flow maestro. It lets you monitor data passing through a pipeline. Whether you’re copying files, transferring data, or even downloading, `pv` provides real-time progress updates, making your operations more transparent and efficient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*CWhP89JtC01eTyucoux07g.jpeg" /></figure><p>*Conclusion:*</p><p>Linux is not just about serious work; it’s also about fun and creativity. The Linux command line offers a playground for exploration, and commands like Figlet, Rev, Factor, Yes, and Pv add a touch of whimsy and utility to your journey. So, next time you’re in the terminal, don’t hesitate to unleash these delightful commands and discover their magic.</p><p>Embrace the quirks and versatility of Linux commands. Who said the command line can’t be entertaining? 🚀🐧🎨</p><p>Ready to have fun? Try these commands and infuse your Linux experience with creativity and innovation! 💡👩‍💻✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba854462b0fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Zenity: A Guide to Linux Command-Line Dialogs]]></title>
            <link>https://medium.com/@suryadhanush1235/mastering-zenity-a-guide-to-linux-command-line-dialogs-e2f9c2a36577?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2f9c2a36577</guid>
            <category><![CDATA[zenity]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 12:54:50 GMT</pubDate>
            <atom:updated>2023-09-13T12:54:50.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rn8Sve3_wSsfKJ0E" /><figcaption>Photo by <a href="https://unsplash.com/@6heinz3r?utm_source=medium&amp;utm_medium=referral">Gabriel Heinzer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Zenity is a handy command-line tool for Linux that simplifies interaction with users through graphical dialog boxes. These dialog boxes can be used for various purposes, including user input, error handling, and progress tracking. It’s a fantastic way to add a user-friendly touch to your shell scripts and enhance the overall user experience.</p><ul><li>1. Zenity — help:*</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*u77l-gqM163RBnd6CoWnkA.jpeg" /></figure><p>Let’s start with the basics. Typing `zenity — help` in your terminal provides a list of available Zenity options and a brief description of each. It’s your go-to guide when you’re exploring the Zenity commands.</p><ul><li>2. Zenity — calendar:*</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*QjVbA7ZNLbpcrQSfXcLxQg.jpeg" /></figure><p>With `zenity — calendar`, you can display a calendar dialog box, allowing users to pick a date. This is perfect for applications that require date selection, like scheduling scripts or setting reminders.</p><ul><li>3. Zenity — error:*</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*rp8JoJswiTpKiS788X-_zA.jpeg" /></figure><p>Handling errors gracefully is essential. `zenity — error` displays an error dialog box with a custom message. It’s a valuable tool for alerting users about issues in your scripts or applications.</p><ul><li>4. Zenity — password:*</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*Yt6I63hwNCGxsFZ_S1T26Q.jpeg" /></figure><p>Security matters. `zenity — password` opens a password dialog box, ensuring users can input sensitive information securely. This is crucial for tasks like authentication or encrypting data.</p><ul><li>5. Zenity — progress:*</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*SXQcqqHB4IJhd70l-UCnlA.jpeg" /></figure><p>Track progress effortlessly with `zenity — progress`. It displays a progress bar, making long-running tasks more user-friendly. Users can monitor the progress and estimate when the task will complete.</p><p>*Conclusion:*</p><p>Zenity is a game-changer for Linux command-line enthusiasts. It empowers you to create interactive and user-friendly scripts with ease. Whether you need date selection, error handling, password input, or progress tracking, Zenity has you covered. So, next time you’re working on a shell script, remember the magic of Zenity and elevate your Linux command-line experience.</p><p>Unlock the potential of Zenity and enhance your Linux scripting prowess. It’s time to make your scripts more user-centric and efficient. 🚀🐧✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2f9c2a36577" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Simple C++ Bank System]]></title>
            <link>https://medium.com/@suryadhanush1235/building-a-simple-c-bank-system-81824b7bdd30?source=rss-2aa9e2124a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/81824b7bdd30</guid>
            <dc:creator><![CDATA[Suryadhanush]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 07:05:12 GMT</pubDate>
            <atom:updated>2023-09-10T07:05:12.271Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mjBTfdZYLBp0QqKG" /><figcaption>Photo by <a href="https://unsplash.com/@eduschadesoares?utm_source=medium&amp;utm_medium=referral">Eduardo Soares</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this blog post, we will walk through the creation of a simple banking system using C++. This project will demonstrate how to design a basic banking application with features such as account creation, balance management, and transaction handling.</p><p>## Introduction</p><p>Managing money is an essential part of our lives, and banks play a crucial role in this process. Creating a banking system in C++ allows us to understand the fundamental concepts of object-oriented programming, including classes, objects, and inheritance.</p><p>## Designing the Bank System</p><p>Our banking system will consist of two main classes: `Bank` and `BankAccount`. Let’s go through each class and its functionalities.</p><p>### BankAccount Class</p><p>The `BankAccount` class represents an individual bank account. It contains the following private member variables:</p><p>- `accountHolderName`: Stores the name of the account holder.</p><p>- `pin`: Represents the personal identification number for the account.</p><p>- `accountNumber`: Unique account number for identification.</p><p>- `accountBalance`: Tracks the account balance.</p><p>#### Member Functions of `BankAccount`</p><p>1. *Constructor*: Initializes the account with the account holder’s name, PIN, and a unique account number. The initial balance is set to zero.</p><p>2. *displayAccountInfo*: Displays the account number, account holder name, and account balance.</p><p>3. *verifyPin*: Verifies if the entered PIN matches the account’s PIN.</p><p>4. *deposit*: Adds a specified amount to the account balance.</p><p>5. *withdraw*: Allows withdrawing a specified amount from the account balance, given that the account has sufficient funds.</p><p>6. *deleteAccount*: Clears the account holder’s name, PIN, and sets the balance to zero, effectively deleting the account.</p><p>7. *getAccountNumber*: Returns the account number.</p><p>8. *getPin*: Returns the PIN.</p><p>### Bank Class</p><p>The `Bank` class manages a collection of `Bank` objects. It has the following main responsibilities:</p><p>- Creating new accounts.</p><p>- Displaying account information.</p><p>- Depositing and withdrawing funds.</p><p>- Deleting accounts.</p><p>## Implementing the Code</p><p>The code provided earlier in the blog demonstrates the implementation of the described banking system. It uses vectors to store multiple `BankAccount` objects, allowing users to perform various banking operations interactively.</p><p>## Conclusion</p><p>Creating a simple banking system in C++ is a valuable exercise for those learning about object-oriented programming. It covers the basics of class design, object instantiation, and interaction between objects. While this is a simplified example, real-world banking systems involve more complex features and security considerations.</p><p>To expand this project further, you could explore additional functionalities such as interest calculations, transaction history, or multi-user support. Additionally, for production-grade applications, it’s essential to implement robust security measures to protect users’ sensitive financial information.</p><p>Github Link: <a href="https://github.com/TheStorm003/C-Code/blob/f7bb7cadacf52daf8a4c92f1ce510c8c77b9d6bd/Bank">https://github.com/TheStorm003/C-Code/blob/f7bb7cadacf52daf8a4c92f1ce510c8c77b9d6bd/Bank</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81824b7bdd30" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>