Re: How to check tftp server is running?

2007-11-06 Thread hce
Thanks for all responses and advice. I am going to use tftpd-hpa.

Thank you.

Jim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-06 Thread Raj Kiran Grandhi

hce wrote:

On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:

On Tue, Nov 06, 2007 at 04:21:31PM +1100, hce wrote:

On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:

On Tue, Nov 06, 2007 at 01:32:47PM +1100, hce wrote:

On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:

On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:

On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:

...

please provide

dpkg -l tftpd

~$ 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   VersionDescription
+++-==-==-
rc  tftpd  0.17-15Trivial file transfer protocol server

--^^


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   VersionDescription
+++-==-==-
ii  tftpd  0.17-15Trivial 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.


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?

Thank you.

Jim




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


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: How to check tftp server is running?

2007-11-06 Thread Gabriel Parrondo
El mar, 06-11-2007 a las 20:51 +1100, hce escribió:
[...]
> 
> 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: [EMAIL PROTECTED]

"The only difference between theory and practice is that, in theory, there's no 
difference between theory and practice."


signature.asc
Description: Esta parte del mensaje está firmada	digitalmente


Re: How to check tftp server is running?

2007-11-06 Thread hce
On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 06, 2007 at 04:21:31PM +1100, hce wrote:
> > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > On Tue, Nov 06, 2007 at 01:32:47PM +1100, hce wrote:
> > > > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > > > On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:
> > > > > > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > > > ...
> > > > > > > please provide
> > > > > > >
> > > > > > > dpkg -l tftpd
> > > > > >
> > > > > > ~$ 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   VersionDescription
> > > > > > +++-==-==-
> > > > > > rc  tftpd  0.17-15Trivial file transfer protocol 
> > > > > > server
> --^^
>
> > > > > 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   VersionDescription
> > +++-==-==-
> > ii  tftpd  0.17-15Trivial 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.

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?

Thank you.

Jim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-05 Thread Andrew Sackville-West
On Tue, Nov 06, 2007 at 04:21:31PM +1100, hce wrote:
> On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > On Tue, Nov 06, 2007 at 01:32:47PM +1100, hce wrote:
> > > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > > On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:
> > > > > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > > ...
> > > > > > please provide
> > > > > >
> > > > > > dpkg -l tftpd
> > > > >
> > > > > ~$ 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   VersionDescription
> > > > > +++-==-==-
> > > > > rc  tftpd  0.17-15Trivial file transfer protocol 
> > > > > server
--^^

> > > > 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   VersionDescription
> +++-==-==-
> ii  tftpd  0.17-15Trivial 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


signature.asc
Description: Digital signature


Re: How to check tftp server is running?

2007-11-05 Thread hce
On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 06, 2007 at 01:32:47PM +1100, hce wrote:
> > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:
> > > > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > ...
> > > > > please provide
> > > > >
> > > > > dpkg -l tftpd
> > > >
> > > > ~$ 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   VersionDescription
> > > > +++-==-==-
> > > > rc  tftpd  0.17-15Trivial file transfer protocol server
> > > >
> > > > That command seems work.
> > > >
> > >
> > > 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
> >
> > $ sudo apt-get update
> [snipped output of apt-get --reinstall... process]
> >
> > $ 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?
>
> 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.

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   VersionDescription
+++-==-==-
ii  tftpd  0.17-15Trivial 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??


Thank you.

Jim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-05 Thread Andrew Sackville-West
On Tue, Nov 06, 2007 at 01:32:47PM +1100, hce wrote:
> On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:
> > > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > ...
> > > > please provide
> > > >
> > > > dpkg -l tftpd
> > >
> > > ~$ 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   VersionDescription
> > > +++-==-==-
> > > rc  tftpd  0.17-15Trivial file transfer protocol server
> > >
> > > That command seems work.
> > >
> >
> > 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
> 
> $ sudo apt-get update
[snipped output of apt-get --reinstall... process]
> 
> $ 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?

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


