Easy NFS sharing setup in Ubuntu, Linux Mint or Debian through simple NFS GUI (server and client)

NFS (Network File System) is a distributed file system protocol that allows sharing directories and files with others via a shared network. Use it to access files on a remote host just like local files.
Setting up NFS mount on Ubuntu or Linux Mint can be a very tedious task. Input Simple NFS GUI. This is a GUI tool that makes it easy to set up the computer as an NFS server or client that should run on Ubuntu, Linux Mint and Debian.The simple NFS GUI is responsible for the entire NFS shared configuration process. When setting up the NFS server, the tool will automatically set up /etc/exports Configure and pass to protect server security /etc/hosts.deny with /etc/hosts.allow. To set up the NFS client, the application will automatically create a directory for the mount point and add the NFS mount to /etc/fstab With file users Option, so it can be installed by non-root users. The application will also install the required NFS software packages for servers and clients.
I should note that although the Simple NFS GUI automatically adds network file system installation in the following locations: /etc/fstab, It will set it up so that it will not be mounted before accessing NFS. You can change the NFS line created by the simple NFS GUI from the following location: /etc/fstab And replace noauto versus auto It is installed automatically at startup, but this may cause the startup process to stop.
If you need to create multiple NFS shares, run the Simple NFS GUI setup process multiple times and specify a different NFS shared folder each time.

Install and use a simple NFS GUI to set up an NFS client or server

1. Simple NFS GUI requires Gambas 3- PPA needs to be added on Ubuntu and Linux Mint. Ubuntu, Linux Mint and flavor / derived classes: Simple NFS GUI requires Gambas3. I am not sure why, but Gambas 3 is not available in Ubuntu or Linux Mint, although it is available in Debian (although the version in Debian jessie is too old, the newer Debian versions all have the required Gambas 3 version). Gambas developers are maintaining a PPA to allow the latest Gambas 3 to be installed in Ubuntu, Linux Mint, and Lubuntu, Kubuntu, Xubuntu, Ubuntu MATE and other Ubuntu versions. Add PPA and update the software source:

sudo add-apt-repository ppa:gambas-team/gambas3
sudo apt update

2. Download and install Simple NFS GUIVisit this page, Scroll down to the bottom, and click the blue Download Now Button. Next, install the downloaded DEB software package. In Ubuntu, the Gambas 3 dependencies will be automatically extracted from the Gambas 3 PPA, which should be added to your system according to the instructions above3. Launch simple NFS GUI application
Do not run the Simple NFS GUI from the application menu because it does not work. This is because the application needs to be started as the root user, and its application menu items can run without administrator privileges.
If your system still has gksu (Ubuntu 16.04 and higher, Linux Mint 18.x and higher, Debian Stretch or sid-debports), you can use the following command to run the Simple NFS GUI:

gksu Simple_NFS_GUI

For Ubuntu 18.04 and higher, Linux Mint 19 and higher, or Debian buster, they do not gksu, You need to use sudo, like this:

sudo -H Simple_NFS_GUI

Now you can use a simple NFS GUI to set up your computer as an NFS client or server.

Set up the computer as an NFS client using a simple NFS GUI

To set up the computer as a network file system (NFS) client using the simple NFS GUI, start the application and select Client then click Next:Simple NFS GUI client setup

On the next screen, click ... Down button Select server to select the server IP address:Simple NFS GUI client setup

It may take some time to populate the IP list, because a software package may need to be installed on the system to detect the IP, and IP detection may also take some time to run.
After populating the server list, select the NFS shared server IP from the drop-down list. You also need to enter the full path of the server’s shared NFS folder and enter a name for this folder (the name only needs to contain letters).
This should look like this:Simple NFS GUI client setup

When finished, click Set this machine as a Client Button. The simple NFS GUI will ask you to recheck the data-if everything is OK, please press Yes The setup process is complete.
(If you want to add multiple folders, please re-run the process.)
Now, you need to restart the system. The NFS share should be displayed in the file manager, but it will not be mounted by default. Click it, as long as you can access the remote NFS shared server, it will be mounted.

Set up the computer as an NFS server using a simple NFS GUI

Select Server From the initial simple NFS GUI screen, then click Next:Simple NFS GUI server setup

On the second screen, click ... Down button Select the client Select the IP address of the NFS client. As I mentioned in the client section above, it may take some time to populate the IP list because it may be necessary to install a software package on the system to detect the IP and running the IP detection may take some time
After the client IP list is populated, select a client IP from the drop-down list. You also need to enter the full path of the shared NFS folder. The appearance after entering all required information is as follows:Simple NFS GUI server setup

Next, click Set this machine as Server Button. The simple NFS GUI will ask you to recheck the client IP and server folder path. If everything is OK, click Yes.
(If you want to allow multiple clients to access the NFS server, rerun this process for each client.)
Only one step left: restart the computer.
Credit: u / sisolutions from Reddit.

Source

Sidebar