Fix Xwindows to run the emulator remotely over SSH mini HOWTO

From GreenphoneWiki

Jump to: navigation, search

I wanted to have a central server where I could ssh into and start X applications like the emulator. I first did lots of extracting and copying of files to turn the VMware into a Xen instance. That's a bit tricky, since the debian doesnt give a proper shell over the console with xen, and does not start sshd. to fix that mount the extfs and add the following to /etc/init.d/local

  apt-get update
  apt-get install openssl-server

don't do apt-get upgrade, as trolltech people told me that breaks the SDK You might also want to change /etc/network/interfaces to configure a static ip, instead of using dhcp.

boot the image, login via sshd and remove those lines again from /etc/init.d/local

CHANGE the passwords of user and root, or the first ssh-worm trying to login will own your box.

Now, to we need to work around a bug in the debian sshd version here. do this:

  mkdir /usr/bin/X11
  cd /usr/bin/X11
  ln -s /usr/X11R6/bin/xauth

now you can login and start the emulator from anywhere using:

 ssh user@IPaddress /home/user/scripts/runqpe

This works for my Linux Gnome (FC4) desktop, but it seems to not fully work on OSX from X11.app. I get the panel, but only half of the phone appears, cut of dagonally across the display. I also ran into problems where closing my ssh session didn't clean up all the stuff running remotely. so check for hanging qpe/qss/phonesim and quicklancher processes if it stops working for you. And perhaps manually delete the files/dirs in /tmp such as qtembedded-0 qtopia-0 restart-qtopia and /tmp/.qt*


Depending on your ssh_config, you might need to run ssh with -X and/or -Y

Personal tools