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

Sorry but Not working on Manjaro...hope you can help me out! #23

Closed dlj2019 closed 6 years ago

dlj2019 commented 6 years ago

Hi,

I already install eve-ng-integration v4.1 and now v5.0 released 2 day ago but no success :( During installation i did not face any issues during the script.

Operating System: Manjaro Linux Kernel: Linux 4.9.68-1-MANJARO Architecture: x86-64

When i click on host to open the console, nothing comes up :(

I hope you can help me out .

Thanks in advance. DJ

SmartFinn commented 6 years ago

What actually didn't work? Telnet? Try to run the command and let me know what you got:

xdg-open 'telnet://route-server.he.net'
dlj2019 commented 6 years ago

Unfortunately, nothing shows up...i don't even have an option to choose the application to open.

In Chrome

In firefox

On Dec 22 2017, at 5:20 am, Sergei Eremenko notifications@github.com wrote:

What actually didn't work? Telnet? Try to run the command and let me know what you got:

xdg-open 'telnet://route-server.he.net'

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23?recipient=reply%2B01d74b265f568c7f154bcc56478bec247e9a70275fe5c2e092cf0000000116549e6292a169ce10ee3165%40reply.github.com#issuecomment-353568478), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJlj4X5XAJIsb_WjP-nsTCX8vy9X8ks5tC4JigaJpZM4RKh5g?recipient=reply%2B01d74b265f568c7f154bcc56478bec247e9a70275fe5c2e092cf0000000116549e6292a169ce10ee3165%40reply.github.com).

SmartFinn commented 6 years ago

In this case, see Click on a node does not open an app (opens another app) in all browsers

dlj2019 commented 6 years ago

what should i do with the below info:

mkdir -p ~/.local/share/applications/ xdg-mime default eve-ng-integration.desktop x-scheme-handler/capture xdg-mime default eve-ng-integration.desktop x-scheme-handler/telnet xdg-mime default eve-ng-integration.desktop x-scheme-handler/docker xdg-mime default eni-rdp-wrapper.desktop application/x-rdp

i have this info in ~/.local/share/applications/

appimagekit-Etcher.desktop chrome-aohghmighlieiainnegkcijnfilokake-Default.desktop chrome-apdfllckaahabafndbhieahigkjlhalf-Default.desktop chrome-blpcfgokakmgnkcojhhkbfbldkacnbeo-Default.desktop chrome-pjkljhegncpnkpknbcohdijeoejaedia-Default.desktop mimeapps.list mimeinfo.cache

Thanks in advance !

On Dec 22 2017, at 11:39 am, Sergei Eremenko notifications@github.com wrote:

In this case, see Click on a node does not open an app (opens another app) in all browsers (https://github.com/SmartFinn/eve-ng-integration?recipient=reply%2B01d74b264e6253647e9d6d14d555b9622cb41f58d0a36f4f92cf000000011654f72a92a169ce10ee3165%40reply.github.com#click-on-a-node-does-not-open-an-app-opens-another-app-in-all-browsers)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23?recipient=reply%2B01d74b264e6253647e9d6d14d555b9622cb41f58d0a36f4f92cf000000011654f72a92a169ce10ee3165%40reply.github.com#issuecomment-353633365), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJsceDAcFkkFUde4lx-20_yYpqUt2ks5tC9sqgaJpZM4RKh5g?recipient=reply%2B01d74b264e6253647e9d6d14d555b9622cb41f58d0a36f4f92cf000000011654f72a92a169ce10ee3165%40reply.github.com).

dlj2019 commented 6 years ago

Should i Enter it to the "eve-ng-integration.desktop "file ?

[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

On Dec 22 2017, at 5:39 pm, Dee Jesus dljlixo@gmail.com wrote:

what should i do with the below info:

mkdir -p ~/.local/share/applications/ xdg-mime default eve-ng-integration.desktop x-scheme-handler/capture xdg-mime default eve-ng-integration.desktop x-scheme-handler/telnet xdg-mime default eve-ng-integration.desktop x-scheme-handler/docker xdg-mime default eni-rdp-wrapper.desktop application/x-rdp

i have this info in ~/.local/share/applications/

appimagekit-Etcher.desktop chrome-aohghmighlieiainnegkcijnfilokake-Default.desktop chrome-apdfllckaahabafndbhieahigkjlhalf-Default.desktop chrome-blpcfgokakmgnkcojhhkbfbldkacnbeo-Default.desktop chrome-pjkljhegncpnkpknbcohdijeoejaedia-Default.desktop mimeapps.list mimeinfo.cache

Thanks in advance !

On Dec 22 2017, at 11:39 am, Sergei Eremenko notifications@github.com wrote:

In this case, see Click on a node does not open an app (opens another app) in all browsers (https://github.com/SmartFinn/eve-ng-integration?recipient=reply%2B01d74b264e6253647e9d6d14d555b9622cb41f58d0a36f4f92cf000000011654f72a92a169ce10ee3165%40reply.github.com#click-on-a-node-does-not-open-an-app-opens-another-app-in-all-browsers)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23?recipient=reply%2B01d74b264e6253647e9d6d14d555b9622cb41f58d0a36f4f92cf000000011654f72a92a169ce10ee3165%40reply.github.com#issuecomment-353633365), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJsceDAcFkkFUde4lx-20_yYpqUt2ks5tC9sqgaJpZM4RKh5g?recipient=reply%2B01d74b264e6253647e9d6d14d555b9622cb41f58d0a36f4f92cf000000011654f72a92a169ce10ee3165%40reply.github.com).

SmartFinn commented 6 years ago

No, you should execute the following commands line by line in your terminal:

mkdir -p ~/.local/share/applications/
xdg-mime default eve-ng-integration.desktop x-scheme-handler/capture
xdg-mime default eve-ng-integration.desktop x-scheme-handler/telnet
xdg-mime default eve-ng-integration.desktop x-scheme-handler/docker
xdg-mime default eni-rdp-wrapper.desktop application/x-rdp
dlj2019 commented 6 years ago

Thanks but that's what i have done for about 10 times. I get no errors but nothing changes :(

On Dec 22 2017, at 11:47 pm, Sergei Eremenko notifications@github.com wrote:

No, you should execute the following commands line by line in your terminal:

mkdir -p ~/.local/share/applications/ xdg-mime default eve-ng-integration.desktop x-scheme-handler/capture xdg-mime default eve-ng-integration.desktop x-scheme-handler/telnet xdg-mime default eve-ng-integration.desktop x-scheme-handler/docker xdg-mime default eni-rdp-wrapper.desktop application/x-rdp

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

SmartFinn commented 6 years ago

What this command returns:

xdg-mime query default x-scheme-handler/telnet

and what happens when running:

xdg-open 'telnet://route-server.he.net'

Could you run those commands and paste the screenshot here?

dlj2019 commented 6 years ago

Sure ... this is what i got

On Dec 23 2017, at 10:24 am, Sergei Eremenko notifications@github.com wrote:

What this command returns:

xdg-mime query default x-scheme-handler/telnet

and what happens when running:

xdg-open 'telnet://route-server.he.net'

Could you run those commands and paste the screenshot here?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23?recipient=reply%2B01d74b26b86fecde16e1edcf191d98fb065ff2842565a2f192cf000000011656373a92a169ce10ee3165%40reply.github.com#issuecomment-353731760), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJgx5dRlQ9O-V7NQGQHMQ6A4e2MVqks5tDRs6gaJpZM4RKh5g?recipient=reply%2B01d74b26b86fecde16e1edcf191d98fb065ff2842565a2f192cf000000011656373a92a169ce10ee3165%40reply.github.com).

SmartFinn commented 6 years ago

No screenshot here ;)

dlj2019 commented 6 years ago

didn't you get the Screenshot ?

On Dec 23 2017, at 10:29 am, Sergei Eremenko notifications@github.com wrote:

No screenshot here ;)

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

SmartFinn commented 6 years ago

No, try to drop into GitHub comment field instead of email.

dlj2019 commented 6 years ago

i will definitely upload some detailed information there today. I thing i found out why i was not getting the terminal. I believe it was because i didn't not have Gnome-terminall installed but Tilix.

Do you know do i redirect to open the terminal using Securecrt instead Gnome ?

Thanks for all your help.... i just love this tool , is great ! ( i just want to get everything to work with Linux).

As i said, i will send you more information into GitHub sometime today

On Dec 23 2017, at 10:33 am, Sergei Eremenko notifications@github.com wrote:

No, try to drop into GitHub comment field instead of email.

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

SmartFinn commented 6 years ago

You can use any terminal emulator, including Tilix, see this https://github.com/SmartFinn/eve-ng-integration/issues/6#issuecomment-281147424

SecureCRT isn't a terminal emulator, but you can use it as telnet command replacement, see https://github.com/SmartFinn/eve-ng-integration/issues/19#issuecomment-346646342

dlj2019 commented 6 years ago

Thanks for the info Sergei... But i can open only one console window, if i try to open a second terminal window it will close the first one.

On Dec 23 2017, at 10:53 am, Sergei Eremenko notifications@github.com wrote:

You can use any terminal emulator, including Tilix, see this #6 (comment) (https://github.com/SmartFinn/eve-ng-integration/issues/6?recipient=reply%2B01d74b26100c3a52610fae546c87eb3fb1efd28b0022ca7392cf0000000116563e0292a169ce10ee3165%40reply.github.com#issuecomment-281147424)

SecureCRT isn't a terminal emulator, but you can use it as telnet command replacement, see #19 (comment) (https://github.com/SmartFinn/eve-ng-integration/issues/19?recipient=reply%2B01d74b26100c3a52610fae546c87eb3fb1efd28b0022ca7392cf0000000116563e0292a169ce10ee3165%40reply.github.com#issuecomment-346646342)

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

dlj2019 commented 6 years ago

Also, any ideia how i can get Wireshark to work properly ?

This is the error i am getting it.

ss1

SmartFinn commented 6 years ago

But i can open only one console window, if i try to open a second terminal window it will close the first one.

Try this eve-ng-integration.destop file:

[Desktop Entry]
Name=EVE-NG Integration
Exec=env OVERRIDE_TERMINAL_CMD="tilix -e" 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

Just testing it works as exepted with Tilix.

Also, any ideia how i can get Wireshark to work properly ? This is the error i am getting it.

That not an error. That is ssh-askpass ask you to enter the root password for EVE-NG machine.

dlj2019 commented 6 years ago

1- Tilix opens but not " Tab" windows

2- When i press ok to continue with wireshark, i doesn't finish opening the application

On Dec 23 2017, at 11:27 am, Sergei Eremenko notifications@github.com wrote:

But i can open only one console window, if i try to open a second terminal window it will close the first one.

Try this eve-ng-integration.destop file:

[Desktop Entry] Name=EVE-NG Integration Exec=env OVERRIDE_TERMINAL_CMD="tilix -e" 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

Just testing it works as exepted with Tilix.

Also, any ideia how i can get Wireshark to work properly ? This is the error i am getting it.

That not an error. That is ssh-askpass ask you to enter the root password for EVE-NG machine.

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

dlj2019 commented 6 years ago

Tilix is now good!

Need to fix Wireshark :)

On Dec 23 2017, at 11:41 am, Dee Jesus dljlixo@gmail.com wrote:

1- Tilix opens but not " Tab" windows

2- When i press ok to continue with wireshark, i doesn't finish opening the application

On Dec 23 2017, at 11:27 am, Sergei Eremenko notifications@github.com wrote:

But i can open only one console window, if i try to open a second terminal window it will close the first one.

Try this eve-ng-integration.destop file:

[Desktop Entry] Name=EVE-NG Integration Exec=env OVERRIDE_TERMINAL_CMD="tilix -e" 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

Just testing it works as exepted with Tilix.

Also, any ideia how i can get Wireshark to work properly ? This is the error i am getting it.

That not an error. That is ssh-askpass ask you to enter the root password for EVE-NG machine.

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

dlj2019 commented 6 years ago

Here is what happens when i press ok...

deepinscreenshot_select-area_20171223114614

SmartFinn commented 6 years ago

1 - Tilix opens but not " Tab" windows

Tilix doesn't support opening new tab via command line.

Need to fix Wireshark :) Here is what happens when i press ok...

See Error End of file on pipe magic during open when starting Wireshark

In brief, the problem with ssh authentification. You could setup SSH key-based authentification with EVE-NG VM to avoid the problem.

dlj2019 commented 6 years ago

i already have "x11-ssh-askpass " installed.

On Dec 23 2017, at 11:50 am, Sergei Eremenko notifications@github.com wrote:

1 - Tilix opens but not " Tab" windows

Tilix doesn't support opening new tab via command line.

Need to fix Wireshark :) Here is what happens when i press ok...

