Using Axis-Remote over SSH

More
14 years 9 months ago #16739 by spartan21
I'm running AXIS on Ubuntu 10.04, and the 'axis-remote' feature works locally. I am able to do most everything I'd like with axis-remote, except open files in AXIS. Does anyone know how to accomplish this?

But now regarding the topic of my post, I am having trouble getting axis-remote to work over ssh. My remote computer is a Mac running Lion, and I am using 'ssh -X' in Terminal to connect. When I type only 'axis-remote', I get the usage information:

Usage: axis-remote
axis-remote [-c|-p|-r|-q|-m command]

But when I type any command, it throws the line "no application named "axis"". This is contradictory, since it definitely recognizes that axis-remote exists (as evidenced by the usage information).

Can anyone help as to where to start fixing this? Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago - 14 years 9 months ago #16740 by spartan21
I figured out how to load a file (simply 'axis-remote filename'), but over ssh I get the following error:

Traceback (most recent call last):
File "/usr/bin/axis-remote", line 78, in <module>
t = Tkinter.Tk(); t.wm_withdraw()
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1646, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display "localhost:10.0"

Maybe this can help with why other ssh commands aren't working. Thanks again for your help.


Edit: I tried connecting using "ssh -Y" instead of "ssh -X" and now when I try to load a file using the aforementioned method I get the same "no application named "axis"" as with the other commands.
Last edit: 14 years 9 months ago by spartan21.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #16749 by dgarrett
I think your error is consistent with X11 not running on your mac-lion host.


Does a command with no use of X11 work, for example:

$ from_mac_machine ssh -X name_of_emc_machine date

Does a simple command that uses X11 work, for example:

$ from_mac_machine ssh -X name_of_emc_machine xeyes

If either of these fail, what are the error messages if any?

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #16776 by andypugh
I ssh from my Mac to EMC on a very regular basis (in fact, I code in Xcode and compile on the EMC2 machine.)
ssh -X does not work for opengl applications at all, but does for others, so I can open a remote stepconf, or a remote TkEMC, but I can't open a remote Axis.

However, the error returned is not the one you are seeing, (I can't remember the details, but it is definitely about something graphical)

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #16793 by spartan21
I appreciate your responses!

dgarrett, X11 is definitely running on my mac, and this is confirmed by 'xeyes' working properly (as well as 'date'). But taking a step back, and this refers to andypugh's post as well, would the type of control I'm trying to achieve even be possible?

Or maybe this error has something to do with my axis-remote commands trying to reference an AXIS instance in X11 (which doesn't exist), when they should be referencing the already running instance of AXIS on my Linux machine?

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #16798 by dgarrett
Maybe axis isn't running?

What is the result of this command:

$ from_remote_machine ssh -X name_of_emc_machine ps ax|grep -iE axis\|emc

(all one line)

Please Log in or Create an account to join the conversation.

Time to create page: 0.325 seconds
Powered by Kunena Forum