ex11 + ssh X11 forwarding
Hal Snyder
hal@REDACTED
Fri May 7 19:28:17 CEST 2004
Peter-Henry Mander <erlang@REDACTED> writes:
> I'm curious, I don't have this ssh problem, ex11 X11 forwarding
> works fine over ssh. I think I'm using the current release,
>
> i.e. http://www.sics.se/~joe/ex11/download/release-2.tgz
>
> I get:
>
> [1007] echo $DISPLAY
> localhost:11.0
>
> on a ssh xterm launched with
>
> ssh -f remote_host xterm
>
> which leads me to believe you may be unnecessarily specifying a
> DISPLAY, it should look as if the display is local.
Thanks for the reply. I am running release-2.tgz as well.
$ md5 release-2.tgz
MD5 (release-2.tgz) = 2684971c44c5c8f9d130ebf85adfedb5
I am not doing anything special to override default ssh X11
forwarding. (Names "remote" "wrkstn" below are X11 client and server
respectively.)
$ echo $DISPLAY
localhost:10.0
$ xeyes
... works ...
$ cd ~/ex11/release-2
$ gmake
cd lib; make
cd widgets; make
erl -pa '../lib' -s example0 start
Erlang (BEAM) emulator version 5.3 [source] [hipe] [threads:0]
Eshell V5.3 (abort with ^G)
1> ex11_lib_driver:start Host="localhost:10.0"
Host="remote" Screen=10
calling xauth:display2cookie Host="remote" Screen=10
ex11_lib_xauth:display2cookie Address="remote"
PossNames=["127.0.0.1",
"remote",
"localhost",
"127.0.0.1",
"localhost.my.domain",
"remote",
"remote.local."]
Required Number=10
Found address="remote.local"
skipping record name="remote.local" family=256
skipping record name="192.168.149.80" family=0
skipping record name="remote.local" family=256
...
skipping record name="wrkstn.local" family=256
Trying brute force method
L=[[89,182,...
And the demo does not appear.
But it appears if I set DISPLAY on remote to wrkstn:0.0 then do xhost
+remote on wrkstn.
Workstation (X11 server) is
OpenBSD-2.7+
OpenSSH_2.9.9
XFree86 Version 3.3.6
Remote system (X11 client) is
FreeBSD-5.0
OpenSSH_3.5p1
XFree86 Version 4.2.1
> If I run the ex11 demo, it pops up with no problem.
Puzzling.
More information about the erlang-questions
mailing list