Setting up an NFS server
NFS is a distributed filesystem used to share files over a network. To show you how it works, we will set up the NFS server on one of our machines on the network. We will use Ubuntu 22.04.2 LTS as the base for the NFS server. For more in-depth theoretical information about NFS, please refer to Chapter 7, Networking with Linux.
The NFS filesystem type is supported by any Linux and/or Unix environment and also by Windows, but with some limitations. For mostly-Windows client environments, we recommend using the Samba/Common Internet File System (CIFS) protocol instead. Also, for those of you concerned about privacy and security, please keep in mind that the NFS protocol is not encrypted, thus any transfer of data is not protected by default.
Installing and configuring the NFS server
On our network, we will use an Ubuntu machine as a server and we will show you how to access the files from another Linux client. First, let’s install and configure...