gns3-gui icon indicating copy to clipboard operation
gns3-gui copied to clipboard

console to iou and vpcs has title "Terminal" while it should be the device name in the project

Open ahbali opened this issue 7 years ago • 8 comments
trafficstars

for iou and vpcs when opening a console, the %d in ( gnome-terminal -t "%d" -e "telnet %h %p" ) has value "Terminal" and it should be like "iou1" or "pc-1" ( device name in the project ). the behaviour is ok with dynamips devices.

using ubuntu 16.04 and gns3 ppa.

ahbali avatar Apr 23 '18 14:04 ahbali

Looks like the problem comes from our embedded Telnet server. Dynamips has it's own server and it is doing things we have not implemented, for instance: https://github.com/GNS3/dynamips/blob/master/common/dev_vtty.c#L1041

grossmj avatar Apr 24 '18 09:04 grossmj

@ahbali @grossmj I got the same problem after installing the gns3-gui-2.1.5, and didn't check why, I though its a bug after seeing it already been reported. BUT I found out its a terminal issue rather than a gns3 bug. I have tested gns3 with multiple terminal including gnome-terminal it worked fine except tilix with muliple tabs(sessions)

For gnome-terminal make sure that When terminal commands set their own titles: under Profile Preferences -> Command is set to Replace initial title and not Keep initial title sw2_015 For Tilix terminal if you have few telnet sessions < 4 then use this command

tilix -a session-add-down -t "%d" -e "telnet %h %p"

if you have multiple telnet sessions > 4

tilix -a app-new-session -t "%d" -e "telnet %h %p"

and make sure to set these Tilix variables: Default session name to ${title} and Application title to ${activeTerminalTitle}

selection_020

n3oxmind avatar May 05 '18 01:05 n3oxmind

update: Tilix 1.7.9 added new token ${activeTerminlTitle}, this will allow a very nice multiple tabs with the correct name see bellow: selection_025

here is how to configure Tilix for multiple tabs with gns3 1- Tilix preferences-> make sure to set the highlighted variables as bellow: tilix preferences_028 2- gns3 console setting

tilix -a app-new-session -t "%d" -e "telnet %h %p"

all set enjoy nice multiple tabs with Tilix.

n3oxmind avatar May 07 '18 01:05 n3oxmind

@n3oxmind @grossmj : if its a terminal issue why is Dynamips working fine with the default Terminal preferences (Tilix included)? @n3oxmind : i will use your method when the Tilix PPA gets updated to 1.7.9 ( because it is still 1.7.7 for me), to work around the bug until it is resolved.

ahbali avatar May 12 '18 20:05 ahbali

@ahbali,

using ubuntu 16.04 and gns3 ppa.

have you tried to install gns3 from the source or using pip3, try this and see if you still have the same issue:

sudo pip3 install gns3-gui==2.1.5
sudo pip3 install gns3-server==2.1.5

if you dont have pip3 installed:

sudo apt-get update
sudo apt-get install python3-pip

n3oxmind avatar May 14 '18 21:05 n3oxmind

I got tilix working as described. However, is it possible to open the same terminal if I open console multipe times from the same device from within GNS3? The behaviour now, is that it opens a new console session each time.

sliddjur avatar Jul 23 '19 08:07 sliddjur

@sliddjur Did you ever find a fix for this? (opening multiple terminals for the same device/appliance)

dhruvrauthan avatar Aug 24 '22 06:08 dhruvrauthan

@sliddjur Did you ever find a fix for this? (opening multiple terminals for the same device/appliance)

No, I didn't look into it any more. What I found was that that I use tilix with "quake mode", and that also ruins some of the settings when trying to open a new tab/window in the same tilix sessions, so I pretty much gave up and just use gnome terminal instead.

sliddjur avatar Sep 28 '22 13:09 sliddjur