Linux
Display IP address in console login screen
2018/04/30
Here is one liner that will add the current IP address in the console login screen (if you are not running X as is case for servers): (ip -o -4 a| awk '$2 !="lo" {print "\nIP Address ::"$4}' |tr '\n' …
Linked clone with qemu-img
2018/04/09
As you would have seen in Virtualbox or vmware, there is option to create a linked clone. I wanted to use the same feature as “Snapshot” feature anyway does not look/work so great with virt-manager. …
Battery life on laptops
2018/02/05
To improve your laptop battery life, just do the following:
Fix weird flux menu
2017/05/03
Some distro’s just add all the items under single menu and thus the menu itself becomes unusable because of the number of items in the submenu and this I did not like and hence ceated this simply …
Windows Vs Linux – One more time
2017/04/07
Image via Wikipedia […] One of the most written and commented articles has to be Linux vs Windows (of course there are competitors like vim vs emacs) but none has been covered so much as Linux …
Celebrating 25 Years of Linux Kernel Development
2017/04/03
Linux is now 25 years old, but it’s no hipster. It’s not chasing around Pokemon, and it’s not moving back in with its parents due to crippling student debt. In fact, Linux is still growing and …
flatpak – get latest libreoffice
2017/03/20
flatpak is tool similar to 0install. You can find more details here.
systemd – start service when you enable it
2017/03/13
More often than not for any service, I end up doing : systemctl enable <service> systemctl start <service> But there is shorcut to this. In systemctl command when you enable the service, …
Linux Best Practices and Tips
2017/03/06
Linux is powerful, flexible, and can be adapted to a broad range of uses. While best practices for administrating Linux servers are not hard to find due the popularity of the operating system, there …
bash ansi codes to html for html reports from shell script
2017/02/20
How many times you have felt that there was some simple way to convert bash ansi escape sequences ( colors as well in terminal ) to html equivalent so that you can send the same as html report in …
Get kernel function name from kernel address.
2017/02/13
If you are using pmap or using strace and want to covert kernel address to function name then you can use the following technique. First you need to install elfutils, if not installed. dnf install …
Separation Anxiety: A Tutorial for Isolating Your System with Linux Namespaces
2017/02/06
With the advent of tools like Docker, Linux Containers, and others, it has become super easy to isolate Linux processes into their own little system environments. This makes it possible to run a whole …