Friday, February 4, 2011

Linux Mint 10 and Huawei Mobile Broadband E153

I have installed Linux Mint 10 on my HP 2140 MiniNote, which feature following upstream components: Ubuntu 10.10, Linux 2.6.35, Gnome 2.32, Xorg 7.5.


Working with Huawei Mobile Broadband E153 was a breeze. It detected the broadband very easily.

Thursday, February 3, 2011

Repeating previous command using sudo

If you need to repeat the previous command with the sudo command, you may wish to use the command

#sudo !!

Save you a couple of keystroke :)

Wednesday, February 2, 2011

Gmond dead but subsys locked for ganglia monitoring daemon

Following the tutorial instructions from Installing and configuring Ganglia on CentOS 5.x ,I've installed ganglia and ganglia-gmond. However when I attempt to start the gmond service
# service gmond start
Somehow the service refused to start. When I try another way to start the service
# /etc/init.d/gmond start
I notice the error, and the service do not start
gmond dead but subsys locked

To Solve the Issue
Step 1: Turn the Debug Level at /etc/gmond.conf to 100 found at the "globals" section

globals {
daemonize = yes
setuid = yes
user = ganglia
debug_level = 100
max_udp_msg_len = 1472
mute = no
deaf = no
host_dmax = 0 /*secs */
cleanup_threshold = 300 /*secs */
gexec = no
}

Step 2: Start the Service again.We should be able to see the error that caused "gmond dead but subsys locked". In my case, it is due to somehow my passwd file does not contain ganglia user. After fixing this missing user group, I was able to restart the ganglia-gmond daemon sucessfully.

For additional Information  on /etc/gmond.conf, you may want to use man pages or go to http://linux.die.net/man/5/gmond.conf

Tuesday, February 1, 2011

Killing process from Top Utilities


You can use "Top" utilities to kill processes instead of killing from the command line. Just press "k" and the option "PID to kill:" appear. Just type the PID and press "Enter" on the keyboard. The option kill PID ...... with signal [15]: appears. Press "Enter" again and the Process will be eliminated.

Sorting Processes by using Top

Top is one of my favourite commands for the system administration. The most important columns I often look out for is PID, USER, %CPU, %MEM, NI

If you wish to do sorting on Top, you can use a short-key "Shift+F"

Select the column you wish to sort by......

Cool right?