OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => X/Qt => Topic started by: akpoff on July 08, 2004, 12:21:11 am

Title: Forwarding X Apps from Z to Workstation
Post by: akpoff on July 08, 2004, 12:21:11 am
Has anyone been able to forward X applications from their Z to their workstation?  I've tried:
 
Code: [Select]
ssh -CX No go.  Whenever I echo $DISPLAY it comes up empty.  I verified that /etc/ssh/sshd_config on the Z has AllowTcpForwarding set to "yes" and (as well as /etc/ssh/ssh_config on the client side).

I noticed that X/QT does not seem to install xauth so I've tried skirting it altogether by setting "xhost +" on the client while manually setting DISPLAY to the correct IP.  No luck.  My preferred method of forward would be to use SSH.

I've verified that I can forward X sessions from other systems to the workstation in question.  I successfully ran OpenOffice.org from an OS X box back to the Linux workstation.  (Using SSH x forwarding.)

So -- has anyone tried and succeeded in forwarding X from a Z to another box?  Have I overlooked anything?

Thanks!
Title: Forwarding X Apps from Z to Workstation
Post by: Stubear on July 08, 2004, 06:04:47 am
You must manually set DISPLAY, just because you run ssh with X forwarding doesn't mean you want all apps to go remote. If you do then you must export DISPLAY.

It need to to be the IP address and the display number (generally 0.0, but check by echo $DISPLAY on the workstation.

example
Code: [Select]
export DISPLAY=192.168.0.1:0.0where the desktop is 192.168.0.1 (change as needed)

xauth is only needed on the X server that is accepting remote x apps - you don't need it on the Z to forward apps.

If you want to send a sinlge app to the desktop while sending others to X/QT then you can do the following
Code: [Select]
DISPLAY=192.168.0.1:0.0 xeyes &
note you don't have to be running X/QT to forward x apps, you can forward them from the konsole.

Stu
Title: Forwarding X Apps from Z to Workstation
Post by: datajerk on July 08, 2004, 11:12:14 am
Quote
Has anyone been able to forward X applications from their Z to their workstation? I've tried:
CODE
ssh -CX <ip-of-zaurus>

No go. Whenever I echo $DISPLAY it comes up empty.
Normally when you SSH to a machine with -X, xauth is run and you are giving a DISPLAY=localhost:n

If you as the -v switch you will see an error about not finding xauth.

Quote
I noticed that X/QT does not seem to install xauth so I've tried skirting it altogether by setting "xhost +" on the client while manually setting DISPLAY to the correct IP. No luck. My preferred method of forward would be to use SSH.
You need to install xbase-clients from the X/qt website if you want xauth.

Quote
I've verified that I can forward X sessions from other systems to the workstation in question. I successfully ran OpenOffice.org from an OS X box back to the Linux workstation. (Using SSH x forwarding.)
Yep.  I do that all the time too.

Quote
So -- has anyone tried and succeeded in forwarding X from a Z to another box? Have I overlooked anything?

I am using Cacko 1.21b with X/qt.  After I did the following I get a DISPLAY after ssh -X

Append to the end of /etc/ssh/sshd_config:

Code: [Select]
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
XAuthLocation /home/QtPalmtop/bin/xauth

And restart sshd if running as a daemon.  I use inetd, so no need to restart.
Title: Forwarding X Apps from Z to Workstation
Post by: tz on July 08, 2004, 02:28:50 pm
It works well.  I had to do it for FireFox initially since their toolbar config screen was too big for the Z.

I have to remember to do an "xhost +" or variant for just the Z.

I didn't use ssh to forward X, I logged in from laptop to Z using SSH, then set DISPLAY back to my laptop (this was over the USB, but I've done things via wireless or ethernet too).

I think you have to enable X forwarding with sshd like was described above if you want to do other things.

Quick note,  you can do

ssh -R 6001:127.0.0.1:6000  ...

Which will forward port 6001 on the remote machine to 6000 on the local, which means that DISPLAY=:1.0 (if I remember right) will now forward X even if sshd has this turned off.

I've even done it the other way - laptop X program to the Z running X/Qt.