Setting Up A Network File System (NFS)

by youcantoo


We are going to assume that you have a fully updated version of PCLinuxOS installed and updated.

In addition, you need the following files:





You can check your system to see if the NFS files are already installed.

Open a console window and enter the following command:

rpm -qa | grep nfs

If they are there, you should see something like this:

[dwmoar@localhost ~]$ rpm -qa | grep nfs





[dwmoar@localhost ~]$

If you have the files already  installed, good. If not open Synaptic and install the missing files.

Setting up NSF

Open PCC (PCLinuxOS Control Center).

Select "Network Sharing," and then select "Share Drives and Directories using NFS."

Now we want to add the directory(s) we want to share, and with whom we want to share with. So click on "ADD," and you should see a window like this:

Now add the directory that you are wanting to share. In my example, it is home/dwmoar/Pictures.

Now click ok and you should see something like this.

Now click "OK" again and you should be returned back to the main PCC screen.

Select "Network and Internet” and then under others select "Hosts definitions"

Now click on add. You should be greeted with the following dialog box.

We need to add the ip address of each and every machine that you wish to share files with. In my case, I want to share with my laptop, so I would enter the following information.

Enter your ip address and the alias name or domain of machine that you want to share information with. When you have entered the information, press OK. You will be returned to the Hosts Definitions screen. At the bottom of the list, you should see the new machine that you have added.

NOTE: the above step MUST BE done for each and every machine that you want to share information with.

When you have finished, add the machines you want, then press OK. You will then be back to the main PCC screen.

Now select "Local Disks" and then select "Share your hard disk partitions"

The screen will will show three options. We will use the default selection, "Allow all users." Click OK.

You will now see the “Share your hard disk partitions” screen. Again, we will select the default.

Once more, click OK. We will be returned to the main PCC screen.

Once again, click on "Network Sharing," and this time select "Access NFS shared drives and directories.” You then will see the “Access NFS shared drive and directories" screen. At this point, it will be empty.

Click on "Search servers" button. Be patient, as this might take a little time. When it has found all your NFS devices, it will display them, as in my example.

You can see more information on your NFS device by clicking on the name or the ip address.

You can specify where you want the NFS directory to be mounted on the local machine by clicking on the "Mount Point" button at the bottom of the window.

In my case, I am going to select the default directory of "/mnt/Pictures"

The NFS folder is not mounted yet. At this point, you must click the "Mount" button at the bottom of the screen. Note that the icon next to the mount point will change from a lightning bolt to a connected plug once mounted

Once everything is to your liking, press the "Done" button at the bottom of the screen. If you want the NFS to be mounted automatically each time you start your machine, you will need to make sure that you save the information to the fstab. Click "YES."

Once again, you will be returned to the main PCC screen. Now, click on the "Share drive and directories using NFS." If all goes well, you should see a dialog box saying "Starting the NFS-server," and after a few seconds, you should see something like this:

Congratulations! You should now have a NFS share working on your system.

As in my example the NFS share was set for the mount point "/mnt/Pictures". If I browse to the folder "/mnt/Pictures", I should see all my pictures[a].