Hi Folks, A new question! (All this up-to-date Linux stuff is finding the gaps in my obsolete knowledge ...). I'm currently trying (rather, wanting to try) running X apps remotely on one of my machines, with Gentoo running off the Live CD on the new laptop. So: A = new laptop, latest Gentoo off live CD X is Xorg B = old laptop, Red Hat 9 from 2003. X is X11R6 Normally, when I want remote X apps to display locally, I enter xhost + locally, and get "connection is allowed from any host". And it then works. On A, I again enter "xhost +" and still get "connection is allowed from any host". So far so good, it would seem. However, A has no telnet client, and rlogin won't work, soI have to use ssh to log in from A to B. This seems to work: I log in, I can tour directories, etc. B knows where I'm coming from: B:$ who am i ted ..... (192.168.1.8) which is fine. But it hasn't attributed an X DISPLAY: echo $DISPLAY returns null. So on B I set export DISPLAY=192.168.1.8:0.0 which is what I'd normally do. But now, when logged in to B, I issue xterm There is a delay, and then the message xterm Xt error: Can't open display: 192.168.1.8:0.0 Does this have something to do with Xorg doing things differently from X11R6? The process I went through above would have worked between any of my X11R6 machines. Or might it have somthing to do with my logging in using ssh rather than telnet (Machine B is set up to be friendly to anything on my LAN 192.168.1.*). Any suggestions appreciated! Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 27-Aug-07 Time: 18:00:54 ------------------------------ XFMail ------------------------------
OK -- solved mmy own problem! Found the solution at http://www.cisl.ucar.edu/docs/ssh/guide/node29.html and it is to use the "-X" option to ssh. Bah!! Ted. On 27-Aug-07 17:00:58, Ted Harding wrote:
Hi Folks, A new question! (All this up-to-date Linux stuff is finding the gaps in my obsolete knowledge ...).
I'm currently trying (rather, wanting to try) running X apps remotely on one of my machines, with Gentoo running off the Live CD on the new laptop. So:
A = new laptop, latest Gentoo off live CD X is Xorg
B = old laptop, Red Hat 9 from 2003. X is X11R6
Normally, when I want remote X apps to display locally, I enter
xhost +
locally, and get "connection is allowed from any host". And it then works.
On A, I again enter "xhost +" and still get "connection is allowed from any host". So far so good, it would seem.
However, A has no telnet client, and rlogin won't work, soI have to use ssh to log in from A to B. This seems to work: I log in, I can tour directories, etc.
B knows where I'm coming from:
B:$ who am i ted ..... (192.168.1.8)
which is fine. But it hasn't attributed an X DISPLAY: echo $DISPLAY returns null. So on B I set
export DISPLAY=192.168.1.8:0.0
which is what I'd normally do. But now, when logged in to B, I issue
xterm
There is a delay, and then the message
xterm Xt error: Can't open display: 192.168.1.8:0.0
Does this have something to do with Xorg doing things differently from X11R6? The process I went through above would have worked between any of my X11R6 machines. Or might it have somthing to do with my logging in using ssh rather than telnet (Machine B is set up to be friendly to anything on my LAN 192.168.1.*).
Any suggestions appreciated! Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 27-Aug-07 Time: 18:00:54 ------------------------------ XFMail ------------------------------
_______________________________________________ main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
-------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding@manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 27-Aug-07 Time: 18:19:02 ------------------------------ XFMail ------------------------------
On Mon, Aug 27, 2007 at 06:00:58PM +0100, Ted Harding wrote:
Normally, when I want remote X apps to display locally, I enter
xhost +
Naughty! don't do that ;)
Any suggestions appreciated!
You will need to edit /etc/ssh/sshd_config (or similar on B) to uncomment the line X11Forwarding yes (or change no to yes, whichever) and restart ssh on B. Then you should be able to ssh from A to B with a command something like ssh -X ip.of.machine.a and then run X apps and have them displayed on A. (and if you do the reverse on A you can ssh from B to A and have it display X apps that way too) Adam -- jabberid = quinophex@jabber.earth.li
Hi Folks, A new question! (All this up-to-date Linux stuff is finding the gaps in my obsolete knowledge ...).
I'm currently trying (rather, wanting to try) running X apps remotely on one of my machines, with Gentoo running off the Live CD on the new laptop. So:
Current practice is by default for X servers NOT to listen on tcp port 6666 anymore. You may have to turn in on if you need it. Peter
participants (4)
-
Adam Bower -
Peter Onion -
Ted.Harding@manchester.ac.uk -
ted.harding@nessie.mcc.ac.uk