1. Install required packages
sudo apt update
sudo apt install nfs-common
2. Test if you can mount (optional)
sudo mount -t nfs4 <nfs server's IP>:<remote path> <local path to be mounted>
So in our example, we need to mount /media/nas
from nfs server 192.168.0.100
to local folder /mnt/nas
sudo mount -t nfs4 192.168.0.100:/media/nas /mnt/nas
3. Add mount entry to /etc/fstab
for permenant solution
Lets start editing the file /etc/fstab
and add the following line
...
192.168.0.100:/media/nas /mnt/nas nfs4 defaults,user,exec 0 0
4. Mount using the client
sudo mount -a
Setup a debian instance with a NFS server