Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export TERM 2

Status
Not open for further replies.

MichelleButler

IS-IT--Management
Apr 5, 2002
73
GB
I am using Telnet as an emulator to connect to my AIX server, but every time I connect I have to run Export TERM=vt100 for the terminal settings. Does anybody know any good scripts that the terminal accepts the vt100 type on logon.

Many thanks

Michelle
 
put 'export TERM=vt100' in your .profile file on the server

Alex
 
Just edit your .profile and insert

TERM=vt100;export TERM
set -o vi
stty erase <backspace>


The 'set -o vi' allows you to use esc j or k to go through the history of previous commands

The stty erase <backspace> sets up the backspace key to delete text backwards, where I've typed <backspace> you need to press the backspace key, you'll see something like ^h then press return


Regards Mike --
| Mike Nixon
| Unix Admin
| ----------------------------
 
Many thanks for your suggestions, I have tried all the solutions mentioned but this doesn't seem to work when I log in as root. This will work for other users but not as root. Any other suggestions!!

Michelle
 
What shell does root use?
 
root has his own .profile so you can either do &quot;su&quot; without the dash to keep your profile (I'm assuming you are doing &quot;su -&quot;) or put the lines in /etc/profile so they apply to everyone (unless overriden in the user's .profile).
 
first check which terminal is set up by your terminal emulator and change if you feel this is incorrect

>eval `tset -sQ ?$TERM`

next
check custom key mapings (with same reason as above)

>tset

usually one of these work :
dumb vt100 vt200 vt220 xterm

to check if brand new setup is ok i'd check at least one of:
screen pg vi mc

and now append my 1st command line with exact paths to tset and eval in your root's profile
 
Hi Michelle,

If your emulator is sending it's identifycation (Ex: vt100), then this line should help you:

[ $TERM ] && eval `tset -m :\${TERM} -r -s -Q`

If Not, try this one:

eval `tset -m ibm3151:${TERM:-ibm3151} -m :\?${TERM:-ibm3151} -e -r -s -Q`

Have a nice day
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top