ubuntu server There are two ways to establish tftp

1, a first embodiment is

TFTP is a TCP / IP protocol suite for a simple file transfer protocol between the client and the server, the following explains how to install the configuration ubuntu tftp:

$ sudo apt-get install tftp-hpa tftpd-hpa

$ mkdir ~/tftpboot

$ chmod 777 ~/tftpboot/

$ sudo gedit /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/zifeng/tftpboot" //tftpboot绝对路径
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
$ service tftpd-hpa restart

 

PS: There are some uboot mirrored programmer will use tftp protocol, such as openwrt of uboot
----------------
Disclaimer: This article is CSDN blogger "Internet of Things Lab" in original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/fengfeng0328/article/details/83353007

 

2, the second way is

Make a record, to facilitate their later viewing. To help the novice to children's shoes and that is no better thing.

    TFTP is based on a simple protocol for file transfer between the client and the server UDP protocol implementation for little cost, less complex applications. TFTP file transfer protocol specifically designed for the small, can only get files from the server, or write files to the server, can not list directories, can not be certified.

Set up a TFTP server

    Ubuntu open terminal, first enter the command: "sudo apt-get install xinetd" install xinetd, xinetd after the installation is complete, and the next mounting the tftpd tftp, enter the command: "sudo apt-get install tftp tftpd".

    Then create TFTP configuration file, use the command: "vi /etc/xinetd.d/tftp" create documents, the following code is written to the file (the format must be strictly aligned):

 

Which, server_args set / var / tftpboot directory is a directory of tftp server, TFTP client is to obtain files from this directory. Use the command "mkdir / var / tftpboot" establish a TFTP server. Then set the / var / tftpboot access to 777.

Finally, restart xinetd service. Enter the command: "sudo /etc/init.d/xinetd restart" here, TFTP server build better.
----------------
Disclaimer: This article is "Naogua Zi little finger" CSDN bloggers original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/zengxiaohua123/article/details/80614950

Guess you like

Origin www.cnblogs.com/eastgeneral/p/11785155.html