scripting

Posts related to scripting, mainly using shell scripts.

Create Virtual Machines using virt-install(libvert) with cloud-init

This post will demonstrate creating a high-performance guest VM with cloud-init using virt-install. The Qemu/libvert/KVM stack is currently the best bet to get the near-native performance from the virtual machines. When combined with cloud-init, the stack gets more empowered and highly convenient to set up virtual machines. This is especially helpful if you require creating …

Create Virtual Machines using virt-install(libvert) with cloud-init Read More »

How to set up Remote SSH to any machine behind the firewall

In this post, the method to remote SSH into a Linux machine is covered. This is especially helpful when you do not wish to open any Port open in your ISP-provided Router configuration. Using this method, you can SSH into your home machine from any computer on the internet. You would not need any fancy …

How to set up Remote SSH to any machine behind the firewall Read More »

Curl not working when executed by a particular user

In one of my Linux node, I was not able to use curl command if executed by a particular user(“root”). Strange enough, it was working when executed using some other user. If you face similar issue try to follow the following strategy to debug the issue: When executed with non-root User: curl google.com -I HTTP/1.1 …

Curl not working when executed by a particular user Read More »

How to check the IP address reputation programmatically

Countless predators are sitting in the wild to spam or attack the network. So sometimes, before trusting a random IP address on the Internet, it’s a good idea to check its reputation. There are multiple methods to check the details and reputation of an IP address, but here we are covering only one via “www.abuseipdb.com.” …

How to check the IP address reputation programmatically Read More »

Find the installed Hardware info in Ubuntu

Like listing the directories and files using the “ls” command, we can list hardware in the system using the “lshw” command. Various filters are available to filter the result of the “lshw” command based on the type of hardware, like disk, processor, etc. Please see the below examples and follow along. Note that to use …

Find the installed Hardware info in Ubuntu Read More »

How to create Virtual machines using cloud-init

Want to create virtual machines frequently? Consider using “cloud-init.” Before going into the usage of cloud-init, let’s understand what cloud-init is and why we need it. Cloud-init allows users to write down their desired configurations into a YAML file before creating the VM. During the creation of the VM, the YAML configuration file will be …

How to create Virtual machines using cloud-init Read More »

Scroll to Top