GNS3
http://forum.gns3.net/

PuTTY Patch - GNS3 Build
http://forum.gns3.net/topic5016.html
Page 1 of 4

Author:  tranzitwww [ Mon Jun 18, 2012 8:11 pm ]
Post subject:  PuTTY Patch - GNS3 Build

I've moved PuTTY patch from HOWTOs here... (Old topic)

This is a modified PuTTY version that has some cool features created specially for GNS3.

Changelog:
Quote:
* create multi-tab window (better saying: find the right tool to do that) - Recommended with SuperPuTTY, see bellow
--
* add transparent window feature
* add GUI element for transparent window + save/load the value from registry
--
* add check sign for always on top menu entry (when is on).
* modifies the default window "width" form 80 to 110 (this is the hard coded default!)
--
* add always on top feature
* update the GUI part for all GNS3 special settings ;)
* save/load GNS3 options from registry as any other PuTTY option.
* add event log entry if can't connect to serial pipe/com.
* update some GUI messages (About dialog) + Link to GNS3 :D
--
* using a new approach to call the auto-restart function using PostMessage()
* has a better threads management (used for auto-restart delay).
* fixed some issues related to the way same variables are used :D
--
* remove "-sr" option, (replaced with "-gns3")
* add the option "-gns3 <NR>" which is reconfiguring some default putty variables (check "About")
* replace all MessageBox errors with a message in the title bar (activated with -gns3)
* auto-restart a inactive session after a defined number of seconds <NR>. If NR=0 is disabled. Works with SSH/Telnet/Serial/Etc.. (activated with -gns3)
* add -skin option to change the text and background using 4 defined themes
* add the option to enable putty logging from CLI with "-log <Logs_Path>". This will generate a new log for each connection (filename is generating from -wt or IP address)
--
* build standalone version using winstore.c from http://jakub.kotrla.net/putty/
--
* add the option to enter a '\r' in serial connection as well (previously was for telnet only)
* modify the version to GNS3 build :)
--
* automatically press a enter key inside the console using "-sr" CLI argument (just for telnet)
--
* allow to change the window title from command-line + disable the remote title feature (-wt WinTitle).


TODO:
Quote:
* make a custom icon with a mix from GNS3 and PuTTY :D (Please help!)


This is released on: 12.07.2012
The archive is containing both PuTTY versions (Normal + Standalone) for Windows (.exe)
Attachment:
File comment: Compiled PuTTY 0.62 for windows:
1 - Normal PuTTY with this patch.
2 - Standalone version with local storage and this patch (is using files instead of regs)

PuTTY_GNS3_Build.zip [561.02 KiB]
Downloaded 5106 times


Highlight Patch -> http://pastebin.com/FsPCFvRG
Attachment:
putty_patch.txt [41.43 KiB]
Downloaded 1616 times

Attachment:
about.jpg
about.jpg [ 62.71 KiB | Viewed 42438 times ]

Attachment:
special_config.jpg
special_config.jpg [ 57.62 KiB | Viewed 42438 times ]


putty -wt "R1 Console" -gns3 5 -skin 3 -telnet 127.0.0.1 2001
Attachment:
Putty_Demo.jpg
Putty_Demo.jpg [ 85.6 KiB | Viewed 42857 times ]

Author:  tranzitwww [ Wed Jul 11, 2012 10:20 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

PuTTY patch updated... [Recommended to update to the latest version]

Please give me feedback if you encounter any problems with this custom putty version,
to fix them before this will go in the official GNS3 all-in-one version (Windows)

If there are no complains/comments till now, then I will assume that it is working fain ;)

Thanks!

Author:  Khaled [ Wed Jul 11, 2012 11:08 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Multi-tab Putty integration would be useful for a lot of people!

This software uses Putty as well but with an additional tabs feature. http://ttyplus.com/multi-tabbed-putty/

Would be hard to implement this into GNS3 instead of the single window Putty?

Author:  tranzitwww [ Thu Jul 12, 2012 3:34 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Hi,

I know that the multi-tab feature for putty is a must have, but this is hard to achieve :)
I've tried with MTPuTTY, WinTabber, PuTTY Tab Manager, PuttyTabs, PuTTY Connection Manager

But I didn't found a way to pass PuTTY command line thru any of those programs. Seems that all are using GUI only and no command line for what I need ...
Some of them are using scripts or a file to load some sessions from there, but nothing dynamic..

Later I've found SuperPutty :)
And this one works with command line for PuTTY and supports tabs (requires .NET Framework 2 or later): SuperPutty.exe -telnet 127.0.0.1:2001 -> putty.exe -telnet -P 2001 127.0.0.1
But I don't know how to pass all command line parameters required for putty

Also WindowTabs is great, but works with anything except PuTTY (has a bug) :D

---[Edit]---

Check this feature request on PuTTY official site -> PuTTY wish multiple-connections
And there is a petition ready to be signed for this propose (signed by 901/1000)

Author:  tranzitwww [ Thu Aug 02, 2012 6:49 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Well, native tabs for PuTTY is still a dream ;)

So, I've start with "AutoHotKey" to build a kind of command line support for "MTPuTTY". (Later I'll add support for other tools)

* Download MTPuTTY, Place it in GNS3 installation directory, open MTPuTTY.exe
* From "Tools->PuTTY Location" configure the Path to Putty.exe (One coming with GNS3). If Putty.exe is in the same folder with MTPuTTY.exe, just use putty.exe for the location
* From "Tools->Settings" configure: "On normal session termination=Show reconnect box", "On unexpected...=Leave Putty Window", Check "Display close button on tabs"
* For mtputty_cli1.exe configure: "Tab name=Replicate Putty..." and for mtputty_cli2.exe switch to "Tab name=Show display name"
* From "Tools->Hotkeys" configure "Attach PuTTY session=Ctrl+Alt+A" (Required for mtputty_cli2. Without this will not work!)
* From View clear all (toolbar/main menu/servers) (Use Ctrl+M to bring back "main menu").
* Place all programs in GNS3 installation directory (putty.exe, mtputty.exe, mtputty_cli1.exe/mtputty_cli2.exe)

Attachment:
PuTTY_Tabs-MTPuTTY.zip [820.73 KiB]
Downloaded 1045 times

Configure GNS3 terminal settings:

[mtputty_cli1.exe]
#Doesn't support the possibility to name the tabs ;(
#Use a delay of 0.5 or 1.0 to work properly
#You have to configure PuTTY (one coming with GNS3) to enable the latest features by modifying the "Default Settings" profile (Similar to -gns3 5)
#Configure MTPuTTY "Tools->Settings->Tab name" to "Replicate PuTTY window caption" (Best in this scenario)
Telnet: mtputty_cli1.exe -t %h %p
Serial.: mtputty_cli1.exe -s %s

[mtputty_cli2.exe]
#Use full PuTTY command line ;)
#Also use a delay of 0.5 or 1.0 to work properly
#Configure MTPuTTY "Tools->Settings->Tab name" to "Show Display name" (Best in this scenario, because there is a bug in MTPuTTY)
#Ensure that MTPuTTY "Tools->Hotkeys->Attach PuTTY session" is "Ctrl+Alt+A" !
Telnet: mtputty_cli2.exe "-wt %d -gns3 5 -telnet %h %p"
Serial.: mtputty_cli2.exe "-wt %d -gns3 5 -serial %s"

Attachment:
MTPuTTY.jpg
MTPuTTY.jpg [ 85.48 KiB | Viewed 41476 times ]

Author:  tranzitwww [ Fri Aug 03, 2012 9:26 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Command line support for "PuTTY Tab Manager" with "AutoHotKey" scripts. (WinTabber and PuTTY Tabs can't be used)

* Download PuTTY Tab Manager, Place it in GNS3 installation directory, open mtputty.exe
* From main menu "Options->Configuration" configure the Path to Putty.exe (One coming with GNS3). If Putty.exe is in the same folder with puttytm.exe, just use putty.exe for the path.
* Also from there select all the options "Hide tool bar, Hide status bar, Do not show splash..."

Attachment:
PuTTY_Tabs-PuTTYTM.zip [410.71 KiB]
Downloaded 850 times

Configure GNS3 terminal settings:

[puttytm_cli.exe]
#Use a delay of 0.5 or 1.0 to work properly
#Use full PuTTY command line, but should start with %h or Host/IP !
Telnet: puttytm_cli.exe "%h %p -wt %d -gns3 3 -skin 4" "%d"
Serial.: N/A (There is a "@" character which is always send to putty command line. For serial it looks like @\\.\pipe\pipe_name and of course PuTTY doesn't agree with that. For this use "enable console server" and will use telnet instead of serial)

Attachment:
PuTTYTabManager.jpg
PuTTYTabManager.jpg [ 73.3 KiB | Viewed 41476 times ]

Cheers!

Author:  tranzitwww [ Mon Aug 13, 2012 7:44 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Command line support for "Super PuTTY" without any AutoHotKey scripts.
This tool has native command line support and works very nice ;)
For portable GNS3 version you will need .NET Framework 2.0 or newer installed on the machine!

* Download the latest version of Super PuTTY (Tested with v1.3.0.11, Warning: beta versions can be unstable)
* Place "SuperPutty.exe", "WeifenLuo.WinFormsUI.Docking.dll" and "log4net.dll" in GNS3 installation directory (you will not need SuperPutty.pdb and SuperPutty.exe.config)
* Download the config attached here and place "SuperPutty.settings" in GNS3 installation directory (same with "SuperPutty.exe" and "Putty.exe")
* Create a empty folder named "layouts" in GNS3 installation directory (Doesn't start without this empty folder!!!)
* Now SuperPutty will be configured to use PuTTY.exe from GNS3 installation directory and will have the right settings related to GNS3 scenario.
* Warning: If you opened SuperPutty before parsing those steps please delete its default settings creates in "My Documents":
"C:\Users\<USER>\SuperPuTTY" (Folder), "C:\Users\<USER>\Documents\SuperPutty.settings" (File)
* Configuration screenshots here -> download/file.php?id=1626&mode=view

Attachment:
SuperPutty-Settings.zip [921 Bytes]
Downloaded 3102 times
Attachment:
SuperPutty-for-GNS3.zip [536.08 KiB]
Downloaded 1776 times

Configure GNS3 terminal settings:
#Is allowing all PuTTY parameters and support naming the tabs dynamically from PuTTY title
#Use a delay of 0.5 or 1.0 to work properly
Telnet: SuperPutty.exe -telnet "%h -P %p -wt \"%d\" -gns3 5 -skin 4"
Serial.: SuperPutty.exe -serial "%s -wt \"%d\" -gns3 5 -skin 4"

Attachment:
SuperPutty.jpg
SuperPutty.jpg [ 86.45 KiB | Viewed 41476 times ]



Cheers!

Author:  grossmj [ Tue Aug 14, 2012 3:17 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Impressive, keep up the good work :)

Author:  darkplayer [ Wed Aug 22, 2012 12:59 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

tranzitwww, you sure love your putty. I'm keeping my eye on you.

Much respect,

-DP

Author:  burnburger [ Mon Sep 17, 2012 4:45 pm ]
Post subject:  Re: PuTTY Patch - GNS3 Build

Putty does not open in the tabs

Win7-64bit
GNS 083
SuperPuTTY 1.3.0.8-2

Attachments:
Capture.PNG
Capture.PNG [ 120.79 KiB | Viewed 40874 times ]

Page 1 of 4 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/