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)
%3CLINGO-SUB%20id%3D%22lingo-sub-1101855%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAll%20Boards%20TFTP%20on%20Ubuntu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1101855%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-380522614%22%20id%3D%22toc-hId-1297693392%22%3E%3CSPAN%20style%3D%22font-size%3A%2020px%3B%20line-height%3A%201.5em%3B%22%3EFor%20Debian%20and%20Based%20Systems%20Users%3A%3C%2FSPAN%3E%3C%2FH1%3E%3CH2%20id%3D%22toc-hId-1071084088%22%20id%3D%22toc-hId-1988254866%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3ETo%20install%20tftpboot%20service%20first%20install%20tftp%20server%3A%3C%2FP%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%3CP%3E%24sudo%20apt-get%20install%20tftpd%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EChoose%20an%20Internet%20super%20server%20to%20install%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ffdddd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3EInstall%20xinetd%20OR%20inetd.%20Notice%20openbsd-inetd%20is%20alread%20installed%20on%20Ubuntu.%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1761645562%22%20id%3D%22toc-hId--1616150956%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EINET%3C%2FSPAN%3E%3C%2FH3%3E%3CUL%3E%3CLI%3EOpen%20a%20terminal%20as%20root%3C%2FLI%3E%3CLI%3EIf%20inetd%20is%20not%20installed%2C%20install%20it%20typing%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%3CP%3E%24sudo%20apt-get%20install%20openbsd-inetd%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3Ecreate%20tftpboot%20folder%20and%20set%20permissions%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%26nbsp%3B%26nbsp%3B%20%3CP%3E%24sudo%20mkdir%20%2Ftftpboot%20%24sudo%20chmod%20a%2Bx%20%2Ftftpboot%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3EEdit%20tftp%20file%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%26nbsp%3B%26nbsp%3B%20%3CP%3E%24sudo%20gedit%20%2Fetc%2Finetd.conf%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3EAdd%20this%20line%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%3CP%3Etftp%20dgram%20udp%20wait%20nobody%20%2Fusr%2Fsbin%2Ftcpd%20%2Fusr%2Fsbin%2Fin.tftpd%20%2Ftftpboot%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3EAfter%20restart%20the%20inetd%20server%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%26nbsp%3B%26nbsp%3B%20%3CP%3E%24%20sudo%20%2Fetc%2Finit.d%2Fopenbsd-inetd%20restart%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CSPAN%20class%3D%22editsection%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22mw-headline%22%20style%3D%22font-size%3A%2012pt%3B%22%3EXINET%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EOpen%20a%20terminal%20as%20root%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3EIf%20xinetd%20is%20not%20installed%2C%20install%20it%20typing%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%20%3CP%3E%24sudo%20apt-get%20install%20xinetd%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3Ecreate%20tftpboot%20folder%20and%20set%20permissions%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%3CP%3E%24sudo%20mkdir%20%2Ftftpboot%20%24sudo%20chmod%20a%2Bx%20%2Ftftpboot%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3EEdit%20file%20tftp%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%26nbsp%3B%26nbsp%3B%20%3CP%3E%24sudo%20gedit%20%2Fetc%2Fxinetd.d%2Ftftp%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CUL%3E%3CLI%3EAdd%20these%20lines%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%26nbsp%3B%26nbsp%3B%20%3CP%3Eservice%20tftp%3C%2FP%3E%3CP%3E%7B%3C%2FP%3E%3CP%3E%26nbsp%3B%20socket_type%20%3D%20dgram%3C%2FP%3E%3CP%3E%26nbsp%3B%20protocol%20%3D%20udp%3C%2FP%3E%3CP%3E%26nbsp%3B%20wait%20%3D%20yes%3C%2FP%3E%3CP%3E%26nbsp%3B%20user%20%3D%20root%3C%2FP%3E%3CP%3E%26nbsp%3B%20server%20%3D%20%2Fusr%2Fsbin%2Fin.tftpd%3C%2FP%3E%3CP%3E%26nbsp%3B%20server_args%20%3D%20%2Ftftpboot%3C%2FP%3E%3CP%3E%26nbsp%3B%20disable%20%3D%20no%3C%2FP%3E%3CP%3E%26nbsp%3B%20per_source%20%3D%20100%202%3C%2FP%3E%3CP%3E%26nbsp%3B%20flags%20%3D%20IPv4%3C%2FP%3E%3CP%3E%7D%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3EAfter%20restart%20the%20inetd%20server%3A%3C%2FLI%3E%3C%2FUL%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%20%3CP%3E%24%20sudo%20%2Fetc%2Finit.d%2Fxinetd%20restart%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎07-30-2012 02:20 PM
Updated by: