$ sudo apt-get install tftp-hpa tftpd-hpa
edit the file /etc/default/tftpd-hpa as the root user, and edit the line look like this:
TFTP_DIRECTORY="/usr/lib/tftpboot" change the dir to /srv/tftp
TFTP_DIRECTORY="/srv/tftp" Create and modify permissions on the TFTP root directory:
$ sudo mkdir /srv/tftp
$ sudo chown -R $(whoami) /srv/tftp
Restart the TFTP Services:
$ sudo service tftpd-hpa restart
Install nfs:
$ sudo apt-get install nfs-kernel-server nfs-common
Create nfs folder: ( nfs-folder = targetfs )
$ mkdir <nfs-folder>
$ sudo chown nobody:nogroup <nfs-folder>
Edit the exports file and append to it the new setting:
$ sudo vim /etc/exports
Append the following lines:
<nfs-folder> *(rw,async,no_root_squash,no_subtree_check)
Update exports:
$ sudo exportfs -a
$ sudo /etc/init.d/nfs-kernel-server restart