NFS might not be the fastest, but it surely is the simplest one across *nix environments.

server side

prerequisite:

$ sudo apt-get install nfs-kernel-server portmap

share directory by editing /etc/exports

/opt/share  10.10.10.0/24(rw,sync,no_subtree_check)

It could be just one IP or subnet as shown above. Then restart exports if configuration errors, it’ll scream.

$ sudo exportfs -a

or /etc/init.d/nfs-kernel-server restart which is giving roughly the same thing

client side

prerequisite:

$ sudo apt-get install nfs-common portmap

That’s enough to get started mounting.

  1. mount directly

     $ sudo mount <server-ip>:/opt/share /mnt/share
    
  2. to make it permanent, edit /etc/fstab

     <server-ip>:/opt/share  /mnt/share   nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
    

That’s simple.


More:

To list all mount points:

$ showmount -e <server-ip>

Mount on OSX might not be as effortless. However, resvport option would make thing simple again.

$ sudo mount -t nfs -o resvport <server-ip>:/path /<destination>