Install required packages
apt-get install xinetd tftpd tftp
Create /etc/xinetd.d/tftp and put this contents
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
wait = yes
}
Create a folder /tftpboot for tftp base directory
Restart the xinetd service.
$ sudo /etc/init.d/xinetd stop
$ sudo /etc/init.d/xinetd start
Original source from
http://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/
add "-s" to give write access
ReplyDeleteserver_args = -s /tftpboot