This is a short tutorial on how to setup NFS file sharing on Ubuntu (Server) and connect to it from Windows and Mac OS X. I am assuming you have a Linux server running a NFS server running on ip 192.168.2.1 and that the share is located at /home/username/NFS-Shared.
Linux (Ubuntu) – Server
- Install NFS support:
sudo apt-get install nfs-kernel-server nfs-common portmap - When you configuring portmap, do not bind the loopback!
- Edit the the exports file:
sudo nano /etc/exports - Change it to something like this (please note that I’m configuring it for Read Only access:
/home/username/NFS-Shared 192.168.2.1/24(ro,async,insecure,no_subtree_check) - Restart the NFS server:
sudo /etc/init.d/nfs-kernel-server restart - After changing the /etc/exports file you need to run:
sudo exportfs -a
If you want Read Write access, replace ro with rw.
Windows – Client
- Download and install the Dokan library the current version is DokanInstall_0.6.0.exe
- Download and install the Microsoft .NET Framework 4
- Download and install Neko Drive the current version is NekoDrive_0_9_0.7z
- After NekoDrive is installed, launch the application.
- Change the Target Connection ip address to your server IP (e.g. 192.168.2.1).
- (optional) Set version to V3
- Click on connect and it should connect to your server
- To mount the drive in windows, set the Device location and select a Disk name. Make sure Devices is set to the correct item (e.g. /home/username/NFS-Shared)
- Click on mount and the drive should show up in Windows Explorer
Mac OS X – Client
- Open up the Disk Utility
- Choose File > NFS Mounts…
- Click the small plus (+) icon at the botton
- Enter your NFS URL (IP + PATH), for example:
nfs://192.168.2.1/home/username/NFS-Shared - Enter a Mount location (local mount), for example:
/Volumes/myNFS - (optional) Enable Mount as read-only if you’re only planning to stream music/video from it
- Click Verify, OK
- If everything went fine, you can open up Finder and browse to
/Volumes/myNFS
