Re: Issue 324 in connectbot: X11 Forwarding -X option

1,243 views
Skip to first unread message

conne...@googlecode.com

unread,
May 11, 2011, 9:14:09 PM5/11/11
to connectbo...@googlegroups.com

Comment #5 on issue 324 by pstevens...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

@rickgha,
make connectbot execute this
export DISPLAY=:0
after logging in to shell, and your gui commands will be launched on your
server screen

conne...@googlecode.com

unread,
May 12, 2011, 3:58:22 AM5/12/11
to connectbo...@googlegroups.com

Comment #6 on issue 324 by rickgha...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

@pstevens
yes indeed I don't actually need the -X option ( that what I was missing ).

thanks , my issue is solved .

conne...@googlecode.com

unread,
Oct 9, 2011, 11:03:17 AM10/9/11
to connectbo...@googlegroups.com

Comment #7 on issue 324 by philip.f...@alumni.utoronto.ca: X11 Forwarding
-X option
http://code.google.com/p/connectbot/issues/detail?id=324

How do you tell connectbot to execute 'export DISPLAY=:0' after it logs
into the shell?

conne...@googlecode.com

unread,
Oct 9, 2011, 11:37:25 AM10/9/11
to connectbo...@googlegroups.com

Comment #8 on issue 324 by mehmetae...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

@phillip It's a command just like any other that you type in connectbot
after it connects to your shell.

conne...@googlecode.com

unread,
Feb 9, 2012, 1:53:09 PM2/9/12
to connectbo...@googlegroups.com

Comment #9 on issue 324 by nito.mar...@qindel.es: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

I would like to reopen this one:

See:

https://market.android.com/details?id=com.theqvd.android.x

The intent that can be used is:

x11://localhost:0

If any feature is needed in the X11 application, I would be happy to
implement that.

conne...@googlecode.com

unread,
Apr 5, 2012, 11:12:51 PM4/5/12
to connectbo...@googlegroups.com

Comment #10 on issue 324 by wana...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

My goal is displaying on Android remotely lauched apps on Linux.

Sooo, is it possible to forward X11 ports with ConnectBot or not ?

I am trying to use the "X server" app but I don't think opening 600X ports
manually is a good idea.

Also I tried "Xvnc:X/X11", but didn't want to do a VNC.

conne...@googlecode.com

unread,
Jul 28, 2012, 12:07:11 PM7/28/12
to connectbo...@googlegroups.com

Comment #11 on issue 324 by marian...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

@kenny my phone *has* x11. See comments 9 and 10.

Please reopen!!!

conne...@googlecode.com

unread,
Aug 1, 2012, 4:43:25 PM8/1/12
to connectbo...@googlegroups.com

Comment #12 on issue 324 by spaes...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

Similar issue but I'm not even at the -X option. (not to mention forced
closes but that's for another day)

I've got open-ssh on the linux box.
I did the ssh-keygen -t rsa thing.
I've tried to connect from the phone through Fing (which uses ConnectBot)
and directly
with ConnectBot.

In both cases I get connected but the password authentication fails.
I suspect character encoding but for the life of me can't find a setting
for it.

If I can get past this step I can try the -X option.



conne...@googlecode.com

unread,
Oct 24, 2012, 3:32:37 AM10/24/12
to connectbo...@googlegroups.com

Comment #13 on issue 324 by nath.boc...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

I don't understand why this issue is medium. X servers are available on
android. I can not use them at work only because I have not found a way to
do ssh -X (or ssh -Y). The slowness is not an issue: Xserver were working
perfectly fine 20 years ago and tablets are getting more powerful.

conne...@googlecode.com

unread,
Nov 18, 2012, 6:55:15 PM11/18/12
to connectbo...@googlegroups.com

Comment #14 on issue 324 by maan...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

Hi guys!
I tried to export the display like this:
export DISPLAY=ipaddress:0 , also export DISPLAY=ipaddress:6000 .

Gnuplot (on remote machine) thinks about it a while, then says that it is
not able to open display.

So the question is: is it possible on android to remotely run gnuplot w/
x11?

I'm using android-xserver as x server.

Thanks.

MA

conne...@googlecode.com

unread,
May 19, 2013, 10:16:29 AM5/19/13
to connectbo...@googlegroups.com

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

conne...@googlecode.com

unread,
Feb 13, 2014, 11:47:36 AM2/13/14
to connectbo...@googlegroups.com

Comment #16 on issue 324 by maan...@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

I did exactly what you suggested, but it says "Error: Can't open
display: :1"

conne...@googlecode.com

unread,
Mar 17, 2014, 3:04:49 AM3/17/14
to connectbo...@googlegroups.com

Comment #17 on issue 324 by hossein....@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

Any solution for that? I even bought the xvnc app,
But still i cannot run xterm
What i need (as in several above comments) to run programs like gnuplot,
xmgrace.. , or any other programs that needs such interface(in the
terminal) when i am connected to a server

I really appreciate ur help
I starving for a solution

conne...@googlecode.com

unread,
Mar 17, 2014, 3:07:39 AM3/17/14
to connectbo...@googlegroups.com

Comment #18 on issue 324 by hossein....@gmail.com: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

Btw i tried all the above suggestions hundred times .... Non of them works
for me( i have a nexus)

conne...@googlecode.com

unread,
Jul 1, 2014, 6:41:26 PM7/1/14
to connectbo...@googlegroups.com

Comment #19 on issue 324 by goo...@popolon.org: X11 Forwarding -X option
http://code.google.com/p/connectbot/issues/detail?id=324

As a workaround to display on your Android device
(tablet/nettop/smartbook...) X11 server (like GPL "X server" application)
is :
* launch network connection (wifi, ethernet or whatever.
* get your device IP (for exemple by using settings=> about your phone =>
state (status ?), you will see on this page your IP address.
* launch X server on your phone,
* connect to the system that will launch X11 application (aka clients) and
type :

export DISPLAY=<yourdevice_adr_ip>:0 (for exemple DISPLAY=192.168.0.2:0)

launch your X11 client... et voilà !

Warning everything is transfered without encryption at all, this is a
workaround until SSH X forwarding is implemented in connectbot (or other
android SSH client ?).

conne...@googlecode.com

unread,
Sep 10, 2014, 5:33:32 PM9/10/14
to connectbo...@googlegroups.com

Comment #20 on issue 324 by brib...@gmail.com: X11 Forwarding -X option
https://code.google.com/p/connectbot/issues/detail?id=324

I have the same error "Error: Can't open display: :1"

i'm on samsung note 3 with android 4.4.2 (kitkat)

i'm trying to connect to scientific linux host
Reply all
Reply to author
Forward
0 new messages