I got two computers, one on the living room while the other is in my room. With 7 meters of cat5 cable, 2 rj45, and a crimper. I was able to connect two computers using one internet source. Building a crossover cable you can hook-up two devices that are the same(eg.. pc to pc, switch to switch). Heres my cheat sheet.
Go to this link and just follow the simple instructions. Word of advice crimp harder, if not enough use a flat screw to help the contacts of the Rj45 slice thru the copper wires insulator.