Trivial File Transport Protocol or tftp is essentially a thinned down edition of ftp and is utilized to transfer files to network devices for firmware improves or network booting (PXE booting is one such instance).

As I've stated in other articles because of its steadiness and modest hardware requirements, a Linux server creates an ideal platform on which to run a tftp server.

Instructions:

* For this article we will be performing our setting up and configuration process within a terminal window via the command line interface (CLI). Additionally we are supposing that your Linux machine is a Red Hat or related (Fedora, CentOS) machine with a correctly configured Yum warehouse. If you have a diverse Linux sharing installed the only minor disparity will be how you find the tftp server software enclose and/or perhaps how you install it.

From your terminal assembly runs the following Yum command to install the tftp server software as follows:

yum install tftp-server –y


* The tftp-server package installs the tftpd service. This examine is stopped by default. To allow, run the following command:

chkconfig tftp on

Additionally the tftp-server package installs itself as a child service under xinetd. Therefore to organize any superior options, look in /etc/xinetd/tftp.


* By default, tftp uses the /tftpboot/ directory to serve up files. This directory wants world read and perform permissions and should approach installed with these permissions but just to be certain run:

chmod o+rx /tftpboot


* To run tftpd start up the xinetd service:

service xinetd start

If you would similar to have tftpd begin at bootup (not suggested due to tftpd's inherent insecurity) confirm xinetd is configured to begin on bootup:

chkconfig xinetd on


* Currently you should have a running tftp server so go advance your network device firmware or PXE boot your diskless workstations.