If you have machine A and machine B, now you want drive /share of machine A to be shared with machine B.
Assuming both machines are ubuntu.
a) machine A
1) Put the following lines in /etc/exports
2) Install nfs-kernel-server with-
# apt-get install nfs-kernel-server # cd /etc/inid.d/ # ./nfs-kernel-server restart
b) machine B:
1) Put the following lines in /etc/fstab
hostname_of_machine_A:/share /share nfs defaults 0 0
Note that- hostname of machine A should be resolvable, put entry in /etc/hosts.
2) Install nfs-common
# apt-get install nfs-common # mkdir /share # mount -a