Xubuntu File Sharing Over Network with Nfs4 Setup
You are Welcome! The Tutorial Shows You Step-by-Step How to SetUp Xubuntu 13.10 Saucy to Share Files Over Local or Internet Network with Nfs4 from a Server to Clients.
This same Xubuntu File Sharing Over Network SetUp will Works for a Network Composed from All Ubuntu/Debian Based Systems.
With this SetUp You will be Able to Sharing Files Over Network with Nfs4 on Xubuntu 13.10 Saucy.
The Practial Example Shows Up How to Share Your Home Directory Over the Local Network with Nfs4 Distributed File System Protocol.
The “rpcbind” Package have Replaced the Old “portmap” and “nfs-kernel-server” Service the Precedent “nfs-common” one.

- Open Terminal Window
(Press “Enter” to Execute Commands) - Server Side SetUp
- Install Required Packages
sudo su
apt-get update
apt-get install nfs-kernel-server rpcbind nfs-common
- Make Configuration
- Configure rpcbind
nano /etc/default/rpcbind
Append:
OPTIONS=””
Ctrl+x to Save & Exit from nano Editor.
Then:
nano /etc/hosts.allow
For Example on a Local Network Append:
portmap: 192.168.1.
Allowing 192.168.1.0/24 IPs Range to be Accessed on Local Network.
- Configure idmapd
nano /etc/default/nfs-common
Append:
NEED_IDMAPD=YES
Then:
nano /etc/idmapd.conf
The Content should Correspond to:
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup - Configure NFS
nano /etc/exports
Append something Like:
/exports 192.168.1.0/255.255.255.0(rw,no_root_squash,no_subtree_check,crossmnt,fsid=0)
- Configure rpcbind
- Make and Bind the Sharing Directories
For Example to Share the Entire /home Directory Over Network:
mkdir -p /exports/home
Then to Bind Your home to /exports/home do:
cd /exports
mount --bind /home ./home
To have this Same SetUp Loaded on Boot Edit fstab:
nano /etc/fstab
Appending like in Example:
/home /exports/home none bind
- StartUp server File Sharing over Network Services
/etc/init.d/nfs-kernel-server start
/etc/init.d/rpcbind start
- Install Required Packages
- Client Side SetUp
- Open a Terminal Window
(Press “Enter” to Execute Commands) - Install Required Packages
sudo su;
apt-get update
apt-get install nfs-common rpcbind
-
How to Mount the Sharing Directories on the Client
- Open a Terminal Window
So After this SetUp a Portion of Your Choice on the Xubuntu 13.10 Saucy Nfs4 File Sharing Server will be Shared with the Enabled Ubuntu/Debian Clients over Network.
Tags: Guide, How-to, Linux, nfs4 file sharing, Tutorial, Xubuntu, Xubuntu 13.10 Saucy, xubuntu file sharing, Xubuntu local file sharing, Xubuntu nfs4 file sharing