Solved

Debian Linux - Terminal Type

Posted on 2003-12-09
8
3,315 Views
Last Modified: 2013-12-15
Hi

I am using SSH puTTy client to login to my Debian Linux Server, however after upgrading, it no longer likes the 'xterm' terminal type.

When i issue commands such as 'clear' or 'top' i get:

'xterm': unknown terminal type.

I have tried various others: vt100, linux etc etc.



Rik.
0
Comment
Question by:angelous
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9903335
What did you upgrade, the server or puTTy? Which terminal is reported when you log on the server using the console? The system should know linux, vt100 or xterm.
0
 

Author Comment

by:angelous
ID: 9903363
hi

i upgraded debian, using apt-get upgrade. then the next time i logged in this started to happen.

when i dont set a term type and run


root@xbox:~# echo $TERM
dumb

Hope this helps.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9903381
Did you install the terminfo package?
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:angelous
ID: 9903406
Well i havnt actively installed that seperately. How do i get and install that? Or detect if its present.

My server is telnet administered only.


Rik.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9903550
To find out if you have terminfo installed, check the directory
/usr/lib/terminfo
The directory contains sub directories with letter names. If you are looking e.g. for the xterm description, go to the x directory and see if the xterm file is there.

I've never used apt-get (or Debian), but I think the command to install it is
apt-get install terminfo

You could do a
apt-get --dry-run  install terminfo
first to see if it would even install the package.
0
 

Author Comment

by:angelous
ID: 9903712
hi

no such directory.

i run that command but says no package found.

this is most annoying as i cant see any realy reason why an upgrade would do this?



rik.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 50 total points
ID: 9903806
I just found this on http://www.debian.org/doc/manuals/reference/ch-tips.en.html:

--------------------------------------------------------------------------------------------------------------
8.6.9 Set console to the correct type
Console screens in Unix-like systems are usually accessed using (n)curses library routines. These give the user a terminal-independent method of updating character screens with reasonable optimization. See ncurses(3X) and terminfo(5).

On a Debian system, there are quite a lot of predefined entries:

     $ toe | less                  # all entries
     $ toe /etc/terminfo/ | less   # user reconfigurable entries
Export your selection as environment variable TERM.

If the terminfo entry for xterm doesn't work with a non-Debian xterm, change your terminal type from "xterm" to one of the feature-limited versions such as "xterm-r6" when you log in to a Debian system remotely. See /usr/share/doc/libncurses5/FAQ for more. "dumb" is the lowest common denominator for terminfo.

--------------------------------------------------------------------------------------------------------------

Try the toe command to see if it's there. This should list all known terminal types. If this also fails, we have to figure out why the apt-get does not work.
0
 

Author Comment

by:angelous
ID: 9904616
Thank you so much. You Have saved me a big headache.

Your help is much appreciated.


Rik.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question