Linux: Setup TFTP Server on CentOS

The below steps will allow you to set up a TFTP server on Linux but specifically on a CentOS server. All you need to do is install a couple files with yum, enable the server, and restart xinetd.

  1. Install TFTP Server: Use the below syntax to install the TFTP server on CentOS.
  2. bash

    1. [root@centos-server ~]#yum install tftp-server

  3. Install Xinetd: The TFTP server will run via xinetd so you need to make sure xinetd is installed using the bellow command.
  4. bash

    1. [root@centos-server ~]#yum install xinetd
  5. Enable TFTP and Xinetd: Use chkconfig to ensure that xinetd and tftp starts on reboot.
  6. bash

    1. [root@centos-server ~]#chkconfig tftp on
    2. [root@centos-server ~]#chkconfig xinetd on
  7. Modify TFTPBOOT Permissions: Use the below syntax to modify the permissions of the /tftpboot directory to allow tftp transfers to and from this directory. The /tftpboot directory is the default directory where files are transfered to and from using TFTP.
  8. bash

    1. [root@centos-server ~]#chmod 777 /tftpboot
  9. Example TFTP Command: The below is an example of use of the TFTP command.
  10. bash

    1. [root@centos-server ~]#tftp -v -c put file-example.txt

    The normal computer user is probably not going to find TFTP very useful but techies will be able to find many uses. Typically technical people will run across TFTP when upgrading the firmware on some sort of network device. Please post comments if you have any TFTP questions.

Linux Administration: A Beginner’s Guide, Fifth Edition (Paperback)

List Price: $39.99
New From: $15.93 USD In Stock
Used from: $2.87 USD In Stock