You can find the NFS howto here, http://nfs.sourceforge.net/nfs-howto/. It is also mirrored on TLDP.

Limitations

Client setup

Mounting is very simple:

sudo mount 10.20.30.15:/home/chroot mnt/chroot

Server

Everything you need is in /etc/exports. Just do this:

/home/chroot/home    10.20.30.1(option1,option2,...)

Access must be given on a per-machine basis. There are more advanced methods for specifying machines, like network and netmask

Options can be found in man exports. Some basic ones are

There is a userspace and kernelspace NFS server. It didn't look like the userspace one is maintained anymore, so I used the kernel one, and the info above is specific to the kernel server. Package is nfs-kernel-server (as opposed to nfs-user-server).

If you want to do a server, read about the security stuff somewhere. From reading about it, I have a pretty good idea why it is called "nightmare filesystem"

Change the port the server is running on:

DebianNotes/NFS (last edited 2010-12-17 08:39:16 by RichardDarst)