Summarize:

If you need to share files with Windows or Mac computers, you will be much more successful using Samba. When sharing files with NFS, there are two side: the server and the clients. The server is the computer that is actually storing the files, while the clients are the computers that are accessing the shared folder by mounting the shared folder as a virtual drive. NFS will need to be configured on both the server and any client that wants to connect. This is the computer that will be hosting the shared files. The server computer will need to be turned on and logged in in order for clients to mount the shared folder. NFS requires using the terminal to install and configure both the server and client. sudo apt-get install nfs-kernel-server nfs-common portmap and press Enter. This will begin downloading and installing the NFS files on your computer. dpkg-reconfigure portmap. Select "No" from the menu that appears. This will enable other computers on the network to connect to your shared folder. sudo /etc/init.d/portmap restart to restart the portmap service. This will ensure that your changes take effect. This is an empty directory that will direct the clients to the actual shared directory. This will allow you to change the shared directory on your server later without having to make any changes to the clients. Type .mkdir -p /export/dummyname and press Enter. This will create a directory named dummyname that the clients will see. This will open the /etc/fstab file and allow you to automatically mount the shared drive whenever the server boots up. sharedpath dummypath none bind 0 0 to the end of the file. Replace sharedpath with the location of the shared drive, and replace dummypath with the location of the dummy directory you created earlier. For example, to share the /dev/sdb drive with the clients using the dummy directory created earlier, you would type /dev/sdb /export/Shared none bind 0 0. Save the changes to the file. /etc/exports file. You will need to add your dummy directory as well as the IPs that are allowed to access it to this file. Use the following format to share with all the IP addresses on your local network: /export/dummyname 192.168.1.1/24(rw,no_root_squash,async). sudo /etc/init.d/nfs-kernel-server restart command to restart the NFS server.
Use NFS (Network File System) to share files between Linux computers on a local network. Understand how NFS works. Open the terminal on the server computer. Type . After installation, type . Type . Make a dummy directory that will be used to share the data. Type pico /etc/fstab and press Enter. Add . Open the . Use the .