From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HqB6K-0006j7-7K for garchives@archives.gentoo.org; Mon, 21 May 2007 16:51:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4LGnwGE005602; Mon, 21 May 2007 16:49:58 GMT Received: from gabriel.sub.uni-goettingen.de (gabriel.sub.uni-goettingen.de [134.76.163.126]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4LGjSFt000611 for ; Mon, 21 May 2007 16:45:29 GMT Received: by gabriel.sub.uni-goettingen.de (Postfix, from userid 8) id 004A53246B4; Tue, 22 May 2007 20:16:35 +0200 (CEST) Received: from localhost (unknown [134.76.161.221]) by gabriel.sub.uni-goettingen.de (Postfix) with ESMTP id 194353246B3 for ; Tue, 22 May 2007 20:16:35 +0200 (CEST) Date: Mon, 21 May 2007 18:45:26 +0200 From: Hans-Werner Hilse To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] X11 from another machine Message-Id: <20070521184526.04311d8e.hilse@web.de> In-Reply-To: <4651C936.4030307@wht.com.au> References: <4651C936.4030307@wht.com.au> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; i586-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on gabriel.sub.uni-goettingen.de X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.64 X-Archives-Salt: 3926f3b2-6aad-49bd-88d4-bc734bb8140b X-Archives-Hash: 3a545857d68241dbfcd2367e4936ab59 Hi, On Tue, 22 May 2007 00:30:46 +0800 Andrew Lowe wrote: > I have the situation where I have to connect to a remote, > it's still in my office but X will be running across the network, Sun > server so that I can run a CAD system. In the past I've done this > from Windows using telnet and an X emulator, exporting the DISPLAY > variable etc, but now I want to be able to do this from the linux > box. I've tried what I've done under Windows in the past but the Sun > machine can't find my X server, even though I'm in a graphical X > window when I type the commands to initiate the remote X session. > > My question is, is there anything "special" that I have to do > so that the linux X server is listening to "the outside world" so > that the Sun box can create the connection and get X displaying on my > linux box? Yes. Usually, the X server is supposed to only listen on localhost (127.0.0.1), if at all on TCP ports, that is (it might be listening only on a UNIX socket). That's only one part, though. The other is X Authorization. It depends a bit on the way you use to start X, but it should be active. You probably need to transport your auth cookie to the target. See XAUTH(1) for all the details. However, the usual way to use remote X-based programs is just to let SSH do that. It can provide a tunnel for X. This is especially easy if the remote SSH server daemon has set its "X11Forwarding" configuration setting set to "yes" (otherwise, it is really a bit harder and not suggested). Then, you just would connect using "ssh -X user@host" and that's it, SSH will care for creating a socket on the remote machine and set the DISPLAY variable accordingly. -hwh -- gentoo-user@gentoo.org mailing list