Saturday, April 20, 2013
NFS - Installation
NFS (Network File System) allows you to 'share' a directory located on one networked computer with other computers/devices on that network.
1. NFSv4 quick start
Install the required packages...
# apt-get install nfs-kernel-server
2. Configuration
You can configure the directories to be exported by adding them to the
/etc/exports file
/ubuntu *(ro,sync,no_root_squash)
/home/IT xx.xx.xx.xx/24(rw,sync,no_root_squash,no_subtree_check)
You can replace * with one of the hostname formats. Make the hostname declaration as specific as possible so unwanted systems cannot access the NFS mount.
3. sudo /etc/init.d/nfs-kernel-server start
4. NFSv4 client
Install the required packages...
# apt-get install nfs-common
5. Edit /etc/fstab
file-server.example.com:/ubuntu /media/ubuntu nfs rsize=8192,timeo=14,intr
file-server.example.com:/home/IT /media/IT nfs rsize=8192,timeo=14,intr
Labels:
Linux
No comments:
Post a Comment