Author Topic: Remote X sessions  (Read 3289 times)

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Remote X sessions
« on: May 29, 2004, 10:50:46 am »
Hi,

Is there a way to get to use the Z as a remote X session server? I\'ve got X/Qt on my Z (though it\'s problematic), but what would be good is if I can use something like eXceed on my desktop PC and have the Z serve up X applications. I know an option is VNC, but that\'s limited to displaying the Z\'s display and is quite slow.

Anyone help?

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Remote X sessions
« Reply #1 on: June 10, 2004, 10:51:36 am »
Quote
Hi,

Is there a way to get to use the Z as a remote X session server? I\'ve got X/Qt on my Z (though it\'s problematic), but what would be good is if I can use something like eXceed on my desktop PC and have the Z serve up X applications. I know an option is VNC, but that\'s limited to displaying the Z\'s display and is quite slow.

Anyone help?


I wasn\'t familiar with the X/Qt project, but it sounds like what you want to do is possible. However you have to remember that most of the apps (on the stock Sharp ROM) are Qt based, not X. So you wouldn\'t be able to remote display those apps.

Still it is worth playing around with. I\'ll have to download X/Qt onto my SL-6000 and give it a try.

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Remote X sessions
« Reply #2 on: June 10, 2004, 10:54:57 am »
My ignorance may be showing, but would installing a qtopia desktop on your windows machine work?
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
Remote X sessions
« Reply #3 on: June 10, 2004, 12:19:37 pm »
Quote
Is there a way to get to use the Z as a remote X session server? I\'ve got X/Qt on my Z (though it\'s problematic), but what would be good is if I can use something like eXceed on my desktop PC and have the Z serve up X applications. I know an option is VNC, but that\'s limited to displaying the Z\'s display and is quite slow.


What problems are you having with X/qt?  I switched to .8 from .9 and all my problems with screen fonts, perltk, etc... have gone away.  I use Cacko 1.21 as well on my c860.  I think the only difference from .8 to .9 was the support for screen rotation.

You asked about serving up X applications (not Qt).  X is client/server, from Windows you need to run the equivalent of \"xhost +\" to allow any remote machine to connect to your X server, if you are concerned about security use \"xhost zaurusname\".  Then ssh into your Z and type export DISPLAY=windowshostname:0, then all X apps will appear on Windows.  I have not used Exceed for a long time but is does have something like xhost.  (BTW this is true for the reverse, if you want to run external X apps to the Z).

I just tested with Cygwin/X (Like Exceed, but free) and it works just fine.

E.g.

Install Cygwin/X
Open Cygwin/X xterm
type:
xhost zaurus
ssh -l root zaurus
export DISPLAY=windowsmachine:0
xterm

Now I have an xterm on my windows box, but it came from the Z.

Any application will work.  I have run ethereal, xterm, xchat, perl/tk apps, etc... no problem.

VNC is an option as well.  I am not sure what VNC exists that allows the entire Z display to be controlled like PC Anywhere (If there is one, I\'d like to see it).  But I do know that if all you want is X, the get qtopia-X.

After you install qtopia-x type:

Xvnc :n -geometry WxH -fp /home/QtPalmtop/lib/X11/fonts/misc -co /usr/lib/vnc/rgb &

Where n is ]0 and W and H are any size screen you want.

E.g.

Xvnc :20 -geometry 600x600 -fp /home/QtPalmtop/lib/X11/fonts/misc -co /usr/lib/vnc/rgb &

Next type in the same Zaurus session that started Xvnc:

export DISPLAY=:20
xterm &

Then start up VNC client on windows and point to zaurus:20, in the example above I get an 600x600 screen with an xterm.  In the xterm I type fluxbox & and now I nave a window manager.

Xvnc --help will show other options.

You will probably want to create a script to do all of that, plus have it add all the Xqt fonts in your font path.  -depth 16 is good--makes fluxbox look better.

I prefer VNC, it is persistent, I can disconnect and reconnect and loose nothing.  However it does have more overhead, because I am running an X server and a window manager on the Z.  If you just export your DISPLAY to another and run X apps there is no need to run Xvnc or Xqt, just get the apps and libs.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Remote X sessions
« Reply #4 on: June 10, 2004, 12:19:43 pm »
xhost?
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

evowan

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Remote X sessions
« Reply #5 on: June 11, 2004, 04:44:42 am »
Quote
I just tested with Cygwin/X (Like Exceed, but free) and it works just fine.

E.g.

Install Cygwin/X
Open Cygwin/X xterm
type:
xhost zaurus
ssh -l root zaurus
export DISPLAY=windowsmachine:0
xterm


Thanks, got it working!