i'm javascript programmer and i want to create network between an pc and a laptop only with a cable , my os on the both computer is ubuntu 9.4

one of the computer is in the ethernet network ,
i want to disconnect this computer from network and connect my computer to the that with a cable
do i need an special permission for doing this work?

how can i do this work?
i dont know about network concept...