I say "Hello" Linux says "Goodbye" ... aaarghhh

I say "Hello" Linux says "Goodbye" ... aaarghhh

Post by plz.. » Tue, 07 Feb 1995 20:40:48

Hello all,
after much *, sweat, tears and swearing I got Linux running on a
Compaq 386/20. It has 10MB RAM, about 1GB disk space and a CD-ROM.
It recently gone on the internet as an ftp resource.

Everything worked fine at first but now Telnet & ftp have become unreliable.
When they work, they work fine. However when they don't:

- FTP session
  Open <symbolic address> says:

  "Connected to <Symbolic address>"
  "Escape character is '^]'."
  "Connection closed by foreign host."

- Telnet session

  "Connected to <Symbolic address>"
  "421 Service not available, remote server has closed connection"

  and drops me back to the Linux prompt.

It does this regardless of the client (DOS, Windows, Mac or Un*x).
Ping finds the box and since it sometimes works I'm a bit stuck on
what to try next. I've tried "kill -HUP <inetd PID>". The damn
thing is visible and connect-to-able...

Our campus uses nameservers and I've included four in resolv.conf.
Name resolution uses "named" nameservers first. (Order bind, host
in host.conf).

I've just tried *again* and ... then damn thing is now working!!!
I have a few ideas but don't know how to test them, they are:

- Could it be something is timing out (our network is very busy
  and slow quite often) ? How do I confirm this ?

- Could it be some connection limit (shouldn't be, it's very rare
  that more than one person are connected at once).
  Where is this info held ?

- Could it be a name resolution funny (would "host" help here ?).
  Can I test this ?

- Could it be the first Telnet request(s) fail until some
  sort of dynamic table somewhere is updated ?

- Is inetd not loading telnetd for some reason ?

I've checked that the symbolic name and IP number are correct.
The system does a reboot (via a cron script) but this is
identical to another (486) Linux box which works fine ...

I've read books, scanned FAQs etc. but don't really know
where I can sensibly look next. I don't expect answers,
just suggestions of what/where to looknext.
I apologise if this is a trivial or stupid question, I'm
an acting sysadmin with my "L" plates still on ...

Also, another query:
Where is lpd loaded at boot-time ?
Can it safely be *not* loaded to save CPU and RAM ?
(the machine doesn't have a printer attached).

Thanks in advance for any information/suggestions,


I say "Hello" Linux says "Goodbye" ... aaarghhh

Post by Thomas Bah » Thu, 09 Feb 1995 19:30:02


I don't guess it's the solution, but have a look at it. Your ftp problems
are somehow known to me. A colleague had a restricted shell in his passwd
entry and wasn't able to ftp for that reason. I don't know if telnet hangs
too if so. But you should be able to find out whether you have a "real"
shell like /bin/bash in your passwd entry.

Hope this helps,


1. sh says: test "$1" = "" when $1="-b"

I'm trying to write a dinky sh script which contains the following
while loop:

while test "$1" != ""
        case "$1" in
                -i) input=$2; shift ;;
                [+\-][0-9]*) version=$1 ;;
                -v) month=$2; day=$3; shift; shift ;;
                -d) del="yes" ; echo "XX" ;;
                -*) echo "get: unknown argument $1" 1>&2; exit 1 ;;
                *)  file=$1 ;;

The echo "XX" statement is only for debugging.

Anyway, when $1 is "-d", the test statement exits false, and the -d)
line in the case statement is not executed.  Any arguments after this
one are ignored by the while statement.  When I change the line in the
case statemet to -b) , the script works as expected.

What gives?


2. Printer Metering. Possible? How?

3. GETSERVBYNAME()????????????????????"""""""""""""

4. Compiling XFree86 3.3.3

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. KExpress

7. erroneous "hello" from forked "hello world" process!

8. vt420 keymapping help.

9. Type "(", ")" and "{", "}" in X...

10. "Hello World!" = "HellWrld" on Solaris 8, Linux ok

11. XFree86 says "mgag400" is not a valid driver" !

12. "w" says "2 users" but only lists one

13. Why the "x" in the words "Unix", "Linux"...?