All Boards TFTP on Ubuntu

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

All Boards TFTP on Ubuntu

All Boards TFTP on Ubuntu

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


Tags (2)
No ratings
Version history
Last update:
‎07-30-2012 02:20 PM
Updated by: