To install and configure an NFS (Network File System) server on Ubuntu Linux, follow these steps:
sudo apt-get update sudo apt-get install nfs-kernel-serverSourcewww:.lautturi.com
/srv/nfs
, run the following command:sudo mkdir -p /srv/nfs
nfsuser
user and the nfsgroup
group, run the following command:sudo chown nfsuser:nfsgroup /srv/nfs sudo chmod 775 /srv/nfs
/etc/exports
file to configure the NFS exports (shared directories). Add a line for each directory you want to share. For example, to share the /srv/nfs
directory with read and write access to the IP address 192.168.1.100
, add the following line to the /etc/exports
file:/srv/nfs 192.168.1.100(rw,sync,no_subtree_check)
sudo systemctl restart nfs-kernel-server
sudo apt-get update sudo apt-get install nfs-common
/mnt/nfs
, run the following command:sudo mkdir -p /