Trying shared directory NFS PCs
In this article, we will discuss how to set up and run an NFS server on a PC and offer an NFS share. To start, we need to ensure that the NFS server is installed on the PC that will act as the server.
Install NFS server
On Ubuntu, open a terminal and run:
sudo apt-get install nfs-kernel-serverConfigure NFS share
After installing the NFS server, we need to create a directory that will be shared and configure it in the /etc/exports file:
/path (ro,sync,no_subtree_check) Start NFS server
Finally, start the NFS server and enable it to start automatically at boot:
sudo systemctl start nfs-kernel-server
sudo systemctl enable nfs-kernel-server- Install the NFS server on the PC that will act as the server.
- Create a directory that will be shared and configure it in the /etc/exports file.
- Start the NFS server and enable it to start automatically at boot.
References
- Book: Linux Network Administrator's Guide, Olaf Kirch, 4th Edition
- Article: How to Install NFS Server on Ubuntu 18.04 LTS
- Online Resource: How To Set Up an NFS Server on Ubuntu 18.04