Tuesday 21 April 2009

Configuring TFTP server in Ubuntu 8.10

1) install required packages - "sudo apt-get install tftpd tftp xinetd"

2) Create "sudo vim /etc/xinet.d/tftp" file and insert the following code:

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
#disable = yes // This needs to be commented
per_source = 11
cps = 100 2
}

3) Create a folder "sudo mkdir /tftpdboot"

4) chmod -R 777 /tftpdboot

5) Start tftpd "sudo /etc/init.d/xinetd start"

6) Testing

6.1. /tftpdboot/123.txt
6.2 chmod 777 /tftpdboot/123.txt
6.3 tftp 192.168.51.100 // If the client is at 51.100
6.4 tftp> put 123.txt
Sent 833 bytes in 0.0 seconds
6.5 tftp> quit










1 comment:

Karn said...

Thanks for the post. had tftp-hpa issue for some time. Resolved now.

KG