Friday, January 8, 2010

NFS setup in ubuntu

NFS server configuration in Ubuntu
==========================

STEP 1:
Install packages
sudo apt-get install portmap nfs-kernel-server
STEP 2:
Edit /etc/exports
For example if you want to share your home folder
Eg: /home 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)
The above shares /home to all clients in the private network falling within the designated ip address range
STEP 3:
After editing the exports file,run
sudo exportfs -ra
STEP 4:
Then restart the services,
sudo portmap restart
sudo nfs-kernel-server restart

NIS Client set up
============

STEP 1:
Install the packages
Eg:sudo apt-get install portmap nfs-common
STEP 2:
You should try and mount it now.
Eg:sudo mount 192.168.1.50:/home /home/backup
In the above example 192.168.1.50 is the NFS Server Ip followed by th efolder that's been shared and then followed by the destination(ie the destination where you want to mount)

===##############======

No comments: