LinuxWorld Informatics Pvt Ltd

MnogoDB: The database for modern applications

On 1st and 8th of May 2021, I attended a workshop on MongoDB by LinuxWorld Informatics Pvt Ltd. In this workshop we learnt about the ins and outs of MongoDB. MongoDB is a document database, which means it stores data in JSON-like documents, and hence is much more flexible then our traditional schema-based databases.

In this workshop we learnt: Data model is the way that we manage data. It decides how and where to use the database. SQL is short for sequential query language, where the data model is sequential i.e. the data is arranged in a table with a…

On 24–25th April 2021 I attended a workshop By LinuxWorld Informatics Pvt Ltd on Shell Scripting. In this workshop we learned about scripting from all the basics like writing a basic script, to all the way advance things like writing a script to lock a user based on certain requirements or performing the same over a remote host.

We learned the basics about awk(Aho, Weinberger, Kernighan) command, how can we use it to achieve different things like printing the logs of all the ip that hit a httpd server which were landed on a non existing page. We learnt to…

Kubernetes Multi-Node architecture consists of some worker nodes(depending upon the work load) and some master-nodes(depending upon the required availability). The master node contains some controller programs, which enables it to manage the entire cluster and its application. Where in the single node architecture the work load is not shared any where, and where there are multiple ways the architecture can fail due to single point of failure. To overcome this we need to create a multi-node architecture.

We can configure this cluster over our on-premise servers or we can create one over a cloud platform. One great way to do…

On 3rd and 4th of April I attended a workshop on Artificial Intelligence over Amazon Web Services, hosted by LinuxWorld Informatics Pvt Ltd. In this workshop we learnt why we need an AI platform provided to us by CSPs like AWS. And we also learnt the capabilities these AI models can provide to us.

Amazon Rekognition service is an object detection as well as object recognition model provider. It is very highly accurate and also Amazon provide us with SDK via which a user can integrate those models into their own apps. Confidence score is a percentage score for which…

Photo by Alina Grubnyak on Unsplash

AI: Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. But, what if we can mimic the capabilities of human intelligence into a machine? What’s the great idea? Well we know how capable a machine can be if it has proper tools to work with, as it can crunch numbers like a bazillion times faster than a typical human can. But still due to ability to learn a computer, on itself, can’t ever match the superior beings us “featherless bipeds” are. We humans with our brains, are…

Introduction to Ansible Roles

Ansible Role is a concept that deals with ideas rather than events. Its basically another level of abstraction used to organize playbooks. They provide a skeleton for an independent and reusable collection of variables, tasks, templates, files, and modules which can be automatically loaded into the playbook. Playbooks are a collection of roles. Every role has specific functionality.

The ansible-galaxy command has a sub-command that will create a directory skeleton for our role.

To create a role using the ansible-galaxy command, we can simply use the below syntax in our terminal:

ansible-galaxy init <ROLE_NAME>

And the Directory Structure would be:

In an Ansible, managed hosts or servers which are controlled by the Ansible control node are defined in a host inventory file as explained in. A host inventory file is a text file that consists of hostnames or IP addresses of managed hosts or remote servers.

Managed hosts can either be listed as individual entries or categorized under a group name as we shall later see. In Ansible, there are two types of inventory files: Static and Dynamic. …

In this blog we will see the solution of the given problem statement:

Create an Ansible Playbook which will dynamically load the variable file named same as OS_name and just by using the variable names we can Configure our target node ( Note: No need to use when keyword here. )

For doing this practical we require three operating systems, RHEL, Ubuntu and one for Controller Node. We need to have ansible installed and configured in our controller node.

Here, I am using the RedHat-8 and Ubuntu-20 operating systems to perform this but you can perform any type of operating…

Task Part1: Use Ansible playbook to Configure Reverse Proxy i.e. HAProxy and update it’s configuration file automatically on each time new Managed node (Configured With Apache Webserver) join the inventory.

Part 2 : Configure the same setup as part1 over AWS using instance over there.

So let’s us learn about what is HAProxy… HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for very high traffic web sites and powers quite a number of the world’s most visited ones. …

Task: Create a network Topology Setup in such a way so that System A can ping to two Systems, System B and System C but both these systems should
not be pinging each other without using any security rule e.g. firewall etc.

Since we aren’t allowed to take the help of firewalls, we’ll have to search for ways to either masquerade our IPs’, disrupt the connection between systems without actually touching the hardware (firewall would have been a great help with this), or make the IPs’ unreachable to each other. One such way to do just that, i.e. …

Prithviraj Singh

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store