#!/bin/bash # NFS server for Raspbian # # Copyleft 2017 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # Usage: # # ./installer.sh NFS.sh () # # See installer.sh instructions for details # More at: https://ownyourbits.com # ACTIVE_=no DIR_=/media/USBdrive/ncdata/admin/files SUBNET_=192.168.1.0/24 USER_=www-data GROUP_=www-data DESCRIPTION="NFS network file system server (for Linux LAN)" install() { apt-get update apt-get install --no-install-recommends -y nfs-kernel-server systemctl disable nfs-kernel-server cat > /etc/systemd/system/nfs-common.services < /etc/systemd/system/rpcbind.service < /etc/exports <