See Error End of file on pipe magic during open when starting Wireshark (https://github.com/SmartFinn/eve-ng-integration#error-end-of-file-on-pipe-magic-during-open-when-starting-wireshark)

In brief, the problem with ssh authentification. You could setup SSH key-based authentification with EVE-NG VM to avoid the problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23#issuecomment-353736446), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJgXLKdp44-zHNXN3hBxN0QUx-i_4ks5tDS9sgaJpZM4RKh5g).

SmartFinn commented 6 years ago

I see but Wireshark not getting data through ssh, so it's problem with authentification.

dlj2019 commented 6 years ago

Do you know how i can fix this authentication issue. I installed "openssh-askpass" but the issue still there...

deepinscreenshot_select-area_20171223120126

SmartFinn commented 6 years ago

As I wrote, try to set SSH key-based authentification.

Generate new key if you didn't have it:

ssh-keygen -t rsa

and then upload it to EVE-NG:

ssh-copy-id root@EVE_NG_IP
dlj2019 commented 6 years ago

New RSA was genarated and successfully uploaded to the EVE-NG Server but i still have the same issue:

" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys

Number of key(s) added: 1

Now try logging into the machine, with: "ssh 'root@ x.x.x.x'" and check to make sure that only the key(s) you wanted were added. "

SmartFinn commented 6 years ago

I can't help you with the problem. Try to debug the case with this command:

ssh root@x.x.x.x tcpdump -i pnet0 -n -s 0 -U -w - | wireshark -k -i -
dlj2019 commented 6 years ago

[dee@dee-dlj ~]$ ssh -l root x.x.x.x tcpdump -i pnet0 -n -s 0 -U -w - | wireshark -k -i - qt5ct: using qt5ct plugin ssh: Could not resolve hostname x.x.x.x: Name or service not known qt5ct: D-Bus global menu: no

and it opens with wireshare with the error posted before ( " end of file on pipe magic during open")

On Dec 23 2017, at 1:11 pm, Sergei Eremenko notifications@github.com wrote:

I can't help you with the problem. Try to debug the case with this command:

ssh -l root x.x.x.x tcpdump -i pnet0 -n -s 0 -U -w - | wireshark -k -i -

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23#issuecomment-353740294), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJvSk4HE2nAwdulo5pKS8hko_BXdVks5tDUJCgaJpZM4RKh5g).

SmartFinn commented 6 years ago

You didn't replace x.x.x.x with your EVE-NG ip.

dlj2019 commented 6 years ago

i did...

[dee@dee-dlj ~]$ ssh -l root 192.168.1.85 tcpdump -i pnet0 -n -s 0 -U -w - | wireshark -k -i - qt5ct: using qt5ct plugin sign_and_send_pubkey: signing failed: agent refused operation root@x.x.x.x's password: qt5ct: D-Bus global menu: no

tcpdump: listening on pnet0, link-type EN10MB (Ethernet), capture size 262144 bytes

On Dec 23 2017, at 1:15 pm, Sergei Eremenko notifications@github.com wrote:

You didn't replace x.x.x.x with your EVE-NG ip.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/SmartFinn/eve-ng-integration/issues/23#issuecomment-353740518), or mute the thread (https://github.com/notifications/unsubscribe-auth/AddLJkIMFYTkv7nhEG4f0hP62Di_o0Rjks5tDUNOgaJpZM4RKh5g).

SmartFinn commented 6 years ago

sign_and_send_pubkey: signing failed: agent refused operation

You have a problem with ssh-agent. Reboot your host and try again.

root@x.x.x.x's password: qt5ct: D-Bus global menu: no

Still, ask the password...

dlj2019 commented 6 years ago

i reboot the laptop and the server and tried again...

[dee@dee-dlj ~]$ ssh root@x.x.x.x tcpdump -i pnet0 -n -s 0 -U -w - | wireshark -k -i - qt5ct: using qt5ct plugin qt5ct: D-Bus global menu: no tcpdump: listening on pnet0, link-type EN10MB (Ethernet), capture size 262144 bytes

You are the Best !!! Thank you so much for all your help... i really appreciate it .