NFS
Install
$ sudo apt install nfs-kernel-server
Configure
Create a directory for NFS:
$ sudo mkdir /srv/nfs
Edit file /etc/exports to export the directory:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
+/srv/nfs *(rw,async,no_subtree_check,no_root_squash)
Apply the new config:
$ sudo exportfs -av
exporting *:/srv/nfs
Show the exported directories:
$ sudo exportfs -v
/srv/nfs <world>(async,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)
Usage
On a client, you need to install the NFS tools:
$ sudo apt install nfs-common
Then do mounting:
$ sudo mount las0:/srv/nfs /mnt