Configuring Ubuntu 9.04 as a TFTP Server

Configuring Ubuntu 9.04 as a TFTP Server

Im trying to configure my Ubuntu desktop as a tftp server.
I found the following instructions on how to do this. Most of the instructions I understand however Im not sure about step 2. The instructions are below:

In step 2 do I create a txt file in vi "sudo vi tftp" and copy and paste the service tftp text into the file??

or do I create a directory /etc/xinetd.d/tftp called tftp create the file tftp.

When I go to step 4 and attempt to start the tftp service I receive a message that indicates that the command has failed to start the server: is there away to verify that the tftp service is running??
What I receive is:
andy@andy-desktop:/$ sudo /etc/init.d/xinetd start

  • Starting internet superserver xinetd [fail]
    andy@andy-desktop:/$

Howto install and setup

  1. Install tftpd and related packages.
$ sudo apt-get install xinetd tftpd tftp
  1. Create /etc/xinetd.d/tftp and put this entry:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
  1. Make /tftpboot directory
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot
  1. Start tftpd through xinetd
$ sudo /etc/init.d/xinetd start
  1. Testing. Tranfering file hda.txt from 192.168.1.100 (Client using tftp) to 192.168.1.100 (Server 192.168.1.100). Get an example file to transfer (eg. hda.txt)
$ touch /tftpboot/hda.txt
$ chmod 777 /tftpboot/hda.txt
$ ls -l /tftpboot/
total 0
-rwxrwxrwx 1 davids davids 0 2006-03-27 23:04 hda.txt
$ tftp 192.168.1.100
tftp> put hda.txt
Sent 722 bytes in 0.0 seconds
tftp> quit
$ ls -l /tftpboot/
total 4

Yes, create the file.

Thanks , I will give that a shot.

andy