Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 04:02:53 -0800
From:      "Aaron Burke" <aburke@nullplusone.com>
To:        "Greg 'groggy' Lehey" <grog@FreeBSD.ORG>, <FreeBSD-Questions@FreeBSD.ORG>
Subject:   RE: Remote X from another BSD Box
Message-ID:  <AMEMKJNMFLJCJDLFIEDBCELMCMAA.aburke@nullplusone.com>
In-Reply-To: <20030321005450.GA28061@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Wednesday, 19 March 2003 at 22:06:45 -0500, Brian McCann wrote:
> > Hi all.  I'd imagine this would be fairly simple since I got it to work
> > from Xmanager for Windows...but I'm having difficulties.  I have 2
> > boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
> > blown install of X with KDE and all kinds of stuff, the OpenBSD just has
> > a basic X installed with xdm.  I'd like to be able to use the OpenBSD
> > box as a display for the FreeBSD box.  I thought I'd just be able to ssh
> > into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
> > no dice.  Can someone help me out?
>
> The most obvious way of doing this is to start an xterm on the FreeBSD
> server:
>
>   xterm -display freebsd:0.0 &
There is also an other way via xdm. But for this to work you need to
uncomment the last line in /usr/X11R6/lib/X11/xdm/xdm-config.

You will also want to make sure your kernel contians the line
"options         XSERVER"   (no quotes).

>
> For this to work, you should:
>
> 1.  On the FreeBSD box, modify /usr/X11R6/bin/startx.  Change the line
>
>       listen_tcp="-nolisten tcp"
>
>     to
>
>       listen_tcp=""
Not sure that this is needed, I have never changed it. However
I share x-windows using XDM.

>
> 2.  Also on the FreeBSD box, run xhost:
>
>     xhost openbsd
Guessing that xhost is kind of like the configurations of an
X server.

>
> This applies to any other X application as well, of course.
If you enable xdm (X Display Manager) X-Windows will become
an X-Server for every computer on your network. Other people
know of some ways to limit this functionallity by modify
which hosts your machine will listen on.

And With XDM running on a server you connect to it via:
From a UNIX box: "X -query other.freebsd.box"
Or: "X -broadcast"  Asks for any display server that
is running a display manager. A list is generated on your client.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AMEMKJNMFLJCJDLFIEDBCELMCMAA.aburke>