SmartFinn / eve-ng-integration

integrates EVE-NG (aka UNetLab) with Linux desktop
http://git.io/eve-ng-integration
MIT License
322 stars 117 forks source link

Making SecureCRT the default #19

Closed TheNetworker closed 6 years ago

TheNetworker commented 6 years ago

Thank you for maintaining and developing this repo. Would you please guide me through on how to use SecureCRT (installed on linux) to be the default terminal that open when you click on device instead of default one?

Thanks

SmartFinn commented 6 years ago

SecureCRT cannot be used as Linux terminal emulator, but you can make a wrapper that replacing telnet command:

echo -e '#!/bin/sh\nSecureCRT /T /TELNET "$@"' > ~/.local/bin/telnet
chmod +x ~/.local/bin/telnet

Make sure that $HOME/.local/bin exist in your PATH. If this not true then add this line to your ~/.profile file and then log out and log back:

PATH="$HOME/bin:$HOME/.local/bin:$PATH"
SmartFinn commented 6 years ago

Another way is to use this fork https://github.com/jkldgoefgkljefogeg/eve-ng-integration

dlj2019 commented 6 years ago

Thank you for all of the hard work already provided!

Would you be able to help to get Securecrt working on Manjaro?... I already tried the instructions provided but still not working ...

deepinscreenshot_select-area_20171228193219

Thanks in advance!

DJ

SmartFinn commented 6 years ago

@dlj2019 my fault. The command for bash should looks like:

echo -e '#!/bin/sh\nSecureCRT /T /TELNET "$@"' > ~/.local/bin/telnet
chmod +x ~/.local/bin/telnet
dlj2019 commented 6 years ago

For some reason still not working...

deepinscreenshot_select-area_20171229120302

Should i make modifications to the "eve-ng-integration.desktop" file?

deepinscreenshot_select-area_20171229120936

SmartFinn commented 6 years ago

@dlj2019 make sure that ~/.local/bin/telnet has executable bit chmod +x ~/.local/bin/telnet if it's true add the line to ~/.profile file and than reboot your laptop:

echo 'PATH="$HOME/bin:$HOME/.local/bin:$PATH"' >> ~/.profile
dlj2019 commented 6 years ago

It works. Awesome!!!

Your are the Best ... thanks again for all the hard work provided.

Regards, DJ

On Dec 29 2017, at 12:16 pm, Sergei Eremenko notifications@github.com wrote:

