[opensuse-xorg] Fail to connect via Xephyr to remote Opensuse11 desktop?
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. Eventually, it'll serve as a multiseat server, but for now, just one connection ... Following & trying to adapt a howto @, http://etbe.coker.com.au/2007/01/07/xephyr/ I'm failing to make the connection -- problems with DISPLAY variables, but not certain :-/ Any suggestions as to what to fix? Thank, Wil DETAILS: I have, @ 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 ... 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 Xlib: No protocol specified Xephyr cannot open host display. Is DISPLAY set? twm: unable to open display ":0.0" + wait -- To unsubscribe, e-mail: opensuse-xorg+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-xorg+help@opensuse.org
On Aug 01, 08 09:59:13 -0700, Wil Decius wrote:
I'd like to get to its graphical Desktop via Xephyr from my Mac desktop. Eventually, it'll serve as a multiseat server, but for now, just one connection ...
Following & trying to adapt a howto @,
http://etbe.coker.com.au/2007/01/07/xephyr/
I'm failing to make the connection -- problems with DISPLAY variables, but not certain :-/
I'm not exactly sure, but it looks like connections are to be done using TCP sockets:
+ 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 Xlib: No protocol specified
TCP sockets are off by default for added security, you have to enable them in /etc/sysconfig/displaymanager:DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN Just an idea, though. Matthias -- Matthias Hopf <mhopf@suse.de> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat@mshopf.de Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de -- To unsubscribe, e-mail: opensuse-xorg+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-xorg+help@opensuse.org
Hi Matthias, On Fri, Aug 1, 2008 at 10:40 AM, Matthias Hopf <mhopf@suse.de> wrote:
TCP sockets are off by default for added security, you have to enable them in /etc/sysconfig/displaymanager:DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN
On the server-end, I've now set in "/etc/sysconfig/displaymanager", ... # TCP port 6000 of Xserver. When set to "no" (default) Xserver is # started with "-nolisten tcp". Only set this to "yes" if you really # need to. Remote X service should run only on trusted networks and # you have to disable firewall for interfaces, where you want to # provide this service. Use ssh X11 port forwarding whenever possible. # -> DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes" ... On the desktop-end, reading @, http://developer.apple.com/opensource/tools/runningx11.html I'd already set (as above) the: defaults write com.apple.x11 nolisten_tcp -boolean false @ connect, now, I no longer see Xlib: No protocol specified but get, still, /usr/X11R6/bin/xauth: creating new authority file /var/root/.Xauth-Xephyr Using authority file /var/root/.Xauth-Xephyr Writing authority file /var/root/.Xauth-Xephyr Xephyr cannot open host display. Is DISPLAY set? twm: unable to open display ":0.0" Wil -- To unsubscribe, e-mail: opensuse-xorg+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-xorg+help@opensuse.org
participants (2)
-
Matthias Hopf
-
Wil Decius