It is currently Thu Jul 24, 2014 10:39 am


All times are UTC




Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: PuTTY Patch - GNS3 Build
PostPosted: Mon Jun 18, 2012 8:11 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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 1718 times


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

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

Attachment:
special_config.jpg
special_config.jpg [ 57.62 KiB | Viewed 18728 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 19147 times ]




Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Wed Jul 11, 2012 10:20 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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!


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Wed Jul 11, 2012 11:08 pm 
Offline

Joined: Mon Sep 19, 2011 6:19 am
Posts: 192
Location: Australia
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?

_________________
ImageImageImageImage


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Thu Jul 12, 2012 3:34 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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)


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Thu Aug 02, 2012 6:49 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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 414 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 17766 times ]


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Fri Aug 03, 2012 9:26 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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 317 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 17766 times ]

Cheers!


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Mon Aug 13, 2012 7:44 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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 1345 times
Attachment:
SuperPutty-for-GNS3.zip [536.08 KiB]
Downloaded 769 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 17766 times ]



Cheers!


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Tue Aug 14, 2012 3:17 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2431
Location: Canada
Impressive, keep up the good work :)

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Wed Aug 22, 2012 12:59 pm 
Offline

Joined: Thu Jul 19, 2012 3:53 am
Posts: 10
Location: DC
tranzitwww, you sure love your putty. I'm keeping my eye on you.

Much respect,

-DP

_________________
Image
GNS3 1 Alpha 1/2/3/4 Debian 3.13-1-686-pae
GNS3 0.8.3/GNS3 0.8.5/0.8.6 Windows 7 x32 & x64


Top
 Profile  
 
 Post subject: Re: PuTTY Patch - GNS3 Build
PostPosted: Mon Sep 17, 2012 4:45 pm 
Offline

Joined: Tue Aug 03, 2010 2:44 am
Posts: 20
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 17164 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO