Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3357
  • Last Modified:

Debian Linux - Terminal Type

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
angelous
Asked:
angelous
  • 4
  • 4
1 Solution
 
Karl Heinz KremerCommented:
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
 
angelousAuthor Commented:
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
 
Karl Heinz KremerCommented:
Did you install the terminfo package?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
angelousAuthor Commented:
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
 
Karl Heinz KremerCommented:
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
 
angelousAuthor Commented:
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
 
Karl Heinz KremerCommented:
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
 
angelousAuthor Commented:
Thank you so much. You Have saved me a big headache.

Your help is much appreciated.


Rik.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now