Ubuntu 10.04 TFTP settings

Source: Internet
Author: User
1. in Ubuntu10.04, the TFTP software tftp-hpa is the client, and tftpd-hpa is the server sudoaptitudeinstalltftp-hpatftpd-hpa2. configure the TFTP server sudogedit/etc/default/tftpd-hpa to change the original content to: #/etc/default/tftpd-hpaTFTP_USERNAME = "tftp"

1. Install TFTP under Ubuntu10.04

Tftp-hpa is the client and tftpd-hpa is the server

Sudo aptitude install tftp-hpa tftpd-hpa

2. Configure the TFTP Server

Sudo gedit/etc/default/tftpd-hpa

Change the original content:

#/Etc/default/tftpd-hpa
TFTP_USERNAME = "tftp"
# TFTP_DIRECTORY = "/var/lib/tftpboot"
TFTP_ADDRESS = "0.0.0.0: 69"
# TFTP_OPTIONS = "-- secure"

# For the Server Directory, set the permission to 777 and chomd 777

# Change this directory to your own TFTP root directory ~~~

TFTP_DIRECTORY = "/home/stone/tmp"

TFTP_OPTIONS = "-l-c-s"

3. Restart the TFTP service.

Sudo service tftpd-hpa restart

4. Test

Cd ~ /Tftpboot echo "hello tftp service"> a.txt

Echo "hello tftp service, put to tftp serive"> B .txt

Tftp localhost

Get a.txt

Put B .txt

Get is to get the file, put is to upload the file to the TFTP server.

Related Article

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.