Networking:Remote X sessions on the Nokia 770

From Internet Tablet Talk

Some topics on internettablettalk.com have great views on what the 770 might have to offer in the future. One nice possibility is forwarding X sessions to a 770. I started with forwarding Gedit from my pc to my 770, but later on I had a go at 'oowriter2' (OpenOffice.org 2 Writer), Supertux and The Gimp. My experiences about those apps on the 770 are at the end of this post. First I'll tell you how to try it yourself.

Some basic requirements:

  • a computer running the X-server and sshd (a decent linux box ;-) )
  • a (fast) network connection between your N770 and the server
  • openSSH for the maemo platform

To install openSSH on your 770, download the openSSH .deb package to your N770. Next,open an X-terminal, and gain root access. If the .deb openSSH package is on your mmc, navigate to it:

   cd /media/mmc1/

And install openSSH (it doesn't install using the graphical package installer):

   dpkg -x ssh_*.deb /

Caution: Check /etc/ssh/sshd_config to make sure that your server sshd allows X forwarding! Time to connect to the server:

   ssh -X user@server

Change user to your login-name, and change server to your servers IP or domain name. The first time you log into your server from your 770, ssh wil ask you a question. Answer 'yes'. Then it will ask your password. Enter it. You should get a command prompt as 'user' on your server. Time to execute a program! I use the Gnome desktop environment, and the default text editor (like notepad in Windows -- but waaay better ;-) ) in Gnome is Gedit. The command to start Gedit from a terminal is 'gedit' (duh! :-p ). Execute

   gedit

Give it some time to start, and you'll see Gedit running on your 770! To try any other programs, just tap their commands into the terminal and have fun!

But there are a few downsides. The first big downside is text-input: The onscreen-keyboard does not appear when you put the cursor inside a text-field of an X-forwarded window. Copy-pasting text is possible though. Maybe people with working Bluetooth keyboards will be able to type some text. Is somebody willing to try? One other downside is that X-forwarded windows vanish when they are minimized. There seems to be no way to get them back, killing the parent program and restarting it is the only solution. (You can kill the parent program by bringing your X-term back up, opening 'X Terminal'->'Terminal'->'Send Ctrl-some key', and tapping the 'c' keyboard button.) The fullscreen button didn't work aswell. Gedit just doesn't recognise/receive the signal emited by that fullscreen button, I guess.

Beside those little anoyances, Gedit ran quite smooth. So I decided to start the OpenOffice.org 2 Writer. And it worked too! The gui wasn't 100% snappy (i.e. scrolling was laggy), but it seemed fast enough to be usable. Later that day, I decided to give Supertux a try. (Supertux is a Super Mario clone.) The verdict: not playable. The bluetooth connection between my pc and my 770 just wasn't fast enough to transfer all that graphical goodness without (a LOT of) lag. The Gimp suffers from the same problem. Drawing with your stylus is possible, but the result lags several seconds behind.

A possible solution for the lag problems would be to compress the data that's being sent between the X-server and the client (your 770). A FreeNX-client would be great as the NX protocol is in fact a compressed (and secured) forwarded X-session. (FreeNX is a free alternative to NoMachine NX.)


This article has been reproduced with permission from RealNitro's Blog.

--Agentdr8 02:20, 9 January 2006 (EST) Typing in X-forwarded screens does work from a BT keyboard (and presumably USB KBs as well).

ooWriter screencap


All times are GMT -4. The time now is 02:13 AM.