ex11 + ssh X11 forwarding

Hal Snyder <>
Fri May 7 19:28:17 CEST 2004

Peter-Henry Mander <> 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

$ echo $DISPLAY

$ 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"
Required Number=10
Found address="remote.local"
skipping record name="remote.local" family=256
skipping record name="" family=0
skipping record name="remote.local" family=256
skipping record name="wrkstn.local" family=256
Trying brute force method

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
  XFree86 Version 3.3.6

Remote system (X11 client) is
  XFree86 Version 4.2.1

> If I run the ex11 demo, it pops up with no problem.


More information about the erlang-questions mailing list