From owner-freebsd-questions@FreeBSD.ORG Sun Apr 4 07:15:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64E3616A4CE for ; Sun, 4 Apr 2004 07:15:26 -0700 (PDT) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id AED2243D5F for ; Sun, 4 Apr 2004 07:15:25 -0700 (PDT) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 4.20) id 1BA8PD-0003rA-4A; Sun, 04 Apr 2004 15:15:23 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) i34EFMuf057847; Sun, 4 Apr 2004 15:15:22 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.10/8.12.6/Submit) id i34EFLd1057846; Sun, 4 Apr 2004 15:15:21 +0100 (BST) Date: Sun, 4 Apr 2004 15:15:21 +0100 From: Jonathon McKitrick To: "Cordula's Web" Message-ID: <20040404141521.GA57803@dogma.freebsd-uk.eu.org> References: <20040122145353.GB54084@dogma.freebsd-uk.eu.org> <20040122151217.9F77340873@fw.farid-hajji.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040122151217.9F77340873@fw.farid-hajji.net> User-Agent: Mutt/1.4i X-Spam-Score: -4.9 (----) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1BA8PD-0003rA-4A*kpk32o/JmDM* cc: freebsd-questions@freebsd.org Subject: Re: remote X display X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Apr 2004 14:15:26 -0000 On Thu, Jan 22, 2004 at 04:12:17PM +0100, Cordula's Web wrote: : > I have been looking all over for a concise howto for remote X on FreeBSD. I : > see some that involve changing config files in the xdm directory, others use : > xhost, and another uses xfig, which doesn't exist under FreeBSD AFAICT. : : Use ssh's -X flag: : : somehost> ssh -X user@remotemachine : remotemachine> echo $DISPLAY : somehost.example.com:10.0 : remotemachine> xclock & : : Don't forget to enable X forwarding in /etc/ssh/sshd_config: : X11Forwarding yes I had this working before, but I'm having problems. My main box is missing a monitor (on repair). Would that make a difference? Will X apps run on the main box without a monitor and forward X to the remote client? Right now, I get this: neptune:~> echo $DISPLAY neptune:~> : : > All I want to do is use a laptop in a local network to be an X client : > connected to a more powerful desktop machine. I'm not worried about : > security. : > : > Is xhosts and the DISPLAY variable all I need? Or do I need to go through : > all of the xdm configuration hoops? : : ssh X11 forwarding is much more secure than DISPLAY/xhosts/xdm etc..., : because: : 1. Your X11 server doesn't have to listen to port 6000 : (You don't have to add '-listen_tcp' to startx command) : 2. The communication between server and client is encrypted : : Of course, YMMV. : : > NOTE: Please CC me, as I am not currently subscribed. Thanks. : > : > jm : > -- : > My other computer is your windows box. : : -- : Cordula's Web. http://www.cordula.ws/ jm -- My other computer is your Windows box.