Comment #15 on issue 324 by
wana...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324
OMGOMG I got it working !
Here is how I did (if someone is still looking for it...)
So, I am using Connect bot along with the app "X server" (which is not
really beautiful, but this is kind of a proof of concept)
Config "X server":
You need to specify what ip addresses are allowed to display anything in
it. Add "127.0.0.1" in the "access control" menu. (Yes it's stupid that
it's not here already..) You can also add the address of your server, but
that would mean you will be streaming X11 on the network without any
encryption (baaaad !!) This is it for the "X server" config.
Config "Connect bot":
I guess you all know how to connect to your ssh server using that. But I
was never sure how to do a port forwarding (yes I am gonna forward the 600X
port :/ )
So this is a "remote" forward. From the 6001 port (remote) to the
localhost:6000.
I choose port 6001 because on the server, 6000 is already used by the local
display (if you have any...) So now server's 6001 port goes on the mobile's
6000 port (yeay !)
We now have to specify that any X app should be launched on the 6001 port.
Edit your connectBot connection and edit the "Post-login automation" (or
type this after you logged in...)
"export DISPLAY=:1" and press enter, so it executes it more than just
typing it.
This means that what will be executed in this session will be displayed on
the 6001 port of the server, which is forwarded to the 6000 port of the
mobile, that is accepted by the "X server" app. Voila !
Ho! Just check that the "X Server" app is still runing, it might shutdown
when you are multitasking.
So things like xterm and xclock are working great. You just don't have a
window manager... Unless you manage to startx... but I couldn't be bothered
so to make it work so far.
Also it seems that bigger apps like firefox, thunar (etc...) are missing
some x11 server extensions to work properly. If anyone is a pro in X11...
Maybe other X server apps implement those, I have to try !
A site that helped me to see a bit clearer:
http://tldp.org/HOWTO/XDMCP-HOWTO/intro.html
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings