From WebOS Internals
Revision as of 12:23, 22 July 2009 by FreeTim (talk | contribs) (Minor formatting changes and added some detail to some of my steps.)
Jump to navigation Jump to search

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

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.

  • Comment - This is the step that stops you from sending your password in the clear - SSH2 encrypts entire session including your logon to your Pre for safety.

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.

  • Recommended. 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 are prompted to 'add security certificate' upon your first connection to your Pre, answer yes.
  • If you get the Linux prompt then success you're in!
  • Success on SSH-2 !! Jump for joy. Read tricks below on usage.

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.//