homehowtokbslinksaboutcontactprojectsmusic

Index > Help Tutorials > Install NFS Server/Client
Update the system and apply updates if there are any
apt-get update && apt-get upgrade
Now insall the NFS server and related packages
apt-get install nfs-kernel-server nfs-common portmap
Next portmap need to be configured
dpkg-reconfigure portmap
Restart portmap service
/etc/init.d/portmap restart
Now define the NFS shares
 nano /etc/exports
Add the folders at the end of exports
/share *(rw,async)
Save the file and restart NFS Server
/etc/init.d/nfs-kernel-server restart
That is it, your new NFS server has been configured already. Enjoy it! Now its time to mount the NFS share(s) on clients On client you need to two packages so you can mount the shares, without these packages you will be welcome with errors. So
apt-get install portmap nfs-common
Restart both services (clients)
/etc/init.d/portmap restart
/etc/init.d/nfs-common restart
Now create the folder(s) where you want to mount the shares Add/mount NFS share manually
mount servername:/foldername /localfolder
Replace servername to the IP or host name of NFS server, replace foldername to the folder on NFS share located on NFS server, and replace localfolder to the local folder where you want to mount the NFS share Add/mount NFS share automatically
nano /etc/fstab
servername:/foldername /localfolder nfs rsize=8192,wsize=8192,timeo=14,intr
That is it !