This file describe a basic config for NFS mount on a server/client.
Share a datas folder : /home/ubuntu/documents/datas
$ sudo apt-get update
$ sudo apt-get install language-pack-fr
$ sudo apt-get install nfs-kernel-server
$ sudo service nfs-kernel-server start$ vim /etc/exports# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/ubuntu/documents/datas client.myserver.com(rw,sync,subtree_check)$ sudo service nfs-kernel-server reload
$ sudo exportfs -av$ sudo apt-get update
$ sudo apt-get install language-pack-ft
$ sudo apt-get install nfs-common$ mkdir /home/ubuntu/mount1
$ sudo mount server.myserver.com:/home/ubuntu/documents/datas/ /home/ubuntu/mount1If you need to unmount
$ sudo umount mount1
This conf doesn’t works!
$ sudo apt-get install autofs
$ vim /etc/auto.master
$ vim /etc/auto.nfs
$ sudo service autofs restart$ df -hRémi Barbe (aka Remiii)