Re: X forwarding doesn't work

2009-08-16 Thread Michael Tansella
Am Sonntag, 16. August 2009 00:23:31 schrieb Boris Wong:
 ssh -l root -X -v 192.168.5.202 midori

That does the trick
Thanks

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Richy

The App is opening on the Freerunner, not on the desktop.
I have the exact same problem.





signature.asc
Description: OpenPGP digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Hans Zimmerman
Richy wrote:
 The App is opening on the Freerunner, not on the desktop.
 I have the exact same problem.
 
 
 
 
 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

Check your DISPLAY

Hans

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Michael Tansella
 Check your DISPLAY

 Hans

and how???

On the freerunner env says
DISPLAY=localhost:0

do have to do any:
DISPLAY=:??? dillo

The following doesn't work:

$ DISPLAY=:192.168.178.22:0  dillo
paths: Cannot open file '/home/root/.dillo/dillorc'
paths: Using /etc/dillo/dillorc
paths: Cannot open file '/home/root/.dillo/keysrc'
paths: Using /etc/dillo/keysrc
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
_X11TransSocketINETConnect() can't get address for :192.168.178.22:6000: Name 
or service not known
Can't open display :192.168.178.22:0

Greets
Michael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread arne anka
DISPLAY=:1 foo

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Michael Tansella
Am Samstag, 15. August 2009 12:33:02 schrieb arne anka:
 DISPLAY=:1 foo

... doesn't work for me

simarill...@simarillion-laptop:~$ ssh -X r...@192.168.5.202
r...@om-gta02 ~ $ DISPLAY=:1 dillo
paths: Cannot open file '/home/root/.dillo/dillorc'
paths: Using /etc/dillo/dillorc
paths: Cannot open file '/home/root/.dillo/keysrc'
paths: Using /etc/dillo/keysrc
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
Can't open display :1
r...@om-gta02 ~ $

Michael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread arne anka
 DISPLAY=:1 foo

 ... doesn't work for me

DISPLAY=:0 foo
?
- do you have X running on your host for your host's user at all?
- has your ssh x-forwarding enabled?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Ed Kapitein
arne anka wrote:
 DISPLAY=:1 foo
   
 ... doesn't work for me
 

 DISPLAY=:0 foo
 ?
 - do you have X running on your host for your host's user at all?
 - has your ssh x-forwarding enabled?

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


   
Another workaround can be:

On the desktop PC:
X :1 -ac

on the FR:
export DISPLAY=192.168.0.200:1.0
/some/x/app

This wil open a new X server (:1)on the desktop pc without access control.
it is not the most secure way of doing it, but it gets the job done.
( assuming 192.168.0.200  is the ip address of the desktop PC usb0 
interface)

Kind regards,
Ed


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Joshua Judson Rosen
Michael Tansella michael-tanse...@gmx.de writes:

 I want to start midori in the freerunner and forward the GUI tt my Linux Host 
  
 (Kubuntu)
 
 I tried it the following way, but it starts on the freerunner instead of the 
 host, any idea?:
 
 
 simarill...@simarillion-laptop:~$ ssh -l root -X -v 192.168.5.202
[...]
 r...@om-gta02 ~ $midori

My guess is that /etc/profile on the FreeRunner is overriding the
$DISPLAY environment-variable that sshd sets up, or something along
those lines. You didn't mention which distribution you're using
(OM2008.x? OM2009? SHR?), so I can't be sure, but...:

In SHR (which is what I run), this is what happens: ssh request X11
forwarding, sshd sets up forwarding and sets $DISPLAY to
localhost:10 (for the first connection--other simultaneous
connections get higher numbers), my shell starts and sources
/etc/profile, /etc/profile contains a line that does
export DISPLAY=localhost:0.

It wasn't always like this; I imagine that this was added to
/etc/profile as a bugfix because people didn't like having to do
export DISPLAY=:0 to launch apps (and have them display locally on
the FreeRunner) from SSH logins.

Perhaps a better option would be to change /etc/profile so that it
instead does:

if [ $DISPLAY =  ]
then
export DISPLAY=localhost:0
fi

... or something equivalent. Something like this would also work:

logger -t login Login with DISPLAY on ${DISPLAY:=localhost:0}

That posts a note about the login, and which DISPLAY value it used, to
syslog. The := means `if the variable already has a value, use that
value; otherwise assign the following value to it'.

-- 
Don't be afraid to ask (Lf.((Lx.xx) (Lr.f(rr.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Sebastian Krzyszkowiak
On 8/15/09, Joshua Judson Rosen roz...@geekspace.com wrote:
 Michael Tansella michael-tanse...@gmx.de writes:

 I want to start midori in the freerunner and forward the GUI tt my Linux
 Host
 (Kubuntu)

 I tried it the following way, but it starts on the freerunner instead of
 the
 host, any idea?:


 simarill...@simarillion-laptop:~$ ssh -l root -X -v 192.168.5.202
 [...]
 r...@om-gta02 ~ $midori

 My guess is that /etc/profile on the FreeRunner is overriding the
 $DISPLAY environment-variable that sshd sets up, or something along
 those lines. You didn't mention which distribution you're using
 (OM2008.x? OM2009? SHR?), so I can't be sure, but...:

 In SHR (which is what I run), this is what happens: ssh request X11
 forwarding, sshd sets up forwarding and sets $DISPLAY to
 localhost:10 (for the first connection--other simultaneous
 connections get higher numbers), my shell starts and sources
 /etc/profile, /etc/profile contains a line that does
 export DISPLAY=localhost:0.

 It wasn't always like this; I imagine that this was added to
 /etc/profile as a bugfix because people didn't like having to do
 export DISPLAY=:0 to launch apps (and have them display locally on
 the FreeRunner) from SSH logins.

 Perhaps a better option would be to change /etc/profile so that it
 instead does:

 if [ $DISPLAY =  ]
 then
 export DISPLAY=localhost:0
 fi

 ... or something equivalent. Something like this would also work:

 logger -t login Login with DISPLAY on ${DISPLAY:=localhost:0}

 That posts a note about the login, and which DISPLAY value it used, to
 syslog. The := means `if the variable already has a value, use that
 value; otherwise assign the following value to it'.

I just sent patch fixing that. Hopefully next images will have that fixed.

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-15 Thread Boris Wong
Michael Tansella wrote:
 Hi,

 I want to start midori in the freerunner and forward the GUI tt my Linux Host 
  
 (Kubuntu)

 I tried it the following way, but it starts on the freerunner instead of the 
 host, any idea?:


 simarill...@simarillion-laptop:~$ ssh -l root -X -v 192.168.5.202
   
I had this problem too, did so many things to the display variable but 
didn't work. This did though, runing the command in the same ssh call:

ssh -l root -X -v 192.168.5.202 midori

-Boris


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: `X forwarding doesn't work' fix

2009-08-15 Thread Joshua Judson Rosen
Sebastian Krzyszkowiak seba.d...@gmail.com writes:

 On 8/15/09, Joshua Judson Rosen roz...@geekspace.com wrote:
 
  In SHR (which is what I run), this is what happens: ssh request X11
  forwarding, sshd sets up forwarding and sets $DISPLAY to
  localhost:10 (for the first connection--other simultaneous
  connections get higher numbers), my shell starts and sources
  /etc/profile, /etc/profile contains a line that does
  export DISPLAY=localhost:0.
[...]

 I just sent patch fixing that. Hopefully next images will have that fixed.

Thank you, Sebastian :)

-- 
Don't be afraid to ask (Lf.((Lx.xx) (Lr.f(rr.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: X forwarding doesn't work

2009-08-14 Thread Risto H. Kurppa
this is how I'd do it:

ssh -X r...@192.168.0.202
login
midori 

It's possible that the result is ugly but should work. You didn't tell
what happens when you try to run midori.

r


-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community