Difference between revisions of "Putty"

From WebOS Internals
Jump to navigation Jump to search
(New page: == Detailed Putty Terminal Settings using SSh-2, DropBear and DynDNS.== * How to configure Putty for the Dynamic DNS to the Pre, so you can connect via Wifi and have good terminal setting...)
 
Line 11: Line 11:
 
*  
 
*  
 
* First, in Putty we will work from bottom to top screens, doing the "session" window as last step to save settings for reuse at later time.
 
* First, in Putty we will work from bottom to top screens, doing the "session" window as last step to save settings for reuse at later time.
 
 
  
  
Line 22: Line 20:
 
*  Disable Nagle's algorithm - checked
 
*  Disable Nagle's algorithm - checked
 
*  Enable TCP keepalives - checked
 
*  Enable TCP keepalives - checked
 
  
 
2. Click on (select) the word '''SSH''' and on that screen change preferred protocol version = 2.  There is no need to save yet.
 
2. Click on (select) the word '''SSH''' and on that screen change preferred protocol version = 2.  There is no need to save yet.
Line 50: Line 47:
  
 
10. TEST by waking up your phone so it connects to wifi, and then double click on the saved session "Palm Pre Dropbear" you should be asked your password.
 
10. TEST by waking up your phone so it connects to wifi, and then double click on the saved session "Palm Pre Dropbear" you should be asked your password.
 
------
 
  
 
If you get the prompt you're in!  Success on SSH-2
 
If you get the prompt you're in!  Success on SSH-2
 
 
------
 
  
 
== Troubleshooting suggestions:==
 
== Troubleshooting suggestions:==
Line 63: Line 55:
 
If it works good at first, but then after a minute of idle it seems to be sluggish or slow, then check the keepalives setting in above section.
 
If it works good at first, but then after a minute of idle it seems to be sluggish or slow, then check the keepalives setting in above section.
 
To keep the phone active PLAY MUSIC like mp3s while working on a remote session, or use the tweak to increase idle timer on the screen settings ( 30 minutes.)
 
To keep the phone active PLAY MUSIC like mp3s while working on a remote session, or use the tweak to increase idle timer on the screen settings ( 30 minutes.)
 
------
 
  
 
== Using PuTTY - Usage Tricks.==
 
== Using PuTTY - Usage Tricks.==
Line 75: Line 65:
 
* If you make any session changes that you want to save for future connections, you'll need to do the SAVE step 9 again too.
 
* If you make any session changes that you want to save for future connections, you'll need to do the SAVE step 9 again too.
 
* Some have said that playing MP3 while in telnet session helps the phone to stay awake and responsive
 
* Some have said that playing MP3 while in telnet session helps the phone to stay awake and responsive
 
------
 
  
 
== About this Wiki Putty page==
 
== About this Wiki Putty page==
  
 
//Contributed by FreeTim3 , but feel free to append to it your own tricks.//
 
//Contributed by FreeTim3 , but feel free to append to it your own tricks.//

Revision as of 01:09, 22 July 2009

Detailed Putty Terminal Settings using SSh-2, DropBear and DynDNS.

  • How to configure Putty for the Dynamic DNS to the Pre, so you can connect via Wifi and have good terminal settings.


Detailed settings for Putty: v0.60

  • We assume you've installed PuTTY software - if not you can get it at this link
  • We assume you've already completed the [[[ddns-update |Dynamic DDNS install for the Pre]]] from this wiki.
  • First, in Putty we will work from bottom to top screens, doing the "session" window as last step to save settings for reuse at later time.


0. Run PuTTY then;

1. Expand CONNECTION in the left-hand pane by clicking on the plus (+) sign.

  • Seconds between keepalives 30 --- these settings required
  • Disable Nagle's algorithm - checked
  • Enable TCP keepalives - checked

2. Click on (select) the word SSH and on that screen change preferred protocol version = 2. There is no need to save yet.

3. (Optional) On the left-hand pane select "Window" and set "columns" =100 "Rows" =50 and "lines of Scrollback" = 600. Higher values give the advantage to scroll back more, at the cost of using more local WindowsXP swap file space.

4. (Optional) On the left-hand pane under WINDOW, choose APPEARANCE. Change the font to Fixedsys, 12-point.

5. On the left-hand pane under TERMINAL, choose KEYBOARD.

  • Set: Backspace key to 127. --- these settings required
  • Choose Function Keys VT100

6. On the left-hand pane select TERMINAL itself.

  • Enable "Auto Wrap", Enable "Use Background Color", uncheck the others ("DEC", "Implicit", and "Blinking.")
  • For Line Discipline options choose AUTO and again AUTO. - some have reported the Force Off works for them.

7. On the left-hand pane select SESSION.

  • For the hostname - enter your DynDNS hostname you assigned during DynDNS "yourhostname.getmyip.com" for example
  • For the port - choose 222

8. (Optional) under Session LOGGING you can turn logging on and give some file name. This may help you when chatting in the IRC channel if you want to share your session text with others.

9. In "Load" box on this same window, give some friendly name like "Palm_Pre_Dropbear" and click SAVE button. This is the point where it saves all of the above settings, which is why we do it last even though it's the 'first' screen when opening putty.

10. TEST by waking up your phone so it connects to wifi, and then double click on the saved session "Palm Pre Dropbear" you should be asked your password.

If you get the prompt you're in! Success on SSH-2

Troubleshooting suggestions:

If it never connects, can you PING to your hostname? The TTL for DynDNS is 60 seconds, so after you 'wake up' your pre the IP may not be correct for one minute. Also set your Pre to the 3-minute timeout screen value so it doesn't go to sleep too quickly during testing. If it works good at first, but then after a minute of idle it seems to be sluggish or slow, then check the keepalives setting in above section. To keep the phone active PLAY MUSIC like mp3s while working on a remote session, or use the tweak to increase idle timer on the screen settings ( 30 minutes.)

Using PuTTY - Usage Tricks.

  • You can PASTE text from wiki into PuTTY: control-c to copy into your windowsXP clipboard. Then in Putty, simply RIGHT clicking does paste. This trick makes it super easy to use commands exactly from this wiki.
  • COPY text from PuTTY: Simply select the text. The text will automatically be placed into windows clipboard
  • Or you can capture all of your scrollback into your clipboard by right-clicking the blue header bar, and selecting Copy All To Clipboard option
  • There is configurable logging too, if it helps you. It's off by default, but see Step8 above.
  • If you make any session changes that you want to save for future connections, you'll need to do the SAVE step 9 again too.
  • Some have said that playing MP3 while in telnet session helps the phone to stay awake and responsive

About this Wiki Putty page

//Contributed by FreeTim3 , but feel free to append to it your own tricks.//