Giter VIP home page Giter VIP logo

Comments (21)

SmartFinn avatar SmartFinn commented on August 19, 2024

Yes, it is possible, but works with roxterm only (maybe somewhere else).

At first, update eve-ng-integration to latest version.

  1. Copy eve-ng-integration.desktop to home directory:
cp -f /usr/share/applications/eve-ng-integration.desktop ~/.local/share/applications
  1. Open it for editing:
gedit ~/.local/share/applications/eve-ng-integration.desktop
  1. Add env OVERRIDE_TERMINAL_CMD="roxterm --tab -e" to Exec line to get the following code:
[Desktop Entry]
Name=eve-ng-Integration
Exec=env OVERRIDE_TERMINAL_CMD="roxterm --tab -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
  1. Save it and try to open several nodes in your browser.

CC @jidckii

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Hello, thanks for reply!

  1. I install roxterm.
  2. Install latest version of unetlab-x-integration.
  3. Copy and correct unetlab-x-integration.desktop file.
    But, browser by clicking the devices, still open every session in separated x-terminal
    What changes I need to do, to open the browser as expected?

update: from firefox is work as expected with roxterm!

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Does not work in Google Chrome only?

Try the command from #does-not-work-in-google-chrome-but-works-in-another-browser

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Yes. Does not work in Google Chrome only. I tried yet. But still in separated x-terminal, not in roxterm

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Did you get this window after click by nodes?

screenshot from 2017-02-21 14-53-22

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Yes. When i click "Open...", open separated x-terminal console. I dont't know, why google chrome do not use roxterm

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Could you run command xdg-open "telnet://route-server.he.net" multiple times to test it what works fine?

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Yes. It works fine. It's opens in separated x-terminal consoles.
route-server>

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Sorry, When I run "xdg-open...", I see error:

** (x-terminal-emulator:5888): WARNING **: Binding 'a' failed!
Unable to bind hide_window key, another instance/window has it.
<Window object at 0x7f68fa3399b0 (terminatorlib+window+Window at 0x280b040)> is not in registered window list

but, x-terminal console is opened and i see

route-server>

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

It's should open telnet session in new roxterm tab.

Ok, try the next commands:

sudo update-desktop-database -q

xdg-mime default unetlab-x-integration.desktop x-scheme-handler/capture
xdg-mime default unetlab-x-integration.desktop x-scheme-handler/telnet
xdg-mime default unetlab-x-integration.desktop x-scheme-handler/docker

and test it again.

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

As before, don't work as expected

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Please, run the next commands and paste result here

cat ~/.local/share/applications/mimeapps.list
cat ~/.local/share/applications/unetlab-x-integration.desktop

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

$ cat ~/.local/share/applications/mimeapps.list

[Default Applications]
image/gif=bl-image-viewer.desktop
image/jpeg=bl-image-viewer.desktop
image/png=bl-image-viewer.desktop
image/svg+xml=bl-image-viewer.desktop
text/plain=bl-text-editor.desktop
text/html=bl-text-editor.desktop
application/xml=bl-text-editor.desktop
application/javascript=bl-text-editor.desktop
x-directory/normal=bl-file-manager.desktop
x-directory/gnome-default-handler=bl-file-manager.desktop
inode/directory=bl-file-manager.desktop
audio/mpeg=bl-mediaplayer.desktop
audio/mp4=bl-mediaplayer.desktop
audio/x-wav=bl-mediaplayer.desktop
audio/aac=bl-mediaplayer.desktop
video/webm=bl-mediaplayer.desktop
video/x-ms-asf=bl-mediaplayer.desktop
video/x-theora+ogg=bl-mediaplayer.desktop
x-scheme-handler/capture=unetlab-x-integration.desktop
x-scheme-handler/telnet=unetlab-x-integration.desktop
x-scheme-handler/docker=unetlab-x-integration.desktop

$ cat ~/.local/share/applications/unetlab-x-integration.desktop

[Desktop Entry]
Name=UNetLab-X-Integration
Exec= env OVERRIDE_TERMINAL_CMD="roxterm --tab -e" unetlab-x-integration %u
TryExec=unetlab-x-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

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Hmm, looks good. I have no idea why it not working on your system. Which desktop environment are you using?

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Openbox

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Oh, I try to install Openbox on a virtual machine and test it there.

Please, test this command too:

env OVERRIDE_TERMINAL_CMD="roxterm --tab -e" unetlab-x-integration "telnet://route-server.he.net"

and try to delete space after Exec= in your ~/.local/share/applications/unetlab-x-integration.desktop

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

env OVERRIDE_TERMINAL_CMD="roxterm --tab -e" unetlab-x-integration "telnet://route-server.he.net"

opened in roxterm.

and try to delete space after Exec=

not give effect

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

Do you have same output?

screenshot from 2017-02-21 20-25-32

from eve-ng-integration.

SmartFinn avatar SmartFinn commented on August 19, 2024

It is a bug in env (GNU coreutils) 8.23.

I found the workaround but it is ugly:

screenshot from 2017-02-21 21-15-39

Delete double quotes, and replace spaces between arguments to the special characters (Ctrl-V + Enter in vi/vim), or just replace unetlab-x-integration.desktop with patched_unetlab-x-integration.desktop.zip

from eve-ng-integration.

mirisu2 avatar mirisu2 commented on August 19, 2024

Amazing! It's work fine in google chrome now! Thank you very march!

from eve-ng-integration.

DukeNuke3D avatar DukeNuke3D commented on August 19, 2024

Yes, it is possible, but works with roxterm only (maybe somewhere else).

At first, update eve-ng-integration to latest version.

  1. Copy eve-ng-integration.desktop to home directory:
cp -f /usr/share/applications/eve-ng-integration.desktop ~/.local/share/applications
  1. Open it for editing:
gedit ~/.local/share/applications/eve-ng-integration.desktop
  1. Add env OVERRIDE_TERMINAL_CMD="roxterm --tab -e" to Exec line to get the following code:
[Desktop Entry]
Name=eve-ng-Integration
Exec=env OVERRIDE_TERMINAL_CMD="roxterm --tab -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
  1. Save it and try to open several nodes in your browser.

CC @jidckii

I succeeded in making it work under KDE 5.x Konsole. Need to edit /usr/bin/eve-ng-integration, find this section:

    elif url.scheme == 'telnet':
        #cmd = 'telnet {host} {port}'.format(**data)
        cmd = 'konsole --new-tab -e telnet {host} {port}'.format(**data)

        term.execute(cmd)

This makes opening new tab for each link instead of new window. One drawback is that one extra-window opens and must stay opened. One thing I can not figure out is how to make each tab title be named the way as host is named it the topology or in device config.

from eve-ng-integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.