NFS setup post
In this article, there are 2 linux machines: desktop
& laptop
.
The desktop machine can be accessed via @IP or using desktop.local
alias.
Host
Install
sudo apt install nfs-kernel-server
Configure clients access to host share in /etc/exports
:
/home 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)
restart service:
service nfs-kernel-server restart
Client
Install
sudo apt install nfs-common
Create a directory
sudo mkdir -p /mnt/nfs_share_desktop
sudo chown $USER: /mnt/nfs_share_desktop/
Mount
sudo mount desktop.local:/home/ben/ /mnt/nfs_share_desktop/
or via /etc/fstab
:
desktop.local:/home /mnt/nfs_share_desktop nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
finally:
sudo mount -a
Categories: linux