18

I am attempting to run an application (ParaView) in client-server mode with its graphics rendering being done on the remote (server) end. I am using SSH as my means of connecting to the server, but do not wish to use X-forwarding since it slows down the rendering process.

However, every time I try to open the application on the server's display, I get an error to this effect:

Invalid MIT-MAGIC-COOKIE-1 keyError: cannot open display ':0'

I have conducted extensive research into this matter and have already tried the following suggested procedure to no avail:

  1. Used "xauth list" to get the MIT-MAGIC-COOKIE-1 value for my local host's display.
  2. Logged into the remote host via ssh.
  3. Used "export DISPLAY=:0" on the remote host.
  4. On the remote host, used "xauth add" to overwrite the cookie value for the remote host's display with that of the local host's.

I'm convinced that this is the correct procedure, but that I'm just not transferring the right cookies to the right displays.

Again, I would like to be able to use ssh to effect the opening of applications on the remote computer's display. Ideally, I would like the entire process to be done via xauth rather than xhost, and once again, I have no need to use X-forwarding. What might I be missing or doing wrong?

  • 2
    Is there an X server running on the server's console? I don't understand where you want the program's output to be displayed. Your procedure is clearly wrong since you're getting the local host's cookie but you don't display on the local host. If there is an X server running on the remote machine and that's where you want the program to be displayed, see unix.stackexchange.com/questions/10121/… – Gilles May 1 '15 at 21:59
13

The value you're using for DISPLAY is incorrect: if you don't want to use SSH X forwarding, DISPLAY must indicate the IP address of your X server (the desktop you want to display programs on). On the remote, run

export DISPLAY=desktop:0

replacing desktop with your local hostname or IP address. You may also need to change your X server's configuration to allow remote IP connections.

  • This ignores the XAUTHORITY problem, which is what causes the actual error message in the subject line. – kiko Dec 6 '18 at 8:29
1

Try

xhost +local: 

before running it.

0

This one worked for me. So I'm leaving this answer here.

 export DISPLAY=:1.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.