User manual
Appendix IV TFTP Server Build
1, installation client
$>sudo apt-get install tftp-hpa
$>sudo apt-get install tftpd-hpa
2, installation inet
$>sudo apt-get install xinetd
$>sudo apt-get install netkit-inetd
3, server configuration
First of all, in the root directory, and build a tftpboot attribute to any user both:
$>cd /
$>sudo mkdir tftpboot
$>sudo chmod 777 tftpboot
Secondly, in the/etc/inetd conf. Add:
$>sudo vi /etc/inetd.conf //Put the following statement added this file
tftpd dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd –s /tftpboot
And then, inetd reload process:
$>sudo /etc/init.d/inetd reload
Finally, into the directory/etc/xinetd.d/, and in which the new document, the content of the TFTP
designated to join TFTP file:
$>cd /etc/xinetd.d/ // Into the directory /etc/xinetd.d/
$>sudo touch tftp //New document tftp
$>sudo vi tftp
//Edit documents TFTP, Put the following content to join TFTP file
service tftp{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 1002
}
4, restart service:
$>sudo /etc/init.d/xinetd restart
$>sudo in.tftpd -l /tftpboot
5, test server
Test in/tftpboot folder, establish a new file
$>touch abc
Entering another folder
$>tftp 192.168.1.15 (192.168.1.15 For the machine IP)
$>tftp> get abc
If you can download instructions server has been installed success.