On the server:
(Note: this howto assumes you are logged in as “root”, and that you have a working knowledge of modifying linux from the terminal window or console)

Make sure you have the NFS Server software installed:

apt-get install nfs-kernel-server nfs-common portmap

Edit /etc/exports to add shares:

Open the file: nano /etc/exports

Add a line for each directory you wish to share:

Example #1: /files 192.168.1.1/24(rw,no_root_squash,async)

This will allow full access to the “/files” directory from any computer on the 192.168.1.0 subnet

Example #2: /files 192.168.1.2 (ro,async)

This will allow read only access to the “/files” directory from the computer at 192.168.1.2 only.

Restart NFS Server process and export new shares:

/etc/init.d/nfs-kernel-server restart

exportfs -a

On the Client:

Make sure that the NFS Client software is installed:

apt-get install portmap nfs-common

Mount a NFS Share manually:

Make sure that the target directory exists on client:

mkdir /files

Mount the share:

mount server.mydomain.com:/files /files

(Note you may need to restart above services:
/etc/init.d/portmap restart
/etc/init.d/nfs-common restart)

Mount the share permanently:

Open /etc/fstab:

nano /etc/fstab

Add a line describing the share you wish to mount:

Example: server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr

(Note: It is a good idea to test this before a reboot in case a mistake was made.
type:
mount /files
in a terminal, and the mount point /files will be mounted from the server. )

Note: This information was derived from the following sources:
http://www.cyberciti.biz/tips/ubuntu…nfs-share.html (for client configuration)
http://www.redhat.com/docs/manuals/l…nfs-mount.html (for mounting using fstab)
http://czarism.com/easy-peasy-ubuntu…s-file-sharing (for server configuration)
http://www.freebsd.org/doc/en_US.ISO…twork-nfs.html (contains more info about NFS)