Setting chain length
Put the chain around the big-big gears without threading it through the derailleur. Have the chain overlap by one link. Now with that length thread it through the derailleur.

http://sheldonbrown.com/derailer-adjustment.html#chain