SmartFinn/eve-ng-integration

SSH/Telnet multitab

leribe opened this issue · 5 comments

Thanks for the greate work, can you kindly implement telnet/ssh multitab instead of opening new window if you access new devices, if already addressed, on linux, how can i accomplish it.
Thanks in-advance.

reviewing this method, using konsole and want to open new tab, can you please advise, if bolded is right? still defaults to terminal when i access new devices. can i comment out others?

def _terminal_emulator_cmd(self):
if self.override_terminal:
return self.override_terminal.split()
elif self._is_command('x-terminal-emulator'):
return ['x-terminal-emulator', '-e']
elif self._current_desktop('cinnamon', 'gnome', 'unity'):
return ['gnome-terminal', '-e']
elif self._current_desktop('kde'):
return ['konsole', '--tab', '-e']
elif self._current_desktop('lxde', 'lxqt'):
return ['lxterminal', '-e']
elif self._current_desktop('mate'):
return ['mate-terminal', '-e']
elif self._current_desktop('pantheon'):
return ['pantheon-terminal', '-e']
elif self._current_desktop('xfce'):
return ['xfce4-terminal', '-e']
elif self._is_command('urxvt'):
return ['urxvt', '-e']
else:
return ['xterm', '-e']

This #36 (comment) should help you.

Thank you very much, you a star, konsole working with multitab
one last request, want to use device name on tabs, tried this and not working, can you kindly advise:
konsole --new-tab -p tabtitle="%d" -e "telnet %h %p"
env OVERRIDE_TERMINAL_CMD="konsole --new-tab -e" eve-ng-integration %u
not sure how to combine into one statement, thanks

If I remember correctly in URI no device name, so no way to provide this.

Hello @SmartFinn, I have followed the installation steps and cloned your repo. Then I follow the steps in #36 comment and made the appropriate changes in the file "~/.local/share/applications/eve-ng-integration.desktop" to include konsole with multi-tabs. However when I login to eve start a router and click on it to get console access, it opens konsole of my host machine in my home directory. It does not show the router console. I don't know what to do, some help will be greatly appreciated. Thank you.
I am running: "Linux 5.11.0-40-generic 20.04.2-Ubuntu" on eve-community (vmware workstation).