Sharing files with NFS
As mentioned earlier, NFS is another method of sharing files on a Linux machine. NFS is a very worthy choice, especially if all your computers are running on Linux. If you have a mixed environment, Samba would be the preferred choice. To get started, you'll need to install the nfs-kernel-server
package. You can do this via the following command:
sudo apt-get install nfs-kernel-server
Once it is installed, you're ready to configure NFS. However, unlike Samba, we'll need to use shell commands in order to get NFS going. The configuration file responsible for NFS shares in Linux is the /etc/exports
file, which we'll need to edit by opening it using the following command line:
sudo nano /etc/exports
To share a folder on your system, enter a line similar to the following one at the end of the file:
/home/jdoe/MyShare 192.168.1.0/255.255.255.0(rw,sync,no_subtree_check)
Now, we'll walk through that line so that you'll be able to deduce how to translate...