signature.asc
Description: Digital signature


Re: How to check tftp server is running?

2007-11-05 Thread hce
On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:
> > On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> ...
> > > please provide
> > >
> > > dpkg -l tftpd
> >
> > ~$ 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   VersionDescription
> > +++-==-==-
> > rc  tftpd  0.17-15Trivial file transfer protocol server
> >
> > That command seems work.
> >
>
> 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

$ 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/ 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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-05 Thread Andrew Sackville-West
On Tue, Nov 06, 2007 at 11:35:17AM +1100, hce wrote:
> On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
...
> > please provide
> >
> > dpkg -l tftpd
> 
> ~$ 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   VersionDescription
> +++-==-==-
> rc  tftpd  0.17-15Trivial file transfer protocol server
> 
> That command seems work.
> 

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/ 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


signature.asc
Description: Digital signature


Re: How to check tftp server is running?

2007-11-05 Thread hce
On 11/6/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 05, 2007 at 08:30:01PM +1100, hce wrote:
> > On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > On Mon, Nov 05, 2007 at 03:37:05PM +1100, hce wrote:
> > > > On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > > ...
> > > > >
> > > > > in debian services are started with an init script stored in
> > > > > /etc/init.d/ and linked to various runlevels in /etc/rc[S123456].d/
> > > >
> > > > 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?
> > >
> > > looks like you probably did install the wrong package.
> > >
> > > Useful bits:
> > >
> > > dpkg -L tftpd
> >
> > $ dpkg -L tftpd
> > Package `tftpd' does not contain any files (!)
> >
>
> please provide
>
> dpkg -l tftpd

~$ 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   VersionDescription
+++-==-==-
rc  tftpd  0.17-15Trivial 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/ 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-
>
>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-05 Thread Andrew Sackville-West
On Mon, Nov 05, 2007 at 08:30:01PM +1100, hce wrote:
> On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > On Mon, Nov 05, 2007 at 03:37:05PM +1100, hce wrote:
> > > On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > ...
> > > >
> > > > in debian services are started with an init script stored in
> > > > /etc/init.d/ and linked to various runlevels in /etc/rc[S123456].d/
> > >
> > > 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?
> >
> > looks like you probably did install the wrong package.
> >
> > Useful bits:
> >
> > dpkg -L tftpd
> 
> $ dpkg -L tftpd
> Package `tftpd' does not contain any files (!)
> 

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/ start/stop/restart as
required.

A


signature.asc
Description: Digital signature


Re: How to check tftp server is running?

2007-11-05 Thread Raj Kiran Grandhi

hce wrote:

Hi,

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.


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


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: How to check tftp server is running?

2007-11-05 Thread hce
On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 05, 2007 at 03:37:05PM +1100, hce wrote:
> > On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> ...
> > >
> > > in debian services are started with an init script stored in
> > > /etc/init.d/ and linked to various runlevels in /etc/rc[S123456].d/
> >
> > 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?
>
> looks like you probably did install the wrong package.
>
> Useful bits:
>
> dpkg -L tftpd

$ 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 <[EMAIL PROTECTED]>
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-04 Thread Andrew Sackville-West
On Mon, Nov 05, 2007 at 03:37:05PM +1100, hce wrote:
> On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
...
> >
> > in debian services are started with an init script stored in
> > /etc/init.d/ and linked to various runlevels in /etc/rc[S123456].d/
> 
> 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?

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


signature.asc
Description: Digital signature


Re: How to check tftp server is running?

2007-11-04 Thread Jeff Grossman

hce wrote:

On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
  

On Mon, Nov 05, 2007 at 03:14:05PM +1100, hce wrote:


On 11/5/07, Jeff Grossman <[EMAIL PROTECTED]> wrote:
  

hce wrote:


Hi,

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



  

I don't think Debian uses xinetd by default.  It puts everything in the
inetd.conf file.  You can manually move the entries over to an xinetd file.


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/



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/ 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  start

to check the status of a service, look at ps -e (grepping as
appropriate) or check

