LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2010, 12:56 AM   #1
ravspratapsingh
Member
 
Registered: May 2010
Posts: 30

Rep: Reputation: 15
unable to set up TFTP on Fedora 12


Hi,

This is very old topic but despite of trying out all possible solutions available on net and forums, I am not able to setup tftp server on my 2.6.32.11-99.FC12.i686.PAE. Is there something obvious missing out.

/etc/xinet.d/tftp


# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s -c /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}


/etc/xinetd.conf


#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.

defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
enabled = tftp telnet
# disabled =

# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT

# Define access restriction defaults
#
# no_access =
only_from = 192.168.*.*
# max_load = 0
cps = 50 10
instances = 50
per_source = 10

# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no

# setup environmental attributes
#
# passenv =
groups = yes
umask = 002

# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}

includedir /etc/xinetd.d



These are the configuration setting in my PC.
I have done service xinetd --full-restart and then checked service --status-all. It showed xinetd (pid 4349) is running...
Yet after all these I dont find tftp running on my PC.
Please help me in setting tftp server on my PC. Its a kind of urgent.


thanks
-- RavS
 
Old 05-10-2010, 01:01 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Have you tried starting it ?
Code:
which tftp

/path/to/tftp start

Last edited by smoker; 05-10-2010 at 01:03 AM.
 
Old 05-10-2010, 01:07 AM   #3
ravspratapsingh
Member
 
Registered: May 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smoker View Post
Have you tried starting it ?
Code:
which tftp

/path/to/tftp start

#which tftp
/usr/biun/tftp

Now when i run, /usr/bin/tftp start , it says Error: Name or service not known start: unknown host
and when I ran /usr/bin/tftp, it come to (to) prompt and then tftp>
I need to start tftp serve ron my pc so that my board can boot using file on pc
 
Old 05-10-2010, 04:15 AM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Well most servers are run as daemons, so you should be running tftpd
Try the same again with tftpd.
 
Old 05-10-2010, 11:20 PM   #5
ravspratapsingh
Member
 
Registered: May 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smoker View Post
Well most servers are run as daemons, so you should be running tftpd
Try the same again with tftpd.

There is a file named /usr/sbin/in.tftpd. You can see that this is the server path in the config file. When I run this, nothing happens and it seems to hang there with a blank line.
 
Old 09-27-2010, 04:17 AM   #6
jerrybuilt
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
Hi, I know this thread is a bit old now, I am wondering if this issue was ever resolved? I have a very similar problem, I'd be very grateful if Smoker could jump in again and help out.


I'm very new to the Linux scene, and I want to set up a PXE installation environment to install Xenserver
I'm running Fedora 13 and following the Citrix instructions to the letter.

Right now, my client server is picking up a DHCP address ok, but gets a 'Open Timeout' error message.

Following Smokers suggestions above:

# Which TFTP

I get the reply, no TFTP in (... and then list the search results in /usr/local/sbin:/usr/local/bin ..... etc)

As though there is no TFTP installed, but when I enter 'yum install tftp-server' I get the reply 'package tftp-server-0.49-6.fc13.i686 already installed ....

However, this is my /etc/xinetd.d/tftp file:

service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}

... and this is my /etc/dhcp/dhcpd.conf file

#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
#DHCPDARGS=eth0;

log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.1.10 192.168.1.30;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.100;
default-lease-time 600;
max-lease-time 7200;
}
host clientname{
filename "/tftpboot/xenserver/install.img";
}


allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.1.8;
filename "pxelinux.0";
}
#/tftpboot/linux-install/msg/boot.msg


Be glad of any help and advice

Many thanks
 
Old 09-27-2010, 03:54 PM   #7
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Code:
service start tftpd
?

And BTW, the suggestion above was meant to be
Code:
which tftpd

Last edited by smoker; 09-27-2010 at 03:56 PM.
 
Old 09-28-2010, 02:06 AM   #8
jerrybuilt
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
Thanks for your reply Smoker, but, when I enter:

service start tftpd - I get - 'unrecognised service'

which tftpd - I get - 'no tftpd in (.... and it lists the /usr/bin etc..)

but when I enter 'yum install tftp-server' I get the reply 'package tftp-server-0.49-6.fc13.i686 already installed ....

Have I got the wrong tftpd server installed?

Thanks
 
Old 09-28-2010, 10:59 AM   #9
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by jerrybuilt View Post
Thanks for your reply Smoker, but, when I enter:

service start tftpd - I get - 'unrecognised service'

which tftpd - I get - 'no tftpd in (.... and it lists the /usr/bin etc..)

but when I enter 'yum install tftp-server' I get the reply 'package tftp-server-0.49-6.fc13.i686 already installed ....
The command to start a service is
Code:
service service-name start
Have you tried which tftp-server ?
 
Old 09-29-2010, 10:05 AM   #10
jerrybuilt
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
Thanks for sticking with me Smoker, yes I've tried all possible permutations, they either say unrecognized service or no tftp-server in (... and then lists the possible locations ....)

I had read somewhere that tftp/tftpd/server was not a service??

Thanks
 
Old 09-29-2010, 02:53 PM   #11
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Apparently tftp is run from /etc/xinetd.d/tftp so I would check there. tftp is exceedingly insecure, so I don't really want to help you run it anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to set my screen resolution above 960 x 600. (Fedora 10) John_P Linux - Hardware 2 03-30-2009 08:47 AM
How do you set up a TFTP in SW 10.2? smarthouseguy Slackware 6 03-25-2007 01:33 PM
tftp issue, unable to transfer kernel image using tftp to boot ltsp-client noobs4linux Linux - Networking 1 02-07-2007 01:53 AM
Unable to set syntax color on for VIM 6.3 that came with Fedora 4 d2army Linux - Newbie 3 02-16-2006 12:52 PM
how to set up tftp service techjp Linux - Networking 1 07-03-2004 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration