Install and Configure Munin monitoring server in Linux

Munin is an excellent system monitoring tool similar to RRD tool which will give you ample information about system performance in multiple fronts like disk, network, process, system and users. These are some of the default properties Munin monitors. How Munin works?

Read More

How to list partition labels in Linux

This is a small post on how we can view list of assigned labels for partitions in Linux OS. We some times assign meaningful labels to partitions so that we can name them in /etc/fstab file for readability. For example most of

Read More

Ansible: Reboot server in play-book and wait for it come back.

Ansible is a great and simple configuration management and orchestration tool. Some times we require to reboot server and do some tasks once reboot is done. Today I came across such requirement where I have to upgrade our production Ubuntu server from

Read More

Linux/Unix: Run a command or script at bootup

This is a small post on how to run some commands or scripts at the time of booting Need for running commands/scripts at boot time Some times we require to load some kernel modules  or run a command to accomplish a task.

Read More

Linux: Load kernel modules at boot-up

Linux kernel is a wonderful piece of software which will act a master to all softwares installed in an OS. In this post we will see how to load servents(aka modules) in to kernel. Though Linux architecture taken inspiration from Unix, there are

Read More

SED: Insert/append data to particular line number

Sed is a powerful tool to do some text manipulations in a file. We already covered some basic SED stuff. http://www.linuxnix.com/2012/04/sedsteam-editor-explained-detail-linuxunix.html In this post we will see one simple use case of SED. I have a requirement where I have to insert

Read More

Linux/Unix:How to delete particular SSH keys

One of our team member used to delete entire know_hosts file content when he see below error message. This is because either host changed its keys or some how the entry is corrupted. root@linuxnix:/home/locserver# ssh [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: POSSIBLE DNS SPOOFING DETECTED!

Read More

Ubuntu Linux:How to do unattended OS release upgrade?

Here in our office we have 200+ servers which are located in different weird locations like deserts, mountains, cities which are serving as receivers for our data. Our server are bit old which are running 10.04 Ubuntu(Lucid Lynx). As this version of

Read More

Linux/Unix:List size of sub and hidden directories

Some times we require to see size of a directory or its sub directories or hidden directories so that we can come to know how much size they are occupying on our disk. In this post we will see how to use

Read More

SED: Delete a matched line from a file

This is a small post on how to delete a line from a file when it matched some criteria. We can use many tools and languages like sed, awk, grep, python, perl, ruby etc. In this post we specifically use SED which

Read More

banner