This forum is no longer active. Please post your questions to our new community site

Unknown Terminal Type

Subscribe to Unknown Terminal Type 6 post(s), 2 voice(s)

 
Avatar jpower 3 post(s)

Hello, I am running an ec2 instance using the image: ami-d2f709bb

I am currently connecting to the server via Putty however when ever I log in the server complains that it can’t find my terminal type:

bitnami@ip:~$ clear
‘xterm’: unknown terminal type.
bitnami@ip:~$ echo $TERM
xterm
bitnami@ip:~$ ls /lib/terminfo/x
xterm xterm-color xterm-mono xterm-r6 xterm-xfree86
xterm-256color xterm-debian xterm-r5 xterm-vt220

I have found the TERMINFO database at /lib/terminfo and have set full permissions from the terminfo directory on down, but no joy. I have also set an env variable $TERMINFO=/lib/terminfo

Any idea what I am doing wrong?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Could you try to run the following command?

$ export TERM=console

or

$ export TERM=linux

 
Avatar jpower 3 post(s)

Thank you for your response.
I have given them a try, but they have the same problem

bitnami@ip$ clear
‘linux’: unknown terminal type.

bitnami@ip$ clear
‘console’: unknown terminal type.

bitnami@ip$ ls /lib/terminfo/c
cons25 cygwin

bitnami@ip$ ls /lib/terminfo/l
linux

bitnami@ip$ export TERM=cons25
bitnami@ip$ clear
‘cons25’: unknown terminal type.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Try deleting /opt/bitnami/common/bin/clear We will fix this issue for next releases. Thanks for reporting it.

 
Avatar jpower 3 post(s)

I removed the version of clear in that directory and then i started getting complaints that /opt/bitnami/bin/clear could not be found. So I think a path needs to be update as well for those following along. I am a little lazy so i just copied /usr/bin/clear into the /opt/bitnami/bin =D

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Ok thanks for posting it.