Re: Viewing Client Output on the Server
Re: Viewing Client Output on the Server
- Subject: Re: Viewing Client Output on the Server
- From: "James K. Lowden" <email@hidden>
- Date: Mon, 14 Jan 2013 17:00:52 -0500
On Sun, 6 Jan 2013 21:24:54 -0500
Brandon Allbery <email@hidden> wrote:
> > On Sat, 05 Jan 2013 13:43:40 -0800
> > Sy Bensky <email@hidden> wrote:
> >
> > > The DISPLAY environment variable on the server looks something
> > > like this:
> > >
> > > DISPLAY=/tmp/launch-DsqMKv/org.macosforge.xquartz:0
> > >
> > > The DISPLAY environment variable on the client is:
> > >
> > > DISPLAY=:0.0
> >
> > I think you mean that the server and client have those values in
> > configuration files somewhere?
> >
>
> Yes; usually it's in ~/.profile or ~/.bash_profile (or sometimes
> ~/.bashrc although it doesn't belong there), because Linux users
> often want to force it to be set.
Understood, I've seen things like that. The OP's terminology "the
variable on the server" is technically ambiguous at best. There's a
big difference, as you know, between the value an environment variable
is *intended* to have via configuration and the value it actually has
in the process using it.
To debug DISPLAY problems, one must start by knowing what $DISPLAY is,
and then back into why. Thinking about "DISPLAY on the client" won't
help; environment variables aren't magically transported across
machines.
> And yes, this *is* something forcing $DISPLAY to a bad value and not
> some mis-set ssh option
That wasn't obvious from the OP's posting. "Cannot open display" can
mean there is no such display, or that the X server rejected the
connection.
>it would have the ssh forwarding socket in that case even if said
>socket is disabled due to ssh options.
ENOPARSE? I think you're saying that any ssh options will be
overridden by settings in shell-initialization scripts. That's true
only if the shell is invoked.
$ ssh cherry grep PAGER .profile
PAGER=more
export PAGER
$ ssh cherry env | grep -c PAGER
0
which reinforces my advice to the OP: know what DISPLAY should be, find
out what it is, then find out why. :-)
--jkl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden