we can use either of the below method to config tftp on ubuntu.
1. use tftp
1.1 install tftp and tftpd
sudo apt-get install tftpd tftp
1.2 modify /etc/inetd.conf, add your tftp server folder.
the below is a example. the red part is your tftp server folder.
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /download/tftp-server
2. use tftp-hpa
2.1 install tftpd-hpa and tftp-hpa.
sudo apt-get install tftp-hpa tftpd-hpa
2.2 modify /etc/default/tftpd-hpa.
a. let no -> yes
b. add your own tftp server folder.
3. use openbsd-inetd
3.1 install openbsd-inetd
sudo apt-get install openbsd-inetd
3.2 modify /etc/inetd.conf, add your tftp server folder.
the below is a example, the red part is your tftp server folder.
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /download/tftp-server
3.3 sudo /etc/init.d/openbsd-inetd restart
阅读(702) | 评论(0) | 转发(0) |