The TFTP protocol is a simple file transfer protocol based on UDP protocol and does not have file management or user control functions. TFTP is divided into two types: server-side programs and client programs. The TFTP server and client are usually configured on the host. For more information, see http://www.linuxidc.com/linux/2012-08/67933.htmtftpserver configuration in Ubuntu: http://www.linuxidc.com/linux/2012-
The TFTP protocol is a simple file transfer protocol based on UDP protocol and does not have file management or user control functions. TFTP is divided into two types: server-side programs and client programs. The TFTP server and client are usually configured on the host.
Related reading:
Tftp service build http://www.linuxidc.com/Linux/2012-08/67933.htm under Ubuntu
Http://www.linuxidc.com/Linux/2012-07/64785.htm for TFTP Server Configuration
Ubuntu Linux configuration TFTP download server http://www.linuxidc.com/Linux/2010-12/30394.htm
Ubuntu 11.10 configure tftp Server http://www.linuxidc.com/Linux/2012-05/60808.htm
The default Ubuntu system does not contain the TFTP server and client. You can use the command line to download and install it as follows:
(1) install the client.
Root @ www.linuxidc.com :~ # Apt-get install tftp
(2) install the server.
Root @ www.linuxidc.com :~ # Apt-get install tftpd
(3) install inetd.
Root @ www.linuxidc.com :~ # Apt-get install openbsd-inetd
Inetd is a daemon that monitors network requests and calls corresponding service processes according to network requests.
(4) Create a New tftpboot directory under the "/" Directory (system root directory) and change the attribute to 777. This directory stores the files transmitted by tftp (including uploaded and downloaded files)
(5) add it in/etc/inetd. conf.
Tftp dgram udp wait root/usr/sbin/in. tftpd/usr/sbin/in. tfptd-s/tftpboot
Inetd. conf is the configuration file of inetd. The inetd. conf file tells inetd which network ports are listened for and which service is started for each port.
(6) Reload the inetd process.
/Etc/init. d/openbsd-inetd reload
(7) disable the firewall.
Ufw disable
(8) Test the TFTP server.
■ Download files from the server:
1. log on to the server: tftp 127.0.0.1
2. get the file from the server: get command
■ Upload files to the server:
When uploading a file, you must note that there must be a file under/tftpboot with the same name as the file you uploaded. The file can be a null file, but the file must have the readable and writable permissions, otherwise, the error "Errorcode 2: Access violation" appears.
Before uploading a file, create an empty file with the same file name and modify the readable and writable permissions.
After uploading the file, you can see that the kk file contains new content, that is, the file is overwritten.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
Link: Http://www.linuxidc.com/Linux/2014-04/100144.htm