Nfs File Share Debian Stretch 9 Setup Easy Guide

September 6, 2018 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Nfs File Share Debian Stretch 9 Quick Start Guide

You are Welcome! The Tutorial Shows You Step-by-Step How to Setup Nfs File Share in Debian Stretch 9 GNU/Linux.

And with this SetUp You will be Able to Nfs Sharing Files on Debian Stretch 9 to Local and Remote Clients.

Furthermore, this same Debian File Sharing Setup will Works for a Network Composed of Debian/Ubuntu Based Systems.

Finally, “rpcbind” Package have Replaced the Old “portmap” and “nfs-kernel-server” Service the Precedent “nfs-common” one.

Nfs File Share Debian Stretch 9 Setup Easy Guide - Featured
  1. Server Side SetUp.

    1. Open a Shell Session
      (Press “Enter” to Execute Commands)

      Nfs File Share Debian Stretch 9 Setup Easy Guide - Open Terminal
    2. 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
    3. Again

      Make Configuration.

      1. Configure rpcbind.

        nano /etc/default/rpcbind



        Ctrl+x to Save & Exit from nano Editor.


        nano /etc/hosts.allow

        For Example on a Local Network:

        portmap: Stretch 92.168.1.

        To Find your Machine IP Address do:


        In this Example Allow Stretch to be Accessed on Network.

      2. Configure idmapd.

        nano /etc/default/nfs-common




        nano /etc/idmapd.conf

        The Content should Correspond to:

        						Verbosity = 0
        						Pipefs-Directory = /var/lib/nfs/rpc_pipefs
        						Domain = localdomain
        						Nobody-User = nobody
        						Nobody-Group = nogroup
      3. Configure NFS.

        nano /etc/exports

        Append something Like:

        /exports  Stretch,no_root_squash,no_subtree_check,crossmnt,fsid=0)
    4. 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
    5. StartUp server File Sharing over Network Services

      /etc/init.d/nfs-kernel-server start
      /etc/init.d/rpcbind start
  2. Client Side SetUp.

    1. Open a Terminal Window.

    2. And Install Required Packages.

      sudo apt update
      sudo apt install nfs-common rpcbind
    3. How to Mount the Sharing Directories on the Client

      NfsV4 Mount Command
  3. So After this SetUp a Portion of Your Choice on the Ubuntu Stretch 9 File Sharing Server will be Shared with the Enabled Debian/Debian Based Clients on Network.

Tags: , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress