Pages

Saturday, April 9, 2011

Changing Time Zone On RHEL by One Command

I was told to change Time Zone on RHEL servers. According to them, I need to run "system-config-time" , choose the correct time zone and press ENTER on OK. Sound simple? Right? The problem is that I need to do the same thing on 20+ Servers. I am the laziest guy in the world. So I try a solution called "one liner". Here is the command that I run on all servers.

#ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime

Now time zone is changed to Asia/Singapore. Isn't it cool?
Be Lazy!

To know IBM Serial Number and Dell Service Tag from Linux CLI

On one of my chaotic days, I was told to note down Serial Number on 50+ IBM servers.I was very lazy to go down and see the serial number. When I used my brain instead of my legs, "dmidecode" came cross over my mind.
Yes! I can get the serial number by running the following commands
#dmidecode -s system-serial-number
or
#dmidecode -t system

Finally, I can shake my legs and drink coffee while running scripts on all servers... :D
"Be Lazy In Outstanding Ways!"

Creating Ext2 and Ext3 partitions on Windows OS

Objective
To create Ext3 Partations with Windows OS
Solution
Natively we can't create Ext2/3 partations on Windows OS. Although we can use a Linux Live CD to do this, we need to do some extra processes like downloading Linux LiveCD, booting your computer into that Live CD and so on.
Now I found a software called Minitool Partition Wizard Home Edition. The following video shows how to create Ext3 Partation for D2SD Hack on Android Phones.

I hope it helps somebody.