Friday, January 29, 2016

Configure nfs server on ubuntu

-- on server --

1- install nfs server -- network file system
$ sudo apt-get install nfs-kernel-server

2- configure share directory (/myshare) to ip 192.168.56.230 on file  /etc/exports, add the following line
/myshare    192.168.56.230(rw,sync)

3- restart the nfs server service
$ sudo /etc/init.d/nfs-kernel-server restart

-- on client --
1- install nfs application
$ sudo apt-get install nfs-kernel-server

2- add the following line to /etc/fstab (note: nfs server ip 192.168.56.1)
192.168.56.1:/home/tun/iso /mnt nfs     rw,soft,timeo=600,addr=192.168.56.1 0 0

3- remount
$ sudo mount -a





No comments:

Post a Comment