TFTP server configuration in Ubuntu 10.04

Source: Internet
Author: User

After Ubuntu is upgraded to version 10.04, the original TFTP configuration is no longer applicable, and the TFTP server of this version has become more powerful. The specific features are not described here. For more information, see related documents. Here we mainly record how to configure TFTP in 10.04. The detailed process is as follows:

 

1 install TFTP-HPA and tftpd-HPA


Sudo apt-Get install TFTP-HPA tftpd-HPA

 

2. Configure the tftpd-HPA configuration file

After installing the above two files, you must modify the tftpd-HPA configuration file. The configuration file is/etc/default/tftpd-hPa.

Open the configuration file: sudo Vim/etc/default/tftpd-HPA

Modify to the following:

 

#/Etc/default/tftpd-HPA

Tftp_username = "TFTP"

Tftp_directory = "/home/CPC/tftpboot" // here is your tftpd-HPA service directory. I create tftpboot as the server directory under the user's CPC directory

Tftp_address = "0.0.0.0: 69"

Tftp_options = "-l-C-s" // here is the option

 

 

3. Start the TFTP service

Run sudo service tftpd-HPA restart

 

 

4. test whether the TFTP configuration is successful or not.

CD/home/CPC/tftpboot

Touch aa.txt bb.txt // put two files on the server

 

 

CD/home

TFTP localhost // enter the FTP server

Get aa.txt bb.txt // download the file from ftp

 

View the files aa.txt bb.txt in the/homedirectory. If yes, the files will succeed. Or you can perform the following test:

 

 

Write a file hello. c In the/home directory first.

Log on to the TFTP server (according to the above method), and then set hello. c upload, that is, put hello. c. Go to the home directory/home/CPC/tftpboot where TFTP is located and check whether the file hello is available. c exists. If yes, the operation is successful.

 

 

 

 

 

 

 

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.