https://quidsup.net/tutorials/?p=nfs
https://www.htpcguides.com/configure-nfs-server-and-nfs-client-raspberry-pi/
Network File System (NFS) is a distributed file system protocol originally developed by Sun Microsystems in 1984,
allowing a user on a client computer to access files over a computer network much like local storage is accessed.
Configure NFS Server
Install NFS server components
sudo apt-get install nfs-common nfs-server -y
Create the nfs server shared folder, you can use an existing folder as well
sudo mkdir /var/nfs
give the mount point you just created liberal permissions.
sudo chmod -R 777 /var/nfs
sudo service nfs-kernel-server stop
sudo service nfs-kernel-server start
Open the NFS exports file where you configure the paths to share and their permissions
sudo nano /etc/exports
/var/nfs *(rw,sync,no_root_squash,subtree_check)
Tell NFS to read your newly created exports file
sudo exportfs
Configure NFS Client
sudo mount 192.168.180.180:/var/album /home/nishant/nishant/photo_frame/pics
sudo nano /etc/fstab
192.168.180.180:/var/album /home/nishant/nishant/photo_frame/pics nfs rw,sync,hard,intr 0 0
sudo nano /lib/systemd/system/mount-nfs.service
[Unit]
Description=Mount NFS folder
[Service]
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
ExecStart=sudo mount -a
Restart=always
RestartSec=10s
KillMode=process
TimeoutSec=infinity
[Install]
WantedBy=graphical.target
sudo systemctl daemon-reload
sudo systemctl enable mount-nfs.service