Installing NFS on Xenial

A quick crib on how to install and start an NFS server on Xenial

Install the packages

Update package repo, of course, then install the server

apt update
apt upgrade
apt install nfs-kernel-server

Set up Directory to be Exported

I will use an ISO archive as an example

mkdir /ISOs
chmod 777 ISOs

Set up /etc/exports

cat > /etc/exports << EOF
/ISOs         ,sync,no_subtree_check)
/ISOs         ,sync,no_subtree_check)

Start Daemon

systemctl start nfs-kernel-server.service

Be Sure it Starts on Boot

systemctl enable nfs-kernel-server
Last modified 3 years ago Last modified on Nov 20, 2016, 4:33:33 AM