Wednesday, June 17, 2009

Beginner's Guide to VI or VIM

This guide is pretty good for newbie to VI or VIM.

Monday, March 2, 2009

Enable Jumbo Frame in Linux.


Jumbo Frames
are Ethernet Frames with more than 1,500 bytes of payload (MTU). Conventionally, jumbo frames can carry up to 9,000 bytes of payload, but variations exist and some care must be taken when using the term. Many, but not all, Gigabit Ethernet switches and Gigabit Ethernet network interface cards support jumbo frames, but all Fast Ethernet switches and Fast Ethernet network interface cards support only standard-sized frames. Jumbo frames can reduce server overhead such as a big decrease in CPU usage when transferring larger file. Also you should see some increase in network throughput.


Requirements:

1. Your NIC supports custom MTU.
2. Compatible Gigabit switch.
3. Kernel 2.6.17 and above.

For changing the MTU immediately,
ifconfig eth0 mtu 9000

For changing the MTU permanently,

nano /etc/sysconfig/network-script/ifcfg-eth0
append, MTU 9000


After that do a

service network restart

Monday, December 29, 2008

Install VMware Tools on Linux

Some prerequisite before starting.

1) VMware workstation installed on host.
2) Virtual machine already created and a flavour of Linux had been installed.

3) Kernel-headers already installed to your current kernel that you are using. If not, just do a
yum install kernel-headers
Power on virtual machine. VM -> Install Vmware Tools

Open terminal,
cp /media/VMware\ Tools/VMwareTools-6.5.0-118166.tar.gz /root/
tar xzvf /root/VMwareTools-6.5.0-118166.tar.gz
cd /root/vmware-tools-distrib
./vmware-install.pl
Installation will begin to ask many questions but you can just hit Enter to accept all defaults.
When installation finishes, vmware services will be started.

When you do a CLTR+ALT to release the controls from the virtual machine, VMware workstation will indicate VMware Tools installed successfully at the status bar.

If you do not see your screen resolution changed to the one you indicated, simply do a restart of the virtual machine.

Done.

Extract *.bin images on Linux.

No need of MagicISO because Linux could do it in minutes...ok in seconds.

Convert BIN to ISO

Open terminal,

su
yum install bchunk
bchunk imagename.bin imagename.cue imagename.iso

Mount the converted ISO

mount -o loop -t iso9660 imagename.iso /mnt/image

Where image.iso is the iso is the image that you want to mount and /mnt/image is the mount directory.

Done.