LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   setting up TFTP on fedora (https://www.linuxquestions.org/questions/fedora-35/setting-up-tftp-on-fedora-264374/)

chrisknight 12-09-2004 05:24 AM

setting up TFTP on fedora
 
Hello! I need to set up tftp for backing up cisco configs and IOS's... I found on my fedora 2 (and 3) disk 4 an rpm called tftp.0.33.3.rpm (or something like that) and in stalled it with RPM -IVVH but this seems to only install a tftp client in /usr/bin.
Not the server...
I was expecting to find at least 2 things:
/etc/xinetd.d/tftp
and
/usr/sbin/in.tftpd

I didnt find either one on the fedora 2 or the fedora 3 machine using disk 4 for each system.
I did find a tftp server out there that I compiled and got to work but when I run it, I cant get it to dissconnect from the shell.

I added a line to start it in /etc/rc.d/rc.local
but when the system boots it just hangs there running and wont let the system boot up fully...

I found that here: http://iridia.ulb.ac.be/~fvandenb/tools/tools.html

Can someone help me set up a tftp server? ...or point me to one?

Thanks!

overlord73 12-09-2004 05:44 AM

look at this

http://www.intra2net.com/opensource/diskless-howto/
http://www.hut.fi/~tkarvine/network-booting-pxe.html

rhoekstra 12-09-2004 07:18 AM

On the third CD of all Fedora releases there is an RPM called tftp-server-<version>

Don't you think that would help you out?

chrisknight 12-09-2004 04:19 PM

Well, what do ya know...
Mounted the 3rd cd and it was there. Installed and working great...
Thanks!
Chris

rhoekstra 12-10-2004 01:25 AM

You're very welcome :)

chrisknight 12-23-2004 10:22 AM

To clearify how I got this working...
Installed the TFTP server RPM on the FC disc 3.

This adds the directory: /tftpboot
You can turn on the ftp server via the Service Configuration window in KDE.

This seemed like it would solve my problem but attempting from my router a 'copy running-config tftp'
wouldnt work...
Had to dig a bit further...
It seems as though the -c argument allowes for the creation of files.
I added this to my:
/etc/xinetd.d/tftp
It looks like this:
------------------------------------------------
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 11
cps = 100 2
}
-------------------------------------------------

then, It almost worked. Instead of a write error message like before I got a permissions error.
I issued the command:
chown nobody:nobody /tftpboot
and it worked...
I can now back up my cisco configs and IOS's...

JatMan 08-10-2009 06:24 PM

Disable SELINUX
 
I had to disable selinx as well to get the tftp server working.

Here is the link.


All times are GMT -5. The time now is 01:28 AM.