From owner-freebsd-questions Thu Jan 20 21:59:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sasknow.com (h139-142-245-96.ss.fiberone.net [139.142.245.96]) by hub.freebsd.org (Postfix) with ESMTP id 462CD151B4 for ; Thu, 20 Jan 2000 21:59:10 -0800 (PST) (envelope-from freebsd@sasknow.com) Received: from localhost (freebsd@localhost) by sasknow.com (8.9.3/8.9.3) with ESMTP id XAA92328; Thu, 20 Jan 2000 23:59:38 -0600 (CST) (envelope-from freebsd@sasknow.com) Date: Thu, 20 Jan 2000 23:59:38 -0600 (CST) From: Ryan Thompson To: Gene Harris Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Connecting to a different Xclient In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 20 Jan 2000, Gene Harris wrote: > I am not sure of my terminology for X-Windows, so I'll ask > this question as best I can: > > I have a Linux RH 6.1 Workstation and a FreeBSD 3.4S Server > on my local network. Both are running XFree86 3.3.X almost > full time. > > Is it possible to open an Xterm window on my FreeBSD box > that connects to the Linux XFree server? The reason I am > asking this question is that I was blocking access to the > ports at 6000+ on my firewall and I wondered how an > application like xterm could connect to a remote machine > thru these ports. > Sure... I HIGHLY recommend you take advantage of SSH's ability to securely tunnel X connections, even if doing this over a lan. (It will also simplify and stabilize your firewall configuration, most likely). As close to "cook-book" as I get. The following should get you started. Please read relevant manual pages for more details. Install SSH on both machines (ensuring sshd is running on your Linux machine, to allow connections). It is not necessary to install an X server on your linux machine if all you want to do is allow client connections. Having XFree installed is enough. A functioning X server MUST be configured on your "client" FreeBSD machine. Assuming your linux machine is at 10.x.y.z, issue xhost 10.x.y.z on your FreeBSD machine to allow connections to be displayed. In X on the FreeBSD box, from a terminal, ssh to your linux box. (Note, if you absolutely must log in as root, you'll want to edit your /usr/local/etc/sshd_config to enable root logins). Check your DISPLAY variable in your remote ssh. Assuming your FreeBSD machine is at 10.x.y.p, use setenv DISPLAY 10.x.y.p:0. Note you should NOT use 127.0.0.1 or localhost here, as the remote machine will not resolve these to the FreeBSD box. Run your desired X applications, but do so over a fast connection, lest ye experience extraordinarily slow GUIs. > I have performed a half-baked scan of the documentation and > found a few references, but absolutely no details for > cook-booking the task. Any pointers would be greatly > appreciated. > > (I am also playing with tcp wrappers, so please respond thru > the mailing list as I have unknown servers blocked while I > build my hosts.allow file.) > > Many Thanks, > *==============================================* > *Gene Harris http://www.tetronsoftware.com* > *FreeBSD Novice * ^^^^^^^^^^^^^^ - I'd sooner hire a FreeBSD novice than an MCSE :-) > *All ORBS.org SMTP connections are denied! * > *==============================================* -- Ryan Thompson 50% Owner, Sysadmin SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message