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


X forwarding doesn't work

2009-08-14 Thread Michael Tansella
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
OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /home/simarillion/.ssh/config 
debug1: Reading configuration data /etc/ssh/ssh_config   
debug1: Applying options for *   
debug1: Connecting to 192.168.5.202 [192.168.5.202] port 22. 
debug1: Connection established.  
debug1: identity file /home/simarillion/.ssh/identity type -1
debug1: identity file /home/simarillion/.ssh/id_rsa type 1   
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048  
debug1: identity file /home/simarillion/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: Remote protocol version 2.0, remote software version dropbear_0.51
debug1: no match: dropbear_0.51
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-5ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server-client aes128-cbc hmac-md5 none
debug1: kex: client-server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '192.168.5.202' is known and matches the RSA host key.
debug1: Found key in /home/simarillion/.ssh/known_hosts:58
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/simarillion/.ssh/identity
debug1: Offering public key: /home/simarillion/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = de_DE.UTF-8
r...@om-gta02 ~ $midori

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-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