QUOTE(Lumune @ Apr 12 2006, 09:15 PM)
QUOTE(pgas @ Mar 30 2006, 03:53 PM)
Zaurus:
-set a password for root
- Edit /etc/ssh/sshd_config:
X11Forwarding: yes
on the pc running X:
- ssh -X root@zaurusip
then launch xterm dillo or whatever
I have followed ur instructions, I could ssh into Z, but when I tried to run dillo I got the following error:
CODE
# dillo&
[1] 488
#
Gtk-WARNING **: cannot open display:
[1]+ Exit 1 dillo
#
I am running this on X11 on my mac
any ideas what cause this?
It's the same thing I noticed. You have to set your DISPLAY variable to point to your pc, as in 'export DISPLAY=192.168.129.1:0' (if that's your pc's ip) before running the command.
I wrote myself a script to set it when I needed it. Put it in your path & just use it to run your program 'xpc dillo'. HTH
NB: this works with openssh installed. I'm not sure if it works with dropbear (as is default in the OZ images, don't know about what you use in pdaxrom).
CODE
#!/bin/sh
# xpc
# Runs the given command on the pc's X display
if [ $# -eq 0 ]; then
echo "Usage: ${0##*/} command [args]"
exit 1
fi
CMD=$@
if [ -n "$SSH_CONNECTION" ]; then
set -- $SSH_CONNECTION
else
echo cannot determine host connection >&2
exit 1
fi
export DISPLAY=${1}:0
($CMD 2>&1 | grep -Ev "^$|WARNING") &
exit 0