// Install NFS server on other machine
sudo apt-get update
sudo apt-get install nfs-kernel-server
Update the etc exports:
Update the below home directory path which you want to share.
sudo nano /etc/exports
/home/jobayeer/Desktop/shared *(rw,sync,no_subtree_check)
*Now update all exports and allow from all host for now: *
sudo exportfs -a
Edit allow hosts config like below:
sudo nano /etc/hosts.allow
ALL: ALL
Now restart the server:
sudo systemctl start nfs-kernel-server
*Use it on your own machine : *
sudo apt-get update
sudo apt-get install nfs-common
sudo mkdir /mnt/nfs_share
sudo mount 192.168.2.56:/home/jobayeer/Desktop/shared /mnt/nfs_share
Top comments (0)