@dlj2019 (https://github.com/dlj2019?recipient=reply%2B01d74b26e6d6ae6b5f3559cd50d42955519c5897212f5f3192cf00000001165e3a7592a169ce10775144%40reply.github.com) make sure that ~/.local/bin/telnet has executable bit chmod +x ~/.local/bin/telnet if it's true add the line to ~/.profile file and than reboot your laptop:

echo 'PATH="$HOME/bin:$HOME/.local/bin:$PATH"' >> ~/.profile

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/19?recipient=reply%2B01d74b26e6d6ae6b5f3559cd50d42955519c5897212f5f3192cf00000001165e3a7592a169ce10775144%40reply.github.com#issuecomment-354473779), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJqf2Y3rgshnoaN6GxcjZoNyaPJDzks5tFR51gaJpZM4QoOUT?recipient=reply%2B01d74b26e6d6ae6b5f3559cd50d42955519c5897212f5f3192cf00000001165e3a7592a169ce10775144%40reply.github.com).

dlj2019 commented 6 years ago

I only see that Tilix also opens along with Securecrt , is there a way to fix it or its not possible ?

On Dec 29 2017, at 12:41 pm, Dee Jesus dljlixo@gmail.com wrote:

It works. Awesome!!!

Your are the Best ... thanks again for all the hard work provided.

Regards, DJ

On Dec 29 2017, at 12:16 pm, Sergei Eremenko notifications@github.com wrote:

@dlj2019 (https://github.com/dlj2019?recipient=reply%2B01d74b26e6d6ae6b5f3559cd50d42955519c5897212f5f3192cf00000001165e3a7592a169ce10775144%40reply.github.com) make sure that ~/.local/bin/telnet has executable bit chmod +x ~/.local/bin/telnet if it's true add the line to ~/.profile file and than reboot your laptop:

echo 'PATH="$HOME/bin:$HOME/.local/bin:$PATH"' >> ~/.profile

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/19?recipient=reply%2B01d74b26e6d6ae6b5f3559cd50d42955519c5897212f5f3192cf00000001165e3a7592a169ce10775144%40reply.github.com#issuecomment-354473779), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJqf2Y3rgshnoaN6GxcjZoNyaPJDzks5tFR51gaJpZM4QoOUT?recipient=reply%2B01d74b26e6d6ae6b5f3559cd50d42955519c5897212f5f3192cf00000001165e3a7592a169ce10775144%40reply.github.com).

shotab commented 6 years ago

if anyone still looking how to use SecureCRT, there is another solution.

echo -e '#!/bin/sh\nSecureCRT /T /TELNET $1 $2' > ~/.local/bin/SecureCRTx chmod +x ~/.local/bin/SecureCRTx

next update ~/.profile PATH="$HOME/bin:$HOME/.local/bin:$PATH"

edit following script as it is on picture below /usr/bin/eve-ng-integration https://transfer.sh/gH4Tz/1.png https://transfer.sh/bOcOn/2.png

dlj2019 commented 6 years ago

Thanks...

Can you please tell me how do i get Tilix to work with Eve-NG? i need to open different "Tab"sessions instead new windows. Would the information below work ?

[Desktop Entry] Name=EVE-NG Integration Exec=env OVERRIDE_TERMINAL_CMD="tilix --tab -e" eve-ng-integration %u

If so what's the next steps?

Thanks in advance!

On Sun, Mar 25, 2018 at 1:49 AM, shotab notifications@github.com wrote:

if anyone still looking how to use SecureCRT, there is another solution.

echo -e '#!/bin/sh\nSecureCRTx /T /TELNET $1 $2' > ~/.local/bin/SecureCRTx chmod +x ~/.local/bin/SecureCRTx

next update ~/.profile PATH="$HOME/bin:$HOME/.local/bin:$PATH"

edit following script as it is on picture below /usr/bin/eve-ng-integration https://transfer.sh/gH4Tz/1.png https://transfer.sh/bOcOn/2.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SmartFinn/eve-ng-integration/issues/19#issuecomment-375947312, or mute the thread https://github.com/notifications/unsubscribe-auth/AddLJszmmDsTY7mBqSXXJAqPo44nL0bmks5thy_kgaJpZM4QoOUT .

shotab commented 6 years ago

Thanks...

Can you please tell me how do i get Tilix to work with Eve-NG? i need to open different "Tab"sessions instead new windows. Would the information below work ?

[Desktop Entry] Name=EVE-NG Integration Exec=env OVERRIDE_TERMINAL_CMD="tilix --tab -e" eve-ng-integration %u

If so what's the next steps?

Thanks in advance!

I do not use Tilix so I am not familiar with it. do you mean something like this one ? https://mega.nz/#!344ySBDD!yDfJP06lqmNWQpZQkSoRUloNHzuqnKcT4EFTxO_zKKg

dlj2019 commented 6 years ago

Yes, that's exactly what i need ... Do you know how i can this done?

On Mon, Mar 26, 2018 at 10:09 AM, shotab notifications@github.com wrote:

Thanks...

Can you please tell me how do i get Tilix to work with Eve-NG? i need to open different "Tab"sessions instead new windows. Would the information below work ?

[Desktop Entry] Name=EVE-NG Integration Exec=env OVERRIDE_TERMINAL_CMD="tilix --tab -e" eve-ng-integration %u

If so what's the next steps?

Thanks in advance!

I do not use Tilix so I am not familiar with it. do you mean something like this one ? https://mega.nz/#!344ySBDD!yDfJP06lqmNWQpZQkSoRUloNHzuqnKcT4EFTxO_zKKg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SmartFinn/eve-ng-integration/issues/19#issuecomment-376178844, or mute the thread https://github.com/notifications/unsubscribe-auth/AddLJqcfLUvBMPPRehS5zrP35xhm8tVUks5tiPaAgaJpZM4QoOUT .

shotab commented 6 years ago

Yes, that's exactly what i need ... Do you know how i can this done?

This is how I did it, maybe there is better solution which I don't know.

create following script and make it executable:

echo -e '#!/bin/bash\ntilix -a app-new-session $@' > ~/.local/bin/tilixx
chmod +x ~/.local/bin/tilixx

next you must edit "/usr/bin/eve-ng-integration" script and add following code as it is on picture below:

elif self._is_command('tilixx'):
  return ['tilixx', '-e']

https://transfer.sh/aCHYk/tilix1.png https://transfer.sh/M2qwi/tilix2.png

resources https://www.mankier.com/1/tilix https://github.com/gnunn1/tilix/wiki/Command-Line-Actions

dlj2019 commented 6 years ago

I am new to Linux.... Executable file has been created but i still not able to open Tilix.

[Desktop Entry] Name=EVE-NG Integration Exec=eve-ng-integration %u TryExec=eve-ng-integration Type=Application Categories=Network; MimeType=x-scheme-handler/telnet;x-scheme-handler/capture;x-scheme-handler/docker; X-KDE-Protocols=telnet,capture,docker NoDisplay=true def_terminal_emulator_cmd(self): if self.override_terminal: return self.override_terminal.split() elif self._is_command('tilixx'): return ['tilixx', '-e'] elif url.scheme == 'telnet': cmd = 'telnet {host} {port}'.format(**data)

On Tue, Mar 27, 2018 at 7:35 AM, sb notifications@github.com wrote:

Yes, that's exactly what i need ... Do you know how i can this done?

This is how I did it, maybe there is better solution which I don't know.

create following script and make it executable:

echo -e '#!/bin/bash\ntilix -a app-new-session $@' > ~/.local/bin/tilixx chmod +x ~/.local/bin/tilixx

next you must edit "/usr/bin/eve-ng-integration" script and add following code as it is on picture below:

elif self._is_command('tilixx'): return ['tilixx', '-e']

https://transfer.sh/aCHYk/tilix1.png https://transfer.sh/M2qwi/tilix2.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SmartFinn/eve-ng-integration/issues/19#issuecomment-376492479, or mute the thread https://github.com/notifications/unsubscribe-auth/AddLJq-Px9bIJW9tHbc9GkJI3Ej-gG12ks5tiiPxgaJpZM4QoOUT .

shotab commented 6 years ago

I am new to Linux.... Executable file has been created but i still not able to open Tilix.

[Desktop Entry] Name=EVE-NG Integration Exec=eve-ng-integration %u TryExec=eve-ng-integration Type=Application Categories=Network; MimeType=x-scheme-handler/telnet;x-scheme-handler/capture;x-scheme-handler/docker; X-KDE-Protocols=telnet,capture,docker NoDisplay=true def_terminal_emulator_cmd(self): if self.override_terminal: return self.override_terminal.split() elif self._is_command('tilixx'): return ['tilixx', '-e'] elif url.scheme == 'telnet': cmd = 'telnet {host} {port}'.format(**data)

here is video. https://mega.nz/#!j9ZiCYLa!CwFGrcaWN7bDS9C0qIJRfcR7p51k4SvTnErHNp0jA70

dlj2019 commented 6 years ago

I am using KDE Neon on XPS 15. usr/share/application/eve-ng-integration.desktop.

The Eve-ng integration.desktop differs from what i have. Should replace below files with the ones in the website?

eni-rdp-wrapper https://github.com/SmartFinn/eve-ng-integration/blob/master/bin/eni-rdp-wrapper Add RDP wrapper https://github.com/SmartFinn/eve-ng-integration/commit/9d39dc93a33faee3aa0e3396d17d001e15dac7c9

7 https://github.com/SmartFinn/eve-ng-integration/issues/7 3 months ago

eve-ng-integration https://github.com/SmartFinn/eve-ng-integration/blob/master/bin/eve-ng-integration Move files and update installation scripts https://github.com/SmartFinn/eve-ng-integration/commit/ed9c6693b9236b37d6532326928f23cd4e5336b7 3 months ago

On Tue, Mar 27, 2018 at 11:05 AM, sb notifications@github.com wrote:

I am new to Linux.... Executable file has been created but i still not able to open Tilix.

[Desktop Entry] Name=EVE-NG Integration Exec=eve-ng-integration %u TryExec=eve-ng-integration Type=Application Categories=Network; MimeType=x-scheme-handler/telnet;x-scheme-handler/ capture;x-scheme-handler/docker; X-KDE-Protocols=telnet,capture,docker NoDisplay=true def_terminal_emulator_cmd(self): if self.override_terminal: return self.override_terminal.split() elif self._is_command('tilixx'): return ['tilixx', '-e'] elif url.scheme == 'telnet': cmd = 'telnet {host} {port}'.format(**data)

here is video. https://mega.nz/#!j9ZiCYLa!CwFGrcaWN7bDS9C0qIJRfcR7p51k4SvTnErHNp0jA70

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SmartFinn/eve-ng-integration/issues/19#issuecomment-376559834, or mute the thread https://github.com/notifications/unsubscribe-auth/AddLJmafHuXWSugZBkOn4UFn4kFFvMzKks5tilVVgaJpZM4QoOUT .

dlj2019 commented 6 years ago

hi shotab,

Can you please let me know the 2 steps needed (link is not working anymore?

https://transfer.sh/gH4Tz/1.png https://transfer.sh/bOcOn/2.png

============================================================
"if anyone still looking how to use SecureCRT, there is another solution.

echo -e '#!/bin/sh\nSecureCRT /T /TELNET $1 $2' > ~/.local/bin/SecureCRTx chmod +x ~/.local/bin/SecureCRTx

next update ~/.profile PATH="$HOME/bin:$HOME/.local/bin:$PATH"

**edit following script as it is on picture below /usr/bin/eve-ng-integration

https://transfer.sh/gH4Tz/1.png https://transfer.sh/bOcOn/2.png ================= "==========================================

dlj2019 commented 6 years ago

if anyone still looking how to use SecureCRT, there is another solution.

echo -e '#!/bin/sh\nSecureCRT /T /TELNET $1 $2' > ~/.local/bin/SecureCRTx chmod +x ~/.local/bin/SecureCRTx

next update ~/.profile PATH="$HOME/bin:$HOME/.local/bin:$PATH"

edit following script as it is on picture below /usr/bin/eve-ng-integration https://transfer.sh/gH4Tz/1.png https://transfer.sh/bOcOn/2.png

Can you please let me know the last 2 steps ( png pictures) missing. The 2 links are no longer available.

https://transfer.sh/gH4Tz/1.png https://transfer.sh/bOcOn/2.png

Thanks a lot in advance!

Regards, DJ

shotab commented 6 years ago

hi, you should edit "eve-ng-integration" script, in my case it is located in /usr/bin/eve-ng-integration

and here is changes you should make

https://ibb.co/esgSpK https://ibb.co/cwdU3e

dlj2019 commented 6 years ago

Excellent !!!!

Thanks a lot !!!