Nfs File Share Zorin OS Quick Start Guide
You are Welcome! The Tutorial Shows You Step-by-Step How to Setup Nfs File Share in Zorin OS GNU/Linux.
And with this SetUp You will be Able to Nfs Sharing Files on Zorin OS to Local and Remote Clients.
Furthermore, this same Zorin OS File Sharing Setup will Works for a Network Composed of Zorin OS/Ubuntu Based Systems.
Finally, “rpcbind” Package have Replaced the Old “portmap” and “nfs-kernel-server” Service the Precedent “nfs-common” one.

-
Server Side SetUp
-
Open a Terminal Shell emulator window
Ctrl+Alt+t on Desktop.
(Press “Enter” to Execute Commands) -
Install Required Packages
Login as SuperUser to Make Easier the Commands Execution:sudo su
Then Update the Repositories:
apt update
And Install Required Packages with:
apt install nfs-kernel-server rpcbind nfs-common
- Again
Make Configuration
-
Configure rpcbind
nano /etc/default/rpcbind
Append:
OPTIONS=""
Ctrl+x to Save & Exit from nano Editor.
Again:
nano /etc/hosts.allow
For Example on a Local Network:
portmap:2.168.1.
To Find your Machine IP Address do:
ifconfig
In this Example Allow2.168.1.0/24 to be Accessed on Network.
-
Configure idmapd
nano /etc/default/nfs-common
Inserts:
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 2.168.1.0/255.255.255.0(rw,no_root_squash,no_subtree_check,crossmnt,fsid=0)
-
-
Now Make and Bind the Sharing Directories
mkdir -p /exports/home
Then to Bind Your home to /exports/home do:
cd /exports
mount --bind /home ./home
To have this 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
-
-
Client Side SetUp
-
Open a Terminal Window
-
And Install Required Packages
sudo apt update
sudo apt install nfs-common rpcbind
-
How to Mount the Sharing Directories on the Client
-
So After this SetUp a Portion of Your Choice on the Ubuntu File Sharing Server will be Shared with the Enabled Ubuntu/Debian Based Clients on Network.
Tags: File Share Zorin OS, gnu/linux, Linux, Linux Tutorial, Mount Nfs Zorin OS, Nfs File Share Zorin OS, Nfs Zorin OS, Zorin OS, Zorin OS linux