[Linux] Setup NFS shared folder on Ubuntu server

1. On server
S1. Setup NFS Kernel server
sudo apt-get install nfs-kernel-server 
S2. Define shared folder
sudo nano /etc/exports
Add 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-common
S2. Mount to NFS server
sudo mount example.hostname.com:/ubuntu /local/ubuntu
S3. Mount after start:
sudo nano /etc/fstab
Add these line:
example.hostname.com:/ubuntu /local/ubuntu nfs rsize=8192,wsize=8192,timeo=14,intr