Linux Xubuntu 14.04 Trusty How-to Share Files Over Network with Nfs4 Easy Guide

February 25, 2014 | By thelinuxevangelist | Filed in: Tutorial.

Xubuntu File Sharing Over Network with Nfs4 Setup

The Tutorial Shows You Step-by-Step How-to SetUp Xubuntu 14.04 Trusty i386/amd64 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 14.04 Trusty.

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.

Xubuntu 14.04 Trusty How-to Share Files Over Network - Featured
  1. Open Terminal Window
    (Press “Enter” to Execute Commands)
    Linux Xubuntu 13.04 Open Terminal
  2. Server Side SetUp
    1. Install Required Packages
      sudo su
      apt-get update
      apt-get install nfs-kernel-server rpcbind nfs-common
    2. 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 Append:

        portmap: 192.168.1.

        Allowing IPs Range to be Accessed on Local 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. How-to Install Google-Chrome Browser on Xubuntu:

        Install Chrome for Xubuntu
      4. Configure NFS
        nano /etc/exports

        Append something Like:

    3. 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
    4. StartUp server File Sharing over Network Services
      /etc/init.d/nfs-kernel-server start
      /etc/init.d/rpcbind start
  3. Client Side SetUp
    1. Open a Terminal Window
      (Press “Enter” to Execute Commands)
    2. Install Required Packages
      sudo su;
      apt-get update
      apt-get install nfs-common rpcbind
    3. How to Mount the Sharing Directories on the Client

      NfsV4 Mount Command
  4. So After this SetUp a Portion of Your Choice on the Xubuntu 14.04 Trusty Nfs4 File Sharing Server will be Shared with the Enabled Ubuntu/Debian Clients over Network.

Tags: , , , , , , , , ,