Ubuntu 10.04 TFTP Server SETUP

Source: Internet
Author: User

1. Install
Sudo apt-Get install tftpd-hpa tftp-HPA

2. Configuration
Sudo gedit/etc/default/tftpd-HPA


#/Etc/default/tftpd-HPA

Tftp_username = "TFTP"

Tftp_directory = "/opt/tftpboot" // enter your TFTP service directory

Tftp_address = "0.0.0.0: 69"

Tftp_options = "-l-C-s"

Option reference

Options

-L

Run the server in standalone (Listen) mode, rather than run from inetd. in listen mode, the-T option is ignored, and the-A option can be used to specify a specific local address or port to listen.

-A [address] [: Port]

Specify a specific address and port to listen to when called with the-L option. the default is to listen to the TFTP port specified in/etc/services on all local addresses. IP address and port of listen

-C

Allow new files to be created. by default, tftpd will only allow upload of files that already exist. files are created with default permissions allowing anyone to read or write them, unless the-P or-u options are specified.

-S

(Decide the tftp root directory) Change root directory on startup. this means the remote host does not need to pass along the directory as part of the transfer, and may add security. when-S is specified, exactly one directory shocould be specified on the command line. the use of this option is recommended for security as well as compatibility with some boot ROMs which cannot be easily made to include a directory name in its request.

Restart OK
Note: For versions earlier than 10.04, use the following Configuration:

Run_daemon = "yes"

Options = "-l-C-S/tftpboot"

3. Start the service
Sudo service tftpd-HPA restart

4. Test
CD/opt/tftpboot

Touch tftp_down.txt

Echo I am an TFTP download test Doc! > Tftp_down.txt

Cd ~ /

TFTP localhost

Get test.txt

Likewise! Put a tftp_up file to test.

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.