In the above link it is shown that I need to do
sudo apt-get install nfs-kernel-server nfs-common portmap
However a software called portmap doesnot exist in ubuntu 12.04
How exactly do I configure NFS in ubuntu 12.04?
That article is over 6 years old and shouldn't be followed. You can set up NFS sharing by following the documentation here: