I've just installed tftp and tftpd package by apt-get. But, I could
not see the tftp server running. Actually, I could not figure out
where is the tftp script. In FC6, the tftp script is in xinit.d. In
Debian, there is not xinit.d.
How can I check whether the tftp server is running or not? And, if
not, which command I can call to run the tftp server?
Thank you.
Jim
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Jeff
Indeed, the tftp is in inetd.conf file. But, how can I
run/restart/stop tftp server? Also, how can I check whether the tftp
server is running or not? I checked ps and grep with in.tftpd, but
could not find it.
Thank you Jeff.
Jim
Jeff
probably you should avoid inet.d and just start the service directly.
>
> Indeed, the tftp is in inetd.conf file. But, how can I
> run/restart/stop tftp server? Also, how can I check whether the tftp
> server is running or not? I checked ps and grep with in.tftpd, but
> could not find it.
in debian services are started with an init script stored in
/etc/init.d/ and linked to various runlevels in /etc/rc[S123456].d/
to start the service use either
/etc/init.d/<Service name> start
or
invoke-rc.d <Service name> start
to check the status of a service, look at ps -e (grepping as
appropriate) or check
invoke-rc.d <Service name> status
(or /etc/init.d/<Service name>)
personally, i like the /etc/init.d/ route as you get tab completion of
a service name, if you happen to not remember it exactly.
Many services won't actually start unless they are enabled in
/etc/default/<service name>, so if you start a service and it doesn't
seem to work, check there.
hth
A
I've checked in /etc/init.d, there is no tftp, nor tftpd. I did
installed by "apt-get install tftp" and "apt-get install tftpd". Where
are those scripts? Or did I installed wrong tftp packages?
> to start the service use either
>
> /etc/init.d/<Service name> start
That is the same way in FC where service script can be
start/stop/restart. But, I could not find tftp or tftpd scripts.
> or
>
> invoke-rc.d <Service name> start
>
> to check the status of a service, look at ps -e (grepping as
> appropriate) or check
>
> invoke-rc.d <Service name> status
I've tried "/usr/sbin/invoke-rc.d tftpd status" with following error:
invoke-rc.d: unknown initscript, /etc/init.d/tftpd not found.
Thank you.
Jim
> (or /etc/init.d/<Service name>)
>
> personally, i like the /etc/init.d/ route as you get tab completion of
> a service name, if you happen to not remember it exactly.
>
> Many services won't actually start unless they are enabled in
> /etc/default/<service name>, so if you start a service and it doesn't
> seem to work, check there.
>
> hth
>
> A
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFHLpqtaIeIEqwil4YRAv5jAKDhJX+1uJRHeTo9dU2qdl0kHxPgDwCfe+og
> 0fGDfnR+jZ69XP4wsMRNfQg=
> =/Bah
> -----END PGP SIGNATURE-----
Jeff
Jeff
looks like you probably did install the wrong package.
Useful bits:
dpkg -L tftpd
will show you what files were installed by that package.
to see what a package contains before installing it:
apt-cache show tftpd
will provide the package description and various details such as
dependencies.
Indeed, from packages.debian.org and the package description, looks
like tftpd expects to start form inet.d, so you'd have to put the
proper entries in inet.d.conf and will not see the daemon running
unless someone's actually connected.
A
$ dpkg -L tftpd
Package `tftpd' does not contain any files (!)
This is stange and I am confused, how can calling "apt-get install
tftpd" get nothing??
> will show you what files were installed by that package.
>
> to see what a package contains before installing it:
>
> apt-cache show tftpd
$ apt-cache show tftpd
Package: tftpd
Priority: optional
Section: net
Installed-Size: 44
Maintainer: Alberto Gonzalez Iniesta <a...@inittab.org>
Architecture: i386
Source: netkit-tftp
Version: 0.17-15
Replaces: netstd
Depends: netbase, libc6 (>= 2.3.5-1)
Filename: pool/main/n/netkit-tftp/tftpd_0.17-15_i386.deb
Size: 14956
MD5sum: 90c6645b38374c3da42b24e443060318
SHA1: e11210a2ee84edc229b3a059e93fbe3a00acdce2
SHA256: 7cc83ea3726271aea58720c2bf096bcd71ce33c6642f58bfd34b750d287bb415
Description: Trivial file transfer protocol server
Tftpd is a server which supports the Internet Trivial File Transfer Protocol
(RFC 783). The TFTP server operates at the port indicated in the `tftp'
service description; see services(5). The server is normally started by
inetd(8).
Tag: admin::boot, admin::file-distribution, filetransfer::ftp,
interface::daemon, network::server, protocol::ftp, protocol::ip,
role::program, use::configuring
So, the tftpd is the tftp server, what's going here??
> will provide the package description and various details such as
> dependencies.
>
>
> Indeed, from packages.debian.org and the package description, looks
> like tftpd expects to start form inet.d, so you'd have to put the
> proper entries in inet.d.conf and will not see the daemon running
> unless someone's actually connected.
Well, my inetd.conf contains following tftp:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
How to start/stop/restart the intd?
Thank Andrew,
Jim
I have had good results by installing the tftpd-hpa package. You can run
it from either inetd or standalone. For running the standalone version
you need to disable it in /etc/inetd.conf and set the relevant flag to
"yes" in /etc/default/tftpd-hpa
>
> How can I check whether the tftp server is running or not? And, if
> not, which command I can call to run the tftp server?
Install some tftp client (say tftp-hpa), then try getting a file from
the machine:
==
$ tftp localhost
tftp> get somefile
==
If you get an error almost immediately saying the file could not be
found, that means the server is running :)
--
Raj Kiran Grandhi
please provide
dpkg -l tftpd
and
apt-cache policy tftpd
> This is stange and I am confused, how can calling "apt-get install
> tftpd" get nothing??
Without seeing the actual session where you did this, its hard to say.
> > Indeed, from packages.debian.org and the package description, looks
> > like tftpd expects to start form inet.d, so you'd have to put the
> > proper entries in inet.d.conf and will not see the daemon running
> > unless someone's actually connected.
>
> Well, my inetd.conf contains following tftp:
>
> tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
>
> How to start/stop/restart the intd?
depends on which inetd you have installed.
ls /etc/init.d/ | grep inet
and then /etc/init.d/<results of above> start/stop/restart as
required.
A
~$ dpkg -l tftpd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
rc tftpd 0.17-15 Trivial file transfer protocol server
That command seems work.
> and
>
> apt-cache policy tftpd
~$ apt-cache policy tftpd
tftpd:
Installed: 0.17-15
Candidate: 0.17-15
Version table:
*** 0.17-15 0
500 ftp://ftp.au.debian.org etch/main Packages
100 /var/lib/dpkg/status
That shows it was indeed installed.
> > This is stange and I am confused, how can calling "apt-get install
> > tftpd" get nothing??
>
> Without seeing the actual session where you did this, its hard to say.
>
> > > Indeed, from packages.debian.org and the package description, looks
> > > like tftpd expects to start form inet.d, so you'd have to put the
> > > proper entries in inet.d.conf and will not see the daemon running
> > > unless someone's actually connected.
> >
> > Well, my inetd.conf contains following tftp:
> >
> > tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
> >
> > How to start/stop/restart the intd?
>
> depends on which inetd you have installed.
>
> ls /etc/init.d/ | grep inet
$ ls /etc/init.d/ | grep inet
openbsd-inetd
Is it normal that the Debian is running openbsd-inetd?
> and then /etc/init.d/<results of above> start/stop/restart as
> required.
I'll run /etc/init.d/openbsd-inetd restart when above question is confirmed.
Thank you.
Jim
> A
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFHL1dFaIeIEqwil4YRAon8AJ9EVPTIXrfbcoQUHXYLyZxRfhBKTgCgwua0
> Z4nEacXDW5N7TnY6GMAzj04=
> =bQN8
> -----END PGP SIGNATURE-----
rc means that it is not installed.
> > and
> >
> > apt-cache policy tftpd
>
> ~$ apt-cache policy tftpd
> tftpd:
> Installed: 0.17-15
> Candidate: 0.17-15
> Version table:
> *** 0.17-15 0
> 500 ftp://ftp.au.debian.org etch/main Packages
> 100 /var/lib/dpkg/status
>
> That shows it was indeed installed.
yeah. you've got a problem there.
do
apt-get update
apt-get --reinstall install tftpd
and provide the output from the install command.
...
> $ ls /etc/init.d/ | grep inet
> openbsd-inetd
>
> Is it normal that the Debian is running openbsd-inetd?
yes.
>
> > and then /etc/init.d/<results of above> start/stop/restart as
> > required.
>
> I'll run /etc/init.d/openbsd-inetd restart when above question is confirmed.
right, but that won't help with tftpd until you get it installed
properly. see above.
A
$ sudo apt-get update
Get:1 ftp://ftp.au.debian.org etch Release.gpg [378B]
Get:2 ftp://ftp.au.debian.org etch Release [58.2kB]
Get:3 ftp://ftp.au.debian.org etch/main Packages/DiffIndex
Ign ftp://ftp.au.debian.org etch/main Packages/DiffIndex
Get:4 ftp://ftp.au.debian.org etch/contrib Packages/DiffIndex
Ign ftp://ftp.au.debian.org etch/contrib Packages/DiffIndex
Get:5 ftp://ftp.au.debian.org etch/main Sources/DiffIndex
Ign ftp://ftp.au.debian.org etch/main Sources/DiffIndex
Get:6 ftp://ftp.au.debian.org etch/contrib Sources/DiffIndex
Ign ftp://ftp.au.debian.org etch/contrib Sources/DiffIndex
Hit ftp://ftp.au.debian.org etch/main Packages
Hit ftp://ftp.au.debian.org etch/contrib Packages
Hit ftp://ftp.au.debian.org etch/main Sources
Hit ftp://ftp.au.debian.org etch/contrib Sources
Fetched 58.6kB in 25s (2289B/s)
Reading package lists... Done
> apt-get --reinstall install tftpd
$ sudo apt-get --reinstall install tftpd
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 43 not upgraded.
Need to get 0B/15.0kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 59650 files and directories currently installed.)
Preparing to replace tftpd 0.17-15 (using .../tftpd_0.17-15_i386.deb) ...
Unpacking replacement tftpd ...
Setting up tftpd (0.17-15) ...
$ sudo apt-cache policy tftpd
tftpd:
Installed: 0.17-15
Candidate: 0.17-15
Version table:
*** 0.17-15 0
500 ftp://ftp.au.debian.org etch/main Packages
100 /var/lib/dpkg/status
It was the same as the previouse one, what was the problem there?
> and provide the output from the install command.
> ...
>
> > $ ls /etc/init.d/ | grep inet
> > openbsd-inetd
> >
> > Is it normal that the Debian is running openbsd-inetd?
>
> yes.
>
> >
> > > and then /etc/init.d/<results of above> start/stop/restart as
> > > required.
> >
> > I'll run /etc/init.d/openbsd-inetd restart when above question is confirmed.
>
> right, but that won't help with tftpd until you get it installed
> properly. see above.
>
Thank you.
Jim
sorry for not being clear. the problem was that dpkg thinks you've
removed the package as evidenced by the dpkg -L failure and the status
of tftpd shown in dpkg -l (rc for removed but still configured (i
think)) while apt-cache thinks the package is installed as shown by
the previous apt-cache policy output.
By --reinstalling it, the files should be there now.
you can verify with
dpkg -l tftpd
which should now show
...
ii tftpd blah blah blah
and
dpkg -L tftpd
which should show a handful of files (its a pretty small package).
and now you can try restarting inet.d and see what happens.
A
I did sudo apt-get --reinstall install tftpd
> you can verify with
>
> dpkg -l tftpd
$ sudo dpkg -l tftpd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii tftpd 0.17-15 Trivial file transfer protocol server
Couldn't see what is difference :-).
> which should now show
>
> ...
> ii tftpd blah blah blah
>
> and
>
> dpkg -L tftpd
$ sudo dpkg -L tftpd
/.
/usr
/usr/sbin
/usr/sbin/in.tftpd
/usr/share
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/in.tftpd.8.gz
/usr/share/doc
/usr/share/doc/tftpd
/usr/share/doc/tftpd/README
/usr/share/doc/tftpd/copyright
/usr/share/doc/tftpd/changelog.Debian.gz
/usr/share/doc/tftpd/changelog.gz
/usr/share/man/man8/tftpd.8.gz
That's different.
> which should show a handful of files (its a pretty small package).
>
>
> and now you can try restarting inet.d and see what happens.
Well, I've called "$ sudo /etc/init.d/openbsd-inetd restart", but
tftpd doesn't seem work.
I tried a tftp client, but could not get files. Also I tried "netstat
-a | grep tftp", nothing shown up??
> > > > rc means that it is not installed.
>
> $ sudo dpkg -l tftpd
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> ||/ Name Version Description
> +++-==============-==============-============================================
> ii tftpd 0.17-15 Trivial file transfer protocol server
--^^
ii means its installed.
>
> Well, I've called "$ sudo /etc/init.d/openbsd-inetd restart", but
> tftpd doesn't seem work.
try running it directly, instead of from inet.d because I'm guessing
this is an inet.d configuration problem. I don't use inet.d, so
someone else will have to help here.
A
Thanks Andrew, you are indeed so helpful.
Fow anyone who knows debian, please help me the following:
In FC6, the tftp script is in xinetd.d, I can call xinetd restart to
include tftp service.
In Debian, I could not find a tftp script in init.d. In fact, I could
not find a tftp script under /etc. How can I get the tftp service?
Leave tftpd for good and try out tftpd-hpa which seems easier to setup
and can be started as a daemon the "invoke-rc.d" way.
I've been using it for a year now for several thin clients and I've
never had any problems.
Best,
--
Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: gabr...@xmpp.us
"The only difference between theory and practice is that, in theory, there's no difference between theory and practice."
I had replied to this thread earlier, but apparently my post was lost.
Anyway here it is again:
I have had good results by installing the tftpd-hpa package. You can run
it from either inetd or standalone. For running the standalone version
you need to disable it in /etc/inetd.conf and set the relevant flag to
"yes" in /etc/default/tftpd-hpa
To check whether the server is running, install some tftp client (say
tftp-hpa), then try getting a file from the machine:
==
$ tftp localhost
tftp> get somefile
==
If you get an error almost immediately saying the file could not be
found, that means the server is running :)
--
Raj Kiran Grandhi
Thank you.
Jim