LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices



Reply
 
Search this Thread
Old 09-06-2006, 01:48 PM   #1
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Rep: Reputation: 15
Need help configuring PuTTY settings


Hi,

I use PuTTY to connect to a remote AIX machine.

It work like expected when I connect to my local Linux server but when I connect to the AIX machine I have a few problems: the Tab and Backspace keys don't work, if I press the up arrow the cursor goes up one line etc...

What settings do I have to change in PuTTY to get it to work correctly?

Thanks!
 
Old 09-07-2006, 01:21 AM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
The backspace can easily be fixed by setting the backspace key to 'Control-H' as specified in the Terminal-Keyboard configuration. I've never had a problem with the tab key nor the arrow keys. It depends on your shell as to how the tab and arrow keys are interpreted. Typing in 'set -o vi' may change that behavior to what you expect. Also if you forget to switch the backspace key you can change the backspace key for the session by typing 'stty erase <backspace key>'
 
Old 09-07-2006, 11:17 AM   #3
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
Thanks!

That fixed the backspace problem.

Still having the problem with the other keys.

The remote machine is running AIX 5.2.
 
Old 09-07-2006, 11:19 AM   #4
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
what does 'echo $TERM' and 'echo $SHELL' report?
 
Old 09-07-2006, 11:23 AM   #5
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
$TERM returned xterm and $SHELL returned /bin/ksh.

BTW, this is the first time I'm using AIX. So sorry about that
 
Old 09-11-2006, 07:14 AM   #6
Yordan
Member
 
Registered: Nov 2004
Posts: 54

Rep: Reputation: 15
In the putty configuration menu, choose "Terminal", then "Features" and check the second box "Disable application keypad mode", this should fix the numeric keypad, arrows etc... things
 
Old 09-11-2006, 11:53 AM   #7
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
I tried this and tab is still not working.

Maybe it is something on the AIX side instead of my side.
 
Old 09-12-2006, 09:42 AM   #8
Yordan
Member
 
Registered: Nov 2004
Posts: 54

Rep: Reputation: 15
Quote:
Originally Posted by Yig
I tried this and tab is still not working.

Maybe it is something on the AIX side instead of my side.
What is your terminal definition ? just type "echo $TERM"
mine is "xterm" and the TAB works, for instance for choosing options inside "smit lv".
If your term is not "xterm", try
TERM=xterm
export TERM
tset
smit lv

If this works, you should look where the TERM definition is modified, whether in .profile or in /etc/profile or in /etc/environment.
 
Old 10-01-2006, 05:14 AM   #9
shadow5277
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Redhat FC4, Fedora 8 and AIX 5.3, AIX 6.1
Posts: 39

Rep: Reputation: 16
Yig

I guess the best question to ask you is what exactly do you want to use the TAB key for if you are trying to use the TAB key for command line completion it isn't a putty issue. Your issue is ksh if you are running ksh you default ksh will ksh88 which doesn't have command line completion set to the TAB key you will have to use esc key then the | symbol "shift+|" to complete the names on the command line. This is usually a difference of working on linux using the BASH shell and then going to aix and having to use ksh. If you want you can go to the site of http://www.research.att.com/sw/download/ and get ksh93r which has the TAB command line completion built into it or you can go to the site of http://aixpdslib.seas.ucla.edu/ and in the search type in BASh and you can get bash to setup as you default shell. Hope this helps.
 
Old 10-03-2006, 07:56 AM   #10
tcort
LQ Newbie
 
Registered: Jul 2006
Location: Williamstown, VT, USA
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by Yig
Hi,

I use PuTTY to connect to a remote AIX machine.

It work like expected when I connect to my local Linux server but when I connect to the AIX machine I have a few problems: the Tab and Backspace keys don't work, if I press the up arrow the cursor goes up one line etc...

What settings do I have to change in PuTTY to get it to work correctly?

Thanks!
If you use vi mode ("set -o vi" in your .profile or issued at the command line) you can get access to the command history. Hit escape and then use the vi cursor keys to go through the history (k = up, j = down). Alternatively, you can use the command 'r' to run the previous command. It should be noted that the command history is per user, not per session as it is in bash. If you are logged in multiple times as the same user, the last command issued in any of the sessions is the most recent.

In vi mode you can also get filename completion. Just start typing a filename (as an example type "ls /lo") and hit escape and then hit the '\' key. It will complete the rest of the filename ("ls /lost+found").
 
Old 06-26-2007, 06:20 AM   #11
samcthomas
LQ Newbie
 
Registered: Jun 2007
Location: India
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by tcort
If you use vi mode ("set -o vi" in your .profile or issued at the command line) you can get access to the command history. Hit escape and then use the vi cursor keys to go through the history (k = up, j = down). Alternatively, you can use the command 'r' to run the previous command. It should be noted that the command history is per user, not per session as it is in bash. If you are logged in multiple times as the same user, the last command issued in any of the sessions is the most recent.

In vi mode you can also get filename completion. Just start typing a filename (as an example type "ls /lo") and hit escape and then hit the '\' key. It will complete the rest of the filename ("ls /lost+found").

Thank you for the help. I found this as working in my system
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring video settings from command line stannnn Linux - Newbie 1 06-19-2005 05:33 PM
Configuring proxy settings for yast update behind a firewall fintan Suse/Novell 2 02-05-2005 02:01 PM
problem saving putty settings ddaas General 3 01-13-2005 05:59 PM
Configuring the KDE Desktop Settings Wizard (KPersonalizer) aesahaettr Linux - Software 0 05-21-2004 05:45 AM
Mandrake 10.0 Gnome/KDE Taskbar icon settings...are there settings? LiquidRezin Linux - Newbie 2 03-22-2004 10:27 AM


All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration