Go Back   maemo.org - Talk > OS / Platform > Maemo 5 / Fremantle
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2010-01-18, 11:43
tomassey tomassey is offline
 
Join Date: Jan 2010
Posts: 7
Thanks!: 4
Thanked 5 Times in 2 Posts
Default SSH X11 Forwarding on N900

I haven't seen anybody mention this, and it was missing from http://wiki.maemo.org/Remote_desktop so I've added it there.

May be of use, I think it's pretty cool.

SSH X11 forwarding allows you to run applications on a remote computer running an X11 server and have them displayed on a local X11 client, using the SSH protocol to keep the connection secure. For the purposes of Maemo devices, this allows you to connect to your Linux machine from your N900, run any X11 application on your Linux machine, and have it forward the display and keyboard/mouse capture to your N900.

You will need to have installed an ssh client on your N900 to do this.

The below assumes you are connecting to a Linux PC called 'host', with a user account 'user'.

Open an xterminal on your N900 and type:

~$ ssh -X user@host

Answer the password prompt:

user@host's password:

You now have a CLI prompt from which you can launch any X11 applications on your Linux machine and have them displayed on your N900.

user@host:~$
Reply With Quote
The Following 4 Users Say Thank You to tomassey For This Useful Post:
  #2  
Old 2010-01-18, 11:52
johnel johnel is offline
 
Join Date: Dec 2009
Location: earth?
Posts: 999
Thanks!: 1,251
Thanked 1,117 Times in 394 Posts
Default Re: SSH X11 Forwarding on N900

It never occured to me to try this on the n900!

I've used this with other systems in the past and it is genuinely useful.

I found it useful for keeping an eye on compiling stuff remotely. With a static IP address you can do this across the internet as well.
__________________
I like cake.
Reply With Quote
  #3  
Old 2010-01-18, 11:59
benny1967's Avatar
benny1967 benny1967 is offline
 
Join Date: Mar 2006
Location: Vienna, Austria
Posts: 3,790
Thanks!: 5,264
Thanked 5,718 Times in 1,546 Posts
Default Re: SSH X11 Forwarding on N900

What I tried to do with previous Maemo versions is make this work the other way round: start an app on the N900 and control it on either my Ubuntu or my Gentoo box.

Sometimes it's just nicer to have a mouse and a full keyboard, especially when you experiment a lot or go through a process step by step and want do document it with screenshots.

I never succeeded, though. (There should be some threads about this here.) - I don't have the N900 with me now... so... does it finally work with Maemo 5? Did you try?
Reply With Quote
  #4  
Old 2010-01-18, 12:02
therock therock is offline
 
Join Date: Nov 2009
Posts: 104
Thanks!: 4
Thanked 40 Times in 19 Posts
Default Re: SSH X11 Forwarding on N900

i played around with it alot and i got Linux laptop --> N900 openoffice

but i could not get it the other way around N900 --> Linux laptop

i think it has something todo with authentication

see this thread
http://talk.maemo.org/showthread.php...ighlight=xauth
Reply With Quote
The Following User Says Thank You to therock For This Useful Post:
  #5  
Old 2010-01-18, 12:09
benny1967's Avatar
benny1967 benny1967 is offline
 
Join Date: Mar 2006
Location: Vienna, Austria
Posts: 3,790
Thanks!: 5,264
Thanked 5,718 Times in 1,546 Posts
Default Re: SSH X11 Forwarding on N900

pity.

i'd find this much more useful than displaying desktop applications on the N900.... although my use cases are very special.
Reply With Quote
  #6  
Old 2010-01-18, 12:14
jaeezzy's Avatar
jaeezzy jaeezzy is offline
 
Join Date: Jul 2008
Location: Australia
Posts: 664
Thanks!: 208
Thanked 160 Times in 91 Posts
Default Re: SSH X11 Forwarding on N900

Quote:
Originally Posted by johnel View Post
It never occured to me to try this on the n900!

I've used this with other systems in the past and it is genuinely useful.

I found it useful for keeping an eye on compiling stuff remotely. With a static IP address you can do this across the internet as well.
I would be grateful if you could give step by step guide to sshing across the internet. That would be coool. Thanks.
Reply With Quote
  #7  
Old 2010-01-18, 12:15
therock therock is offline
 
Join Date: Nov 2009
Posts: 104
Thanks!: 4
Thanked 40 Times in 19 Posts
Default Re: SSH X11 Forwarding on N900

me 2 i would love to have xauth and X11 forwarding working both ways
Reply With Quote
  #8  
Old 2010-01-18, 12:49
tomassey tomassey is offline
 
Join Date: Jan 2010
Posts: 7
Thanks!: 4
Thanked 5 Times in 2 Posts
Default Re: SSH X11 Forwarding on N900

Mmm, would be useful to be able to do it the other way. Really should be possible.

The /etc/ssh/sshd_config file on the N900 has X11Forwarding yes

Far as I can tell it's identical to the sshd_config file on Debian Lenny.

Vague thought would be to compile xauth for Maemo 5. Or perhaps xhost, though that wouldn't be very secure.

Also wonder about ssh -X user@N900 instead of root.

Have to give the user account a password. Or allow ssh logins without a password, perhaps.
Reply With Quote
  #9  
Old 2010-01-18, 12:54
ruskie ruskie is offline
 
Join Date: Aug 2009
Location: Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
Posts: 543
Thanks!: 23
Thanked 181 Times in 104 Posts
Default Re: SSH X11 Forwarding on N900

To be precise you need an X11 server localy(which of course there is)[it's the server that displays].
The remote end just needs a client which any X app would basically be
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
Reply With Quote
  #10  
Old 2010-01-18, 13:12
tomassey tomassey is offline
 
Join Date: Jan 2010
Posts: 7
Thanks!: 4
Thanked 5 Times in 2 Posts
Default Re: SSH X11 Forwarding on N900

I'm actually wondering if it's possible to install the Debian package x11-xserver-utils from http://packages.debian.org/lenny/arm...utils/download

Which should give you xhost. Run xhost + on the N900, should get rid of any authentication problems.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:11.