jump to navigation

Managing SWAP in Linux January 20, 2010

Posted by networknuts in 1.
Tags: , , , , , , , , , , , , ,
add a comment

Here are some fundamental guidelines to manage your SWAP space in LINUX, more efficiently.

1. Try to create SWAP as your first partition on the HDD. HDD works on the concept of ZCAV (zonal constant angular velocity). So first
partitions are created at the outer edge of the HDD, thus having a higher IO speed than on a partition created low down the cylinder.

2. If given a choice to whether use a partition or file for SWAP. Choose dedicated partition. And that is too on the highest speed HDD
available.

3. When creating SWAP on the same HDD containing other mount points (like /var, /home etc). Always create SWAP next to (near to)
the partition having maximum IO
(like in case of FTP server create it near /var) so HDD head movement will take LESS time moving to swap, thus reduce latency.

4. Choose the SWAP on faster HDD to be used first in comparison of the SWAP on a slow HDD. Edit your /etc/fstab file as shown to give
priorities to SWAP locations.

/dev/sda1      swap      swap      pri=4    0   0
/dev/sda2      swap      swap      pri=4    0   0
/dev/sdb4      swap      swap      pri=2    0   0

Kernel will use the /dev/sda1 and /dev/sda2 before using /dev/sdb4 as they are having higher priority of 4. In case two or more SWAP locations have equal priorities kernel will distribute visit in round robin.

God Bless.

How to crack weak passwords using “john-the-ripper” January 13, 2010

Posted by networknuts in 1.
Tags: , , , , , , , , , , , , ,
add a comment

STEP #1 – Install “John-the-ripper” from the link given below and install using rpm

http://dag.wieers.com/rpm/packages/john/

STEP #2 – Use “unshadow” command to combine /etc/passwd and /etc/shadow files, so that john-the-ripper can use it.

/usr/bin/unshadow /etc/passwd /etc/shadow > /tmp/myfile.db

this command combines /etc/passwd and /etc/shadow file to be used.

STEP #3 – Use “john-the-ripper” to see the cracked passwords.

john   -show   /tmp/myfile.db

u1:abc123:505:505::/home/u1:/bin/bash
u2:didi123:506:506::/home/u2:/bin/bash

…shows user u1 has a password of abc123 and u2 has a password of didi123

God Bless.

Alok Srivastava


Sapient India trust Network NUTS for MS Exchange training October 28, 2009

Posted by networknuts in 1.
Tags: , , , , , ,
add a comment

Sapient India ( http://www.sapient.com/en-in)

One of the world’s top business and IT consulting company has chosen “Network NUTS” for their Microsoft Exchange 2007 training to be imparted to their technical staff.

The training is scheduled to start in November, 2009.

Our high technical standards are also acknowledged by world’s top IT companies.

“Our students set our standards, our job is to meet them”

Follow

Get every new post delivered to your Inbox.

Join 484 other followers