Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fail to connect from OSX to remote X-desktop?



I'm trying to connect via OSX's X11/Xephyr to a remote Linux server's
graphical 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've also updated to latest X11.app v2.3.0 @
http://xquartz.macosforge.org/trac/wiki/X112.3.0,

  "X11 2.3.0
   Released: 2008.07.19
   This release contains Xquartz-1.4.2-apple5."

	man Xquartz | grep Version
		X Version 11               xorg-server 1.4.2-apple5                 XQUARTZ(1)

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
	  ...

	cat /etc/sysconfig/displaymanager
		DISPLAYMANAGER="yes"
		DISPLAYMANAGER_REMOTE_ACCESS="yes"
		DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"
		DISPLAYMANAGER_STARTS_XSERVER="yes"
		DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"
		DISPLAYMANAGER_AUTOLOGIN=""
		DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"
		DISPLAYMANAGER_AD_INTEGRATION="no"
		DISPLAYMANAGER_SHUTDOWN="auto"
		DISPLAYMANAGER_RANDR_MODE_VGA="auto"
		DISPLAYMANAGER_RANDR_MODE_auto="1024x768_60 64.11 1024 1080 1184
1344 768 769 772 795 -HSync +Vsync"
		DISPLAYMANAGER_XSERVER="Xorg"
		DISPLAYMANAGER_XGL_OPTS="-accel glx:pbuffer -accel xv:pbuffer"
		KDM_USERS=""
		KDM_GREETSTRING=""
		DISPLAYMANAGER_KDM_THEME="SUSE"
		DISPLAYMANAGER_KDM_LOCALARGS=""

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?

Thanks,

Wil
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.