Imagine you want to share all your music at home, avoiding annoying VoD servers. Here’s the trick:
Server: 192.168.0.11
Clients: 192.168.0.0/24 (this means: “everybody in this network”)
in the server:
apt-get install nfs-kernel-server- then edit /etc/exports
- add the line:
- /home/invitado/ 192.168.0.13(rw,no_root_squash)
exportfs -a
in the client(s):
192.168.0.11:/home/invitado /mnt/storage2 nfs nfsvers=3,intr,timeo=5 0 0
If you find weird RPC errors and are unable to mount NFS, edit /etc/default/portmap and comment the line OPTIONS=”", which makes portmap to listen locally.
If you are using nfs-user-server, avoid “nfsvers=3″ in the client conf.