Skip to content


How to install nfs clients and server on ubuntu dapper

***nfs server
sudo apt-get install nfs-kernel-server nfs-common portmap
When configuring portmap do =not= bind loopback. If you do you can either edit /etc/default/portmap by hand or run:
sudo dpkg-reconfigure portmap
sudo /etc/init.d/portmap restart
Editing /etc/exports
the /etc/exports file is used for creating a share on the NFS server
invoke your favorite text editor or
sudo vi /etc/exports
Here are some quick examples of what you could add to your /etc/exports
For Full Read Write Permissions allowing any computer from 192.168.1.1 through 192.168.1.255
/share 192.168.1.1/24(rw,no_root_squash,async)
sudo /etc/init.d/nfs-kernel-server restart
Also after making changes to /etc/exports in a terminal you must type
sudo exportfs -a
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart

***nfs client
sudo apt-get install portmap nfs-common
sudo mkdir /share
sudo gedit /etc/fstab
add:
hostname:/share /share nfs rsize=8192,wsize=8192,timeo=14,intr
Save the file
sudo mount -a
The directories should be available immediately and after reboot.

Posted in Linux.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.