All Boards TFTP on Ubuntu

Document created by jesseg Employee on Jul 30, 2012Last modified by Jodi Paul on May 16, 2013
Version 8Show Document
  • View in full screen mode

For Debian and Based Systems Users:


To install tftpboot service first install tftp server:

$sudo apt-get install tftpd

Choose an Internet super server to install

 

Install xinetd OR inetd. Notice openbsd-inetd is alread installed on Ubuntu.

 

INET

  • Open a terminal as root
  • If inetd is not installed, install it typing

$sudo apt-get install openbsd-inetd

  • create tftpboot folder and set permissions:
  

$sudo mkdir /tftpboot $sudo chmod a+x /tftpboot

  • Edit tftp file
  

$sudo gedit /etc/inetd.conf

  • Add this line:

tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot

  • After restart the inetd server:
  

$ sudo /etc/init.d/openbsd-inetd restart


XINET

  • Open a terminal as root
  • If xinetd is not installed, install it typing:

$sudo apt-get install xinetd

  • create tftpboot folder and set permissions:

$sudo mkdir /tftpboot $sudo chmod a+x /tftpboot

  • Edit file tftp:
  

$sudo gedit /etc/xinetd.d/tftp

  • Add these lines
  

service tftp

{

  socket_type = dgram

  protocol = udp

  wait = yes

  user = root

  server = /usr/sbin/in.tftpd

  server_args = /tftpboot

  disable = no

  per_source = 100 2

  flags = IPv4

}


  • After restart the inetd server:

$ sudo /etc/init.d/xinetd restart


Attachments

    Outcomes