Debian Linux tftp server configuration procedure Analysis

Source: Internet
Author: User

Although we have explained a lot about the settings of the tftp server, we have not explained much about the specific configurations of a system version. Here we will explain the configuration of the Debian Linux tftp server. My system environment is debian 5.0.

First, install the tftp client and server, because debian5.0 is not installed by default.

Sudo apt-get install tftp tftpd

Then, install xinetd, because openbsd-inetd is used by default, and tftp requires the support of the network management background program xinetd.

Sudo apt-get install xinetd

Debian Linux tftp server configuration inetd. conf

Delete some comments about tftp in/etc/inetd. conf:

 
 
  1. #: BOOT: TFTP service is provided primarily for booting. Most sites
  2.  
  3. # Run this only on machines acting as "boot servers ."
  4.  
  5. # Tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd/home/creater/image # Delete the note of this sentence

Here,/home/creater/image is the directory of the file to be downloaded.

Next, create a tftp file under/etc/xinetd. d:

 
 
  1. sudo vim /etc/xinetd.d/tftp 

Add the following content to Debian Linux tftp Server Configuration:

 
 
  1. Service tftp
  2.  
  3. {
  4.  
  5. Socket_type = dgram
  6.  
  7. Protocol = udp
  8.  
  9. Wait = yes
  10.  
  11. User = root
  12.  
  13. Server =/usr/sbin/in. tftpd
  14.  
  15. Server_args =-s/home/creater/image # Replace it with your directory. Pay attention to the permissions.
  16.  
  17. Disable = no
  18.  
  19. Per_source = 11
  20.  
  21. Cps = 1002
  22.  
  23. Flags = IPv4
  24.  
  25. }

Restart xinetd:

 
 
  1. sudo  /etc/init.d/xinetd  reload  
  2.  
  3. sudo /etc/init.d/xinetd   restart  

Test:

 
 
  1. Tftp localhost
  2.  
  3. Tftp> get u-boot.bin # A u-boot.bin at the beginning under the image
  4.  
  5. Received 97353 bytes in 0.1 seconds

By now, the configuration of the Debian Linux tftp server has been completed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.