set up nfs server on ArchLinux
The purpose of set up nfs server is to watch video stored on server through my android devices.
sudo pacman -S nfs-utils # donnot touch /etc/idmapd.confmkdir -p /srv/nfs4/z
add following lines into /etc/fstab:
UUID=986C96596C9631CC /mnt/z ntfs-3g defaults,nofail 0 2/mnt/z /srv/nfs4/z none bind,nofail 0 0
add this line into /etc/exports:
/srv/nfs4/z 192.168.0.0/24(async,rw,no_subtree_check,nohide,no_root_squash)
make sure change in /etc/exports to take effect:
sudo exportfs -ra
now enable and start the services:
sudo systemctl enable rpc-idmapdsudo systemctl start rpc-idmapd
sudo systemctl enable rpc-mountd
sudo systemctl start rpc-mountd