How To Install nfs client on Debian 12
Overview
This explains how to install the nfs client on a debian 12 machine so you can mount nfs shares
Dependencies
sudo apt install nfs-common -ySet the domain name
sudo vim /etc/idmapd.conf
# line 5 : uncomment and change to your domain name
Domain = weepynet.comAdd nfs mount
Create a place to mount this, and set the permissions so it can’t be written to unless the mount is active
sudo mkdir /srv/nas02
sudo chmod 000 /srv/nas02
sudo chattr +i /srv/nas02Now, add the mount to fstab so the mount is active automatically with system boot
sudo vim /etc/fstab
# Add this line to the bottom
192.168.76.8:/mnt/media /srv/nas02 nfs rw,hard,rsize=8192,wsize=8192,proto=tcp 0 0Now, mount the fileystem and verify it has been mounted
sudo mount -a
df -H -x tmpfs
Filesystem Size Used Avail Use% Mounted on
udev 17G 0 17G 0% /dev
/dev/mapper/storage-root 118G 23G 90G 21% /
/dev/mapper/storage-boot 989M 111M 810M 13% /boot
/dev/mapper/storage-log 21G 44M 20G 1% /var/log
192.168.76.8:/mnt/media 48T 25T 24T 52% /srv/nas02