invoke-rc.d  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/)

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/, 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-






  
It looks like there is a program called atftpd which allows running from 
inetd or as a daemon.  You might want to look into that program.  I 
always use http://packages.debian.org when researching packages.  But, 
that is just my preference.


Jeff


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: How to check tftp server is running?

2007-11-04 Thread hce
On 11/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 05, 2007 at 03:14:05PM +1100, hce wrote:
> > On 11/5/07, Jeff Grossman <[EMAIL PROTECTED]> wrote:
> > > hce wrote:
> > > > Hi,
> > > >
> > > > 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
> > > >
> > > >
> > > >
> > > I don't think Debian uses xinetd by default.  It puts everything in the
> > > inetd.conf file.  You can manually move the entries over to an xinetd 
> > > file.
>
> 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/

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/ 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  start
>
> to check the status of a service, look at ps -e (grepping as
> appropriate) or check
>
> invoke-rc.d  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/)
>
> 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/, 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-
>
>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-04 Thread Jeff Grossman

Andrew Sackville-West wrote:

On Mon, Nov 05, 2007 at 03:14:05PM +1100, hce wrote:
  

On 11/5/07, Jeff Grossman <[EMAIL PROTECTED]> wrote:


hce wrote:
  

Hi,

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





I don't think Debian uses xinetd by default.  It puts everything in the
inetd.conf file.  You can manually move the entries over to an xinetd file.
  


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/ start 


or

invoke-rc.d  start

to check the status of a service, look at ps -e (grepping as
appropriate) or check 


invoke-rc.d  status

(or /etc/init.d/)

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/, so if you start a service and it doesn't
seem to work, check there.

hth

A
  
I looked at the files listing in packages.debian.org for the tftpd 
program.  It does not install anything in /etc/init.d.  I am not sure if 
that program can run as a daemon.


Jeff


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: How to check tftp server is running?

2007-11-04 Thread Jeff Grossman

hce wrote:

On 11/5/07, Jeff Grossman <[EMAIL PROTECTED]> wrote:
  

hce wrote:


Hi,

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



  

I don't think Debian uses xinetd by default.  It puts everything in the
inetd.conf file.  You can manually move the entries over to an xinetd file.



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


  
Anything running from inetd is not running all of the time.  Processes 
that start from inetd only start when a connection from the outside hits 
that port.  There is no daemon program running when run form inetd.  I 
am not sure if tftpd is a daemon type server.


Jeff


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: How to check tftp server is running?

2007-11-04 Thread Andrew Sackville-West
On Mon, Nov 05, 2007 at 03:14:05PM +1100, hce wrote:
> On 11/5/07, Jeff Grossman <[EMAIL PROTECTED]> wrote:
> > hce wrote:
> > > Hi,
> > >
> > > 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
> > >
> > >
> > >
> > I don't think Debian uses xinetd by default.  It puts everything in the
> > inetd.conf file.  You can manually move the entries over to an xinetd file.

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/ start 

or

invoke-rc.d  start

to check the status of a service, look at ps -e (grepping as
appropriate) or check 

invoke-rc.d  status

(or /etc/init.d/)

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/, so if you start a service and it doesn't
seem to work, check there.

hth

A


signature.asc
Description: Digital signature


Re: How to check tftp server is running?

2007-11-04 Thread hce
On 11/5/07, Jeff Grossman <[EMAIL PROTECTED]> wrote:
> hce wrote:
> > Hi,
> >
> > 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
> >
> >
> >
> I don't think Debian uses xinetd by default.  It puts everything in the
> inetd.conf file.  You can manually move the entries over to an xinetd file.

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to check tftp server is running?

2007-11-04 Thread Jeff Grossman

hce wrote:

Hi,

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


  
I don't think Debian uses xinetd by default.  It puts everything in the 
inetd.conf file.  You can manually move the entries over to an xinetd file.


Jeff


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




How to check tftp server is running?

2007-11-04 Thread hce
Hi,

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 [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]