From owner-freebsd-questions@FreeBSD.ORG Mon Feb 6 04:31:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8699016A420 for ; Mon, 6 Feb 2006 04:31:41 +0000 (GMT) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCCCA43D45 for ; Mon, 6 Feb 2006 04:31:40 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 698CE131E6B; Mon, 6 Feb 2006 15:01:39 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 50E6885CE8; Mon, 6 Feb 2006 15:01:39 +1030 (CST) Date: Mon, 6 Feb 2006 15:01:39 +1030 From: Greg 'groggy' Lehey To: Michael Fleming , freebsd-questions@freebsd.org Message-ID: <20060206043139.GC855@wantadilla.lemis.com> References: <200602022149.17302.akbeech@alaskaparadise.com> <20060203085808.GA926@cryptomap.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z3PcgjD2qOzdkXVS" Content-Disposition: inline In-Reply-To: <20060203085808.GA926@cryptomap.co.uk> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: Subject: Re: remote x-window X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2006 04:31:41 -0000 --z3PcgjD2qOzdkXVS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 3 February 2006 at 8:58:08 +0000, Michael Fleming wrote: > On Thu, Feb 02, 2006 at 09:48:56PM -0900, Beech Rintoul wrote: >> I have sort of a newbie question. How do I connect to a remote >> machine with x-windows and get a desktop? Could someone point me in >> the right direction as I've never had a need to to do it before. I >> do have ssh to the machine. > > You'll have to export $DISPLAY=x.x.x.x:0.0 so that the display on the > remote machine is displayed on the local. Specifically, the DISPLAY environment variable states the name of the remote host, the server number and the screen number. Normally you only have one server, which is then 0. It's quite common to have more than one screen: I'm writing this on echunga.lemis.com:0.0, but there are two further screens called echunga.lemis.com:0.1 and echunga.lemis.com:0.2. See http://www.lemis.com/grog/hardware.html for an example. > You'll also have to forward X11 packets, check your ssh_conf so that > "forward X11 yes". This is for tunnelling over ssh. I wouldn't recommend that in a local context. > I use cygwin on my work laptop ( XP ) and a openvpn connection to my > BSD machine then fire up the display on the XP machine. It's possible that you'd need it here, but between BSD machines it's just overhead. One thing that you don't mention is whether the server will listen on TCP. This used to be the default, but it isn't any more. If you're using startx, you'll have to remove the 'nolisten-tcp' option. See http://www.lemis.com/grog/desktop.html. If you're using KDE or GNOME, you'll probably have to do something similar. I don't know the details, though. Greg -- See complete headers for address and phone numbers. --z3PcgjD2qOzdkXVS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFD5tErIubykFB6QiMRAlB0AJ9/1Y0UhoVkz6mwvJS0c6GrE58xuwCeLa+t p3yXDjSK9+FdA7KQOzgktX0= =EuOd -----END PGP SIGNATURE----- --z3PcgjD2qOzdkXVS--