Fail to connect via Xephyr to remote X-desktop?

Wil Decius wilson.decius at gmail.com
Fri Aug 1 11:51:36 PDT 2008


I've installed an OpenSuse11 Xen DomU on a remote box, running KDE3 as Desktop.

I'd like to get to its graphical Desktop via Xephyr from my Mac
desktop.

Following & trying to adapt a howto @,

 http://etbe.coker.com.au/2007/01/07/xephyr/

@ I'm failing.

The details of what I have are,

@ desktop, a Mac Powerbook running OSX 10.5.4,

       uname -a
               Darwin powerbook 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9
19:36:17 PDT 2008; root:xnu-1228.5.20~1/RELEASE_PPC Power Macintosh

       echo $DISPLAY
               :0.0

       cat ssh_config
               ...
               SendEnv DISPLAY
               ...

I can readily SSH to the Xen DomU/remote,

       ssh -F /usr/local/etc/ssh/ssh_config -l root kde_domu.mydomain.com

       uname -a
               Linux kde_domu 2.6.25.11-0.1-xen #1 SMP 2008-07-13 20:48:28 +0200
x86_64 x86_64 x86_64 GNU/Linux

       echo $DISPLAY
               :0.0

       cat sshd_config
               ...
               AcceptEnv DISPLAY
               ...

       grep TCP_PORT_6000_OPEN /etc/sysconfig/displaymanager
               DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"

also, of note, I can successfully use VNC from my desktop to get to
the DomU's graphical desktop.

but, trying with Xephyr,

@ the Mac/desktop, from the X11.app's xterm,

vi xephyr_start.sh
 #!/bin/bash
 set -x
 defaults write com.apple.x11 nolisten_tcp -boolean false
 CONF="/usr/local/etc/ssh/ssh_config"
 MACH="kde_domu.mydomain.com"
 USER="root"

 COOKIE=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"`
 FILE=~/.Xauth-Xephyr
 rm -f $FILE

 ssh -F $CONF -l $USER $MACH "echo \"add 192.168.1.6:2 . $COOKIE\" | xauth"
 echo "add :2 . $COOKIE" | xauth -f $FILE
 Xephyr :2 -auth $FILE -reset -terminate -screen 1280x1024 $* &
 DISPLAY=192.168.1.6:2 ssh -F $CFG -l $USER $MACH twm
 wait

then,

       sh xephyr_start.sh

fails & reports,

 + defaults write com.apple.x11 nolisten_tcp -boolean false
 + CONF=/usr/local/etc/ssh/ssh_config
 + MACH=kde_domu.mydomain.com
 + USER=root
 + XAUTH=/usr/X11R6/bin/xauth
 + XEPHYR=/usr/X11R6/bin/Xephyr
 ++ dd if=/dev/urandom bs=16 count=1
 ++ hexdump -e '"%08x"'
 + COOKIE=a9df93a5fbeb8d0cb37b00b3adf5f4dc
 + FILE=/var/root/.Xauth-Xephyr
 + rm -f /var/root/.Xauth-Xephyr
 + ssh -F /usr/local/etc/ssh/ssh_config -l root kde_domu.mydomain.com
'echo "add 192.168.1.6:2 . a9df93a5fbeb8d0cb37b00b3adf5f4dc" | xauth'
 + echo 'add :2 . a9df93a5fbeb8d0cb37b00b3adf5f4dc'
 + /usr/X11R6/bin/xauth -f /var/root/.Xauth-Xephyr
 /usr/X11R6/bin/xauth:  creating new authority file /var/root/.Xauth-Xephyr
 + DISPLAY=192.168.1.6:2
 + ssh -F /usr/local/etc/ssh/ssh_config -l root kde_domu.mydomain.com twm
 + /usr/X11R6/bin/Xephyr :2 -auth /var/root/.Xauth-Xephyr -reset
-terminate -screen 1280x1024


 Xephyr cannot open host display. Is DISPLAY set?
 twm:  unable to open display ":0.0"
 + wait

Any ideas as to what to fix?

Wil



More information about the xorg mailing list