Johnny Ljunggren Posted October 27, 2008 Report Share Posted October 27, 2008 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. Quote Link to comment Share on other sites More sharing options...
tyme Posted October 27, 2008 Report Share Posted October 27, 2008 instead of telneting, set up ssh on the remote machine and connect with: ssh -X this should allow you to tunnel X through ssh (a more secure method, and easier to set up IMHO). Quote Link to comment Share on other sites More sharing options...
Johnny Ljunggren Posted October 28, 2008 Author Report Share Posted October 28, 2008 I forgot to add that ssh is not an option Quote Link to comment Share on other sites More sharing options...
Chris H Posted October 28, 2008 Report Share Posted October 28, 2008 (edited) Getting a login box popup whenever I view this post. Anyone else see it? :unsure: Edited October 28, 2008 by Chris H Quote Link to comment Share on other sites More sharing options...
Johnny Ljunggren Posted October 28, 2008 Author Report Share Posted October 28, 2008 Me too, and it is quite annoying... Quote Link to comment Share on other sites More sharing options...
tyme Posted October 28, 2008 Report Share Posted October 28, 2008 (edited) I forgot to add that ssh is not an optionThat'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.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. Edited October 28, 2008 by tyme Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 28, 2008 Report Share Posted October 28, 2008 This is how you do it: 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: 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: export DISPLAY=10.1.1.10:0.0 on the laptop: xhost 10.1.1.2 and then from the server I type: xclock and xclock launches on my laptop. Quote Link to comment Share on other sites More sharing options...
Johnny Ljunggren Posted October 28, 2008 Author Report Share Posted October 28, 2008 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..... Quote Link to comment Share on other sites More sharing options...
Johnny Ljunggren Posted October 28, 2008 Author Report Share Posted October 28, 2008 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. Quote Link to comment Share on other sites More sharing options...
tyme Posted October 28, 2008 Report Share Posted October 28, 2008 (edited) 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 :) 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? Edited October 28, 2008 by tyme Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.