Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 23:59:38 -0600 (CST)
From:      Ryan Thompson <freebsd@sasknow.com>
To:        Gene Harris <zeus@tetronsoftware.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Connecting to a different Xclient
Message-ID:  <Pine.BSF.4.10.10001202349450.92167-100000@sasknow.com>
In-Reply-To: <Pine.BSF.4.10.10001201156070.3062-100000@tetron02.tetronsoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com>	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10001202349450.92167-100000>