Help - Search - Members - Calendar
Full Version: Can't open display
MandrivaUsers.org > Advanced Topics > Networking
Johnny Ljunggren
Hello

I've got an old machine running a specialized program that I want displayed on my computer. This has worked before and also works from another machine. These are the steps I do:

1. On my machine: xhost +
2. telnet oldmachine
3. setenv DISPLAY <my machine>:0.0
4. xclock
Error: Can't open display: <my machine>:0.0

Doing the exact same steps from another machine works, so there must be something odd with my setup.
tyme
instead of telneting, set up ssh on the remote machine and connect with:
CODE
ssh -X

this should allow you to tunnel X through ssh (a more secure method, and easier to set up IMHO).
Johnny Ljunggren
I forgot to add that ssh is not an option
Chris H
Getting a login box popup whenever I view this post.

Anyone else see it?

unsure.gif
Johnny Ljunggren
Me too, and it is quite annoying...
tyme
QUOTE (Johnny Ljunggren @ Oct 28 2008, 04:35 AM) *
I forgot to add that ssh is not an option
That's odd. Telnet is an option, but SSH isn't? SSH is the better option, and you can make it run on the Telnet port if the port assignment is an issue.
QUOTE (Chris H @ Oct 28 2008, 05:13 AM) *
Getting a login box popup whenever I view this post.
That's SoulSe's fault. One of the images in my sig is on his site, apparently he's changed something. I'll remove the image and let him know.
ianw1974
This is how you do it:

CODE
export DISPLAY=ip_addr:0.0


replacing ip_addr with ip of your machine that you want to send xclock to or whatever.

then on your machine, you then do this to allow it:

CODE
xhost ip_addr


where ip_addr is the ip of the machine you are sending xclock from. Also, you have to check in gdm-setup or as it's sometimes called Login window, go to the security tab and make sure that "deny tcp connections to xserver" is not enabled, otherwise the connection will be blocked.

For example, this is how I do it if I want to send an application to my laptop from the server:

laptop = 10.1.1.10
server = 10.1.1.2

on the server:

CODE
export DISPLAY=10.1.1.10:0.0


on the laptop:

CODE
xhost 10.1.1.2


and then from the server I type:

CODE
xclock


and xclock launches on my laptop.
Johnny Ljunggren
QUOTE (tyme @ Oct 28 2008, 04:22 PM) *
That's odd. Telnet is an option, but SSH isn't? SSH is the better option, and you can make it run on the Telnet port if the port assignment is an issue.


This is a really old machine that is on the verge to collapse, but until then we have to cope with what is on it.....
Johnny Ljunggren
ianw1974

Thanks for your input. Unfortunately your description is the same as mine, and it still fails.
xhost + will allow all machines, while xhost <ip address> only allows that one machine.
tyme
QUOTE (Johnny Ljunggren @ Oct 28 2008, 01:13 PM) *
This is a really old machine that is on the verge to collapse, but until then we have to cope with what is on it.....
o i c smile.gif

the only thing that you may want to check is ports, and also, IIRC, there is an option to not allow X to receive connections from other machines - you need XDMCP set up. Unfortunately it's been years since I've done something like this (haven't had a need), so I can't be positive what to check. Anyone else know?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.