Operating System - Linux
1829417 Members
2484 Online
109991 Solutions
New Discussion

Re: terminfo and telnet hard question

 
SOLVED
Go to solution
Jan Sladky
Trusted Contributor

terminfo and telnet hard question

Hi all admins,
I have specific question regarding to terminfo and telnet.
I have been using proptietary application that is using telnet. On RH 7.2 telnet works, but on my SuSE 9.1 telnet server dismiss connection due to unknown network terminal, see bellow (tcpdump -i lo -A -s 0 port 23)

IP localhost.telnet > localhost.34725:
Last login: Wed Dec 8 16:01:56 from localhost
Have a lot of fun... #means that I'm connected



IP localhost.telnet > localhost.34725
tset: unknown terminal type network


IP localhost.telnet > localhost.34725
Terminal type?


On SuSE exits /usr/share/terminfo/n/net that contains :
net|network|arpanet|dialup|unknown network terminal typeP

on RH7.2 this file doesn't exist.
Removing file from SuSE doesn't help

telnet on localhost works



Does exist some way how to discover which network terminal is sent from aplication or better, how to disable on telnet server verifying of network terminal type ?

I was getting through docs but so far without result.

Any help appreciated

rgds Jan
GSM, Intelligent Networks, UNIX
4 REPLIES 4
Kodjo Agbenu
Honored Contributor

Re: terminfo and telnet hard question

Hello,I would like to know what kind of system or terminal are you telneting from.If you are on a Unix or Linux system, type echo $TERM.Another point : telnet to Red Hat 7.2 and echo $TERM.Good luckKodjo
Learn and explain...
Ermin Borovac
Honored Contributor
Solution

Re: terminfo and telnet hard question

Have a look in /etc/profile on your Suse server. There should be a line similar to

test -x /usr/bin/tset && /usr/bin/tset -I -Q

/> echo $TERM
network
/> tset -I -Q
tset: unknown terminal type network
Terminal type?

tset doesn't like terminal type network. To prevent questions about terminal type you can change line in /etc/profile to

test -x /usr/bin/tset && /usr/bin/tset -I -Q -m network:vt100

/> tset -I -Q -m network:vt100
/>
Jordan Bean
Honored Contributor

Re: terminfo and telnet hard question

It appears that the application is defining its term as 'network', which RH 7.2 may be ignoring or defaulting. I can't be sure at this point.

However, SuSE 9.1 is not ignoring it, but should already have it defined. On my SuSE 9.1 host terminfo/n/network is a symlink to terminfo/n/net. Creating the symlink should resolve your problem.
Jan Sladky
Trusted Contributor

Re: terminfo and telnet hard question

Thanks Ermin !

rgds Jan
GSM, Intelligent Networks, UNIX