Configuring Ubuntu 9.04 as a TFTP Server


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Configuring Ubuntu 9.04 as a TFTP Server
# 1  
Old 01-03-2010
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.
Code:
$ sudo apt-get install xinetd tftpd tftp

2. Create /etc/xinetd.d/tftp and put this entry:
Code:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

3. Make /tftpboot directory
Code:
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Start tftpd through xinetd
Code:
$ sudo /etc/init.d/xinetd start

5. 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)
Code:
$ 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


Last edited by Scott; 01-03-2010 at 08:44 PM.. Reason: Please use code tags
# 2  
Old 01-04-2010
Quote:
Originally Posted by andyblaylock
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??
Yes, create the file.
# 3  
Old 01-04-2010
Thanks , I will give that a shot.

andy
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

TFTP Server Timeout issue

Hi, I'm running CentOS 5 as guest using VMware player. My host is Windows Xp. I'm running tftp server in CentOS. I have disabled firewall in both windows and CentOS. I use two different networks with different netmasks on CentOS. I'm able to ping the Centos (tftp server) from another Linux machine... (1 Reply)
Discussion started by: suryaemlinux
1 Replies

2. Solaris

configuring boot server

Hi experts, I want to configure a boot server, tried googling for some document for steps and all leads to JumpStart server. Any help with be much appreciated Thanks (9 Replies)
Discussion started by: kumarmani
9 Replies

3. UNIX for Dummies Questions & Answers

put command issues with a tftp server

From a remote client, I'm trying to create a timestamped directory and put a file inside the directory. The directory and the file are not present already inside the tftp server. If I need to put a file inside a tftp server, which is not existing already what should I need to do.. I face errors... (9 Replies)
Discussion started by: Amudha
9 Replies

4. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies

5. Solaris

Improperly formatted value for 'tftp-server' error while booting the target from LAN

Hi, I wish to install solaris 10 on a target machine (t1000) by using Jumpstart. I have configured by jumpstart environment for the same. When i boot the target with the option "boot net -v install" i get the following error... {0} ok boot net -v install Boot device: /pci@7c0/pci@0/network@4... (3 Replies)
Discussion started by: hemalsid
3 Replies

6. Ubuntu

Please help me in configuring network in Ubuntu

Hi Friends, I have installed Ubuntu in win xp system with the help of Vmware workstation.Can anyone tell me how to configure network in Ubuntu.I mean how to connect it to Internet. Thanks in advance, Eajaz. (2 Replies)
Discussion started by: ajazshariff
2 Replies

7. UNIX for Advanced & Expert Users

unix tftp server

Does anyone know of a Unix TFP server that can tftp more then 32 meg? For Windows there is http://tftpd32.jounin.net but I cannot see a Unix one. Thoughts???? (0 Replies)
Discussion started by: calieddy
0 Replies

8. Solaris

tftp configuring on Solaris 5.7

Hi, I need to setup a tftp facility on a Sun server. Can someone help me urgently, i need this to be up at the earliest. Regards, Vivek :( (1 Reply)
Discussion started by: vivek_scv
1 Replies
Login or Register to Ask a Question

Featured Tech Videos