eve-ng-integration icon indicating copy to clipboard operation
eve-ng-integration copied to clipboard

SSH/Telnet multitab

Open leribe opened this issue 5 years ago • 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.

leribe avatar Dec 23 '20 12:12 leribe

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']

leribe avatar Dec 23 '20 13:12 leribe

This https://github.com/SmartFinn/eve-ng-integration/issues/36#issuecomment-696834972 should help you.

SmartFinn avatar Dec 23 '20 13:12 SmartFinn

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

leribe avatar Dec 23 '20 14:12 leribe

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

SmartFinn avatar Dec 23 '20 14:12 SmartFinn

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

shadowfeind99 avatar Nov 16 '21 06:11 shadowfeind99