[Linux] Setup NFS shared folder on Ubuntu server
1. On server
S1. Setup NFS Kernel server
2. On client
S1. Setup NFS common
S1. Setup NFS Kernel server
sudo apt-get install nfs-kernel-serverS2. Define shared folder
sudo nano /etc/exportsAdd these line
/data *(rw,sync,no_root_squash)S3. Restart NFS Kernel server
sudo /etc/init.d/nfs-kernel-server start
2. On client
S1. Setup NFS common
sudo apt-get install nfs-commonS2. Mount to NFS server
sudo mount example.hostname.com:/ubuntu /local/ubuntuS3. Mount after start:
sudo nano /etc/fstabAdd these line:
example.hostname.com:/ubuntu /local/ubuntu nfs rsize=8192,wsize=8192,timeo=14,intr