All Boards TFTP on Ubuntu

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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


标记 (2)
无评分
版本历史
最后更新:
‎07-30-2012 02:20 PM
更新人: