1. install client tftp, server side tftpd, openbsd-inetd: sudoapt-getinstalltftptftpdopenbsd-inetd2. configuration: sudovim/etc/inetd. conf in inetd. add the following line to the conf file: tftpdgramudpwaitnobody/usr/sbin/tcpd/usr/sbin/in. t
1. Install the client tftp, server tftpd, and openbsd-inetd:
Sudo apt-get install tftp tftpd openbsd-inetd
2. Configuration:
Sudo vim/etc/inetd. conf
Add the following line to the inetd. conf file:
Tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd ~ /Work/tftpboot
3. Restart the configuration file:
Sudo/etc/init. d/openbsd-inetd restart
4. test:
Enter tftp 127.0.0.1 on the terminal
For example, if the tftpbootdirectory contains a file 1.txt, the file will be downloaded to the current directory when you enter get 1.txt. (The o permission of the downloaded file must be added with r; otherwise, other users cannot download the file)
Note: by default, files cannot be uploaded in Ubuntu. To upload a file, create a file with the same name as the file to be uploaded in the tftpboot directory, change the permission to 777, and enter put file.
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
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2