sysreporter on Fedora – basic system report in email
2016/07/18
From the packages github page: […] SysReporter (System Reporter) is a bash script that runs and aggregates a set of reports about its host system. The report can then be emailed to the system …
Get your local IP address like pro
2016/07/10
In shell scripts if you need to get you local IP address corresponding to your hostname then you can use this command
Python script to manage virtual machines with python API for libvirt.
2016/07/04
Most of times I use virt-manager to manage VMs but sometimes, I have to manage VMs on other hosts over ssh when connected over VPN or while I am working remotely. GUI like virt-manager thus becomes …
web services in c with cgi
2016/06/13
I was trying to setup a simply webservice to reply to POST requests. Earlier this was being done in tomcat which seem a little overkill to me since I already had a webserver up and running. So, a …
git – plot the history
2016/05/23
git has a very simple solution to see all the commits in a graphical form. If you need to understand all the commits history all you need is git graphviz|dot -Tpng -o /tmp/a.png This will generate a …
firewalld – enable logging
2016/05/16
firewalld by default does not allow packets that are dropped. In some cases, you need to find out if some packet is being dropped or not. For doing so you may want to enable logging of dropped packets …
speed up journalctl
2016/04/25
Sometime back I noticed that whenever I run my favourite command, viz. journalctl -xn -f -l it was taking more time than usual. So, I thought to dig more into it and finally found that the following …
Most simple and fast lightweight container with Fedora systemd
2016/04/15
If you need to have a quick bash shell in sandbox with not network as well, then the most simple command I could find so far is: sudo virt-sandbox -c lxc:/// /bin/bash For this you will need to have …
ssh – remove offending key.
2016/04/04
Whenever a system/server is re-installed or the host key changed for any reason, you would have seen the “host key verification failed”. And as usual you would have to go to known_hosts file and …
DNS – simple and effective guide with history
2016/02/15
Here is link to a very nice and definitive guide to DNS. Very detailed and useful. There is a pdf version as well to download 🙂 https://webhostinggeeks.com/guides/dns/ Thanks to Andrijana Nikolic for …
virsh – show ip address of all running VMs
2016/02/01
If you are using the libvirt and associated tools, then you must be aware about virt-manager. However this being a GUI tools, it is not possible to always use this. “virsh” is a good option for this. …
image ordering by Original Date Time using bash script
2016/01/05
Here is the script: #!/bin/bash - #=============================================================================== # # FILE: imgOrg.sh # # USAGE: ./imgOrg.sh # # DESCRIPTION: # # OPTIONS: --- # …