1

I need to invoke an xterm on a SLES 11 machine (machine A) from another SLES 11 machine (machine B). Currently it doesn't work. So I decided to test some stuff.

On machine A the following works: DISPLAY=:0.0 xterm However this doesn't: DISPLAY=localhost:0.0 xterm

I'm working on the assumption that if the latter doesn't work then a remote connection won't either.

To me it looks like a permissions issue.

Any help will be greatly appreciated.

Thanks!

James
  • 113
  • 1
  • 3

3 Answers3

0

Are you sure that the X server on machine B is configured to accept the connection from machine A ? ("xhost +" and firewall off)

btw on my machine with default settings, therer is no "localhost" keyword, just the 1st line just like your mentioned it.

Rosco
  • 455
  • 3
  • 6
0

Have you tried using ssh with X11 forwarding? It's the easiest and most secure variant these days.

ssh -X username@hostname

Sven
  • 97,248
  • 13
  • 177
  • 225
  • This is pretty neat but unfortunately I am working with an existing application that can't be modified to use this solution (for now at least). Thanks anyway :) – James Dec 06 '10 at 13:58
  • @James, you should not have to change anything in your application for it to work through an SSH tunnel. The only thing your application has to do is respect the `$DISPLAY` variable. – Alexis Wilke May 17 '16 at 23:38
0

thanks for the other answers. My problem was due to a setting in YaST > Security and Users > Local Security callded 'Disable remote access to the X server'. Enabling this, configuring/disabling the firewall and running xhost + seems to do the trick.

James
  • 113
  • 1
  • 3
  • Hey, it seems that Rosco should get the points for answering your question, not you. – djangofan Mar 21 '11 at 23:30
  • Hey djangofan. I didn't give Rosco the accepted answer because his suggestion, although helpful, didn't fix the problem. – James Mar 24 '11 at 21:39
  • @djangofan, note that you do not get any points when you mark your own answer as the one that made it work. – Alexis Wilke May 17 '16 at 23:38