Anyway, I keep getting an error message:
Code: Select all
telnet: Can't connect to remote host (127.0.0.1): Connection refused
Code: Select all
telnet: Can't connect to remote host (127.0.0.1): Connection refused
Code: Select all
Making install in headers
make[1]: Entering directory `/tmp/inetutils-1.4.1/headers'
make[2]: Entering directory `/tmp/inetutils-1.4.1/headers'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/inetutils-1.4.1/headers'
make[1]: Leaving directory `/tmp/inetutils-1.4.1/headers'
Making install in libinetutils
make[1]: Entering directory `/tmp/inetutils-1.4.1/libinetutils'
source='ttymsg.c' object='ttymsg.o' libtool=no \
depfile='.deps/ttymsg.Po' tmpdepfile='.deps/ttymsg.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPATH_WTMPX=\"/usr/local/var/log/wtmpx\" -I../include -g -O2 -c `test -f 'ttymsg.c' || echo './'`ttymsg.c
ttymsg.c: In function 'ttymsg':
ttymsg.c:135: error: lvalue required as left operand of assignment
make[1]: *** [ttymsg.o] Error 1
make[1]: Leaving directory `/tmp/inetutils-1.4.1/libinetutils'
make: *** [install-recursive] Error 1
Code: Select all
Copying /tmp/inetutils-1.4.1/include/glob.h as /mnt/sdc1/inetutils-1.4.1/include/glob.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/fnmatch.h as /mnt/sdc1/inetutils-1.4.1/include/fnmatch.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/crypt.h as /mnt/sdc1/inetutils-1.4.1/include/crypt.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/arpa as /mnt/sdc1/inetutils-1.4.1/include/arpa
Copying /tmp/inetutils-1.4.1/include/arpa/telnet.h as /mnt/sdc1/inetutils-1.4.1/include/arpa/telnet.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/arpa/ftp.h as /mnt/sdc1/inetutils-1.4.1/include/arpa/ftp.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/arpa/tftp.h as /mnt/sdc1/inetutils-1.4.1/include/arpa/tftp.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/protocols as /mnt/sdc1/inetutils-1.4.1/include/protocols
Copying /tmp/inetutils-1.4.1/include/protocols/talkd.h as /mnt/sdc1/inetutils-1.4.1/include/protocols/talkd.h
ERROR: Operation not permitted
Copying /tmp/inetutils-1.4.1/include/tftpsubs.h as /mnt/sdc1/inetutils-1.4.1/include/tftpsubs.h
ERROR: Operation not permitted
Code: Select all
telnet: Can't connect to remote host (127.0.0.1): Connection refused
Code: Select all
Trying 127.0.0.1.
Connected to 127.0.0.1.
Escape character is '^]'.
Code: Select all
Connection closed by foreign host.
Code: Select all
cat /etc/hosts.allow
Code: Select all
ALL: LOCAL
Code: Select all
# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Linux 2.6.33.2 (localhost) (2)
puppypc login:
Code: Select all
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Code: Select all
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
Code: Select all
grep telnetd /var/log/messages | tail
Code: Select all
sh-4.1# grep telnetd /var/log/messages | tail
Mar 5 22:40:13 puppypc authpriv.warn in.telnetd[732]: refused connect from 127.0.0.1 (127.0.0.1)
Code: Select all
grep 127.0.0.1 /etc/hosts
diff /initrd/pup_ro2/etc/hosts.allow /etc/hosts.allow
Code: Select all
ls -l /etc/hosts
ls -lc /etc/hosts
Code: Select all
127.0.0.1 localhost puppypc
Code: Select all
hostname
No output from either. They just immediately give me new prompts.npierce wrote:After failing with "Connection closed by foreign host", what output, if any, do you get from these two commands?:Code: Select all
grep 127.0.0.1 /etc/hosts diff /initrd/pup_ro2/etc/hosts.allow /etc/hosts.allow
Actually, I think I can tell you what went wrong myself. I was following a guide to get some network option to work with Wine a few months ago, and I changed that file several times. I must have been doing things wrong, because I never did get it to work.npierce wrote:[EDIT, 13:54 UTC]
Before editing /etc/hosts, save the output from these commands for a clue as to what went wrong:[/EDIT]Code: Select all
ls -l /etc/hosts ls -lc /etc/hosts
The error message that you found in /var/log/messages indicates that you probably don't have an entry for 127.0.0.1 in your /etc/hosts file. If the grep 127.0.0.1 /etc/hosts command suggested in my previous post doesn't give you any output, that would verify that it is missing. If so, add a line like this to the file:But replace "puppypc" with the output from this command if different:Code: Select all
127.0.0.1 localhost puppypc
Code: Select all
hostname