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: Sun, 06 Jan 2013 18:06:20 -0500
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 don't quite understand what you mean. I think you mean that the
server and client have those values in configuration files somewhere?
The only meaningful DISPLAY value belongs not to the client or server,
but to the *process*. The important question is, what does
$ echo $DISPLAY
show before you try to launch your X client application? You want to
arrange things such that the value of DISPLAY is correct, so that
launching an X client causes it to appear where you want it to.
What it *should* show is described under "DISPLAY NAMES"
in the X manual (try "man X"). Using ssh X forwarding, it should show
something like:
$ echo $DISPLAY
localhost:12.0
The hostname portion will be localhost, and the displaynumber will, as
"man ssh" says, "is an integer >= 1". Getting that to happen involves
configuring ssh & sshd.
> I have connected the server to the client using: ssh -X user@client
...
> I get the error message:
> Error: Can't open display ...
You need -Y, too, and maybe something else depending on which X
and OS X you're using. On the machine running the X server (my Mac) I
have:
$ grep yes ~/.ssh/config | grep -v ^\#
ForwardX11 yes
ForwardX11Trusted yes
Keep in mind that the remote sshd must also permit X forwarding. On
the remote I have:
$ grep X /etc/ssh/sshd_config | grep -v \#
X11Forwarding yes
HTH.
--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