Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2005 14:40:15 +0100
From:      Chris Hodgins <christopher.hodgins@gmail.com>
To:        Soheil Hassas Yeganeh <soheil.h.y@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Connecting to X Server on a FreeBSD Box
Message-ID:  <63c3899e05041706407c28c08b@mail.gmail.com>
In-Reply-To: <4c90b7720504162331625e8bc3@mail.gmail.com>
References:  <4c90b7720504162331625e8bc3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/17/05, Soheil Hassas Yeganeh <soheil.h.y@gmail.com> wrote:
> Hi,
>=20
> I start an X server on my FreeBSD box. I want to run some remote X
> applications from my fedora core 2.
> So, I have ssh to the fedora box and typed gedit.
> But it says :
>    (gedit:12438): Gtk-WARNING **: cannot open display:
>=20
> After I had export  DISPLAY=3Dfreebsdboxip:0.0
> it says again:
>    (gedit:12438): Gtk-WARNING **: cannot open display:
>=20
> But I can run freebsd application from my fedora core 2.
> What is the problem?

If you are using ssh anyway, you can tell ssh to do X11 forwarding.=20
Read the man page first as there is some slight security risks
involved depending on the way your machine is used.  Try this:

---------------
$ ssh -X username@hostname
Password: <enter password>
hostname$ xterm
-------------------

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63c3899e05041706407c28c08b>