Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Avoid strange women and temporary variables.


devel / comp.unix.shell / Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

SubjectAuthor
* Failed to run Emacs in X windows mode on remote host over ssh withhongy...@gmail.com
+* Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
|`* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| +* Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |`* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| | +- Re: Failed to run Emacs in X windows mode on remote host over sshDavid W. Hodgins
| | `* Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |  +* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
| |  |`* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |  | +* Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |  | |+* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
| |  | ||+* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |  | |||`- Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaDan Espen
| |  | ||`* Re: Failed to run Emacs in X windows mode on remote host over sshJanis Papanagnou
| |  | || `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
| |  | ||  `- Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |  | |`* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |  | | `* Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |  | |  `- Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |  | `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaSpiros Bousbouras
| |  |  `- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |  `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |   +* Re: Failed to run Emacs in X windows mode on remote host over sshGrant Taylor
| |   |`- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |   +* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
| |   |`- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |   `* Re: Failed to run Emacs in X windows mode on remote host over sshWilliam Unruh
| |    +- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
| |    `- Re: Failed to run Emacs in X windows mode on remote host over sshJanis Papanagnou
| `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
|  `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   +* Re: Failed to run Emacs in X windows mode on remote host over sshDavid W. Hodgins
|   |`* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   | `* Re: Failed to run Emacs in X windows mode on remote host over sshDavid W. Hodgins
|   |  `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   |   `* Re: Failed to run Emacs in X windows mode on remote host over sshDavid W. Hodgins
|   |    `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   |     `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   |      +- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   |      `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
|   |       `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   |        +- Re: Failed to run Emacs in X windows mode on remote host over sshJanis Papanagnou
|   |        `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
|   |         +* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwahongy...@gmail.com
|   |         |`* Re: Failed to run Emacs in X windows mode on remote host over sshWilliam Unruh
|   |         | `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwahongy...@gmail.com
|   |         |  `* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
|   |         |   `- Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwahongy...@gmail.com
|   |         `* Re: Failed to run Emacs in X windows mode on remote host over sshPeter van Hooft
|   |          `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
|   |           `- Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaSpiros Bousbouras
|   `* Re: Failed to run Emacs in X windows mode on remote host over sshDavid W. Hodgins
|    `- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
+* Re: Failed to run Emacs in X windows mode on remote host over sshDavid W. Hodgins
|`- Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
`* Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson
 `* Re: Failed to run Emacs in X windows mode on remote host over sshhongy...@gmail.com
  `- Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwaKeith Thompson

Pages:123
Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4123&group=comp.unix.shell#4123

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:73c9:: with SMTP id v9mr19278944qtp.214.1627392649213;
Tue, 27 Jul 2021 06:30:49 -0700 (PDT)
X-Received: by 2002:a05:620a:1a0d:: with SMTP id bk13mr22222520qkb.30.1627392649005;
Tue, 27 Jul 2021 06:30:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 06:30:48 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=103.142.140.223; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.142.140.223
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
Subject: Failed to run Emacs in X windows mode on remote host over ssh with
X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Tue, 27 Jul 2021 13:30:49 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Tue, 27 Jul 2021 13:30 UTC

On LAN, I'm trying to run Emacs on another machine, as shown below:

$ ssh -X werner@192.168.10.100
$ emacs

At this moment, I noticed the following information:

Display localhost:10.0 unavailable, simulating -nw

As a result, Emacs will run in console mode and can't be able to
communicate with X.

Any hints for solving this problem?

Regards,
HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4124&group=comp.unix.shell#4124

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 12:33:59 -0600
Organization: TNet Consulting
Message-ID: <sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Jul 2021 18:35:43 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="10605"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
Content-Language: en-US
 by: Grant Taylor - Tue, 27 Jul 2021 18:33 UTC

On 7/27/21 7:30 AM, hongy...@gmail.com wrote:
> Any hints for solving this problem?

What is the DISPLAY environment variable set to?

Do any X11 programs work through SSH?

--
Grant. . . .
unix || die

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<op.067eoua6a3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4125&group=comp.unix.shell#4125

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 15:20:44 -0400
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <op.067eoua6a3w0dxdave@hodgins.homeip.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="029efd3582d221b4617dcc25744d6cad";
logging-data="28262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QL8wQXD00haXYkY5BXxRZCSMp1K0JqWU="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:Lb8YT0BpqKn7nGnr7BKp1MUT64I=
 by: David W. Hodgins - Tue, 27 Jul 2021 19:20 UTC

On Tue, 27 Jul 2021 09:30:48 -0400, hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:

> On LAN, I'm trying to run Emacs on another machine, as shown below:
>
> $ ssh -X werner@192.168.10.100
> $ emacs
>
> At this moment, I noticed the following information:
>
> Display localhost:10.0 unavailable, simulating -nw
>
> As a result, Emacs will run in console mode and can't be able to
> communicate with X.
>
> Any hints for solving this problem?

On the system you're connected to, in /etc/ssh/sshd_config is the config set to ...
X11Forwarding yes

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<87a6m7il67.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4126&group=comp.unix.shell#4126

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 12:58:08 -0700
Organization: None to speak of
Lines: 32
Message-ID: <87a6m7il67.fsf@nosuchdomain.example.com>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="a7fd05aa44f85d437cfb30de78c75b84";
logging-data="9455"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B7wupTrwefubOQcHmsiwL"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:rLTVrZukNVf0jLY2Ty5xGjnoYaU=
sha1:PD7GQKyM43YPqWH8kQ4YZbxX9YU=
 by: Keith Thompson - Tue, 27 Jul 2021 19:58 UTC

"hongy...@gmail.com" <hongyi.zhao@gmail.com> writes:
> On LAN, I'm trying to run Emacs on another machine, as shown below:
>
> $ ssh -X werner@192.168.10.100
> $ emacs
>
> At this moment, I noticed the following information:
>
> Display localhost:10.0 unavailable, simulating -nw
>
> As a result, Emacs will run in console mode and can't be able to
> communicate with X.
>
> Any hints for solving this problem?

Apparently $DISPLAY is being set to "localhost:10.0", which is typical.

This is unlikely to be specific to emacs. I presume other X client
programs fail similarly, but to verify try running "xlogo" or "xclock".

Try running "xdpyinfo". (Warning: It produces several thousand lines of
output on my system).

It's possible that "ssh -Y" would avoid the problem. It's worth trying,
but be sure to read the documentation, since it bypasses some security
checks. (It might be acceptable if the LAN is entirely under your
control, though others might disagree with that.)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4127&group=comp.unix.shell#4127

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:584e:: with SMTP id h14mr21889606qth.339.1627435942648;
Tue, 27 Jul 2021 18:32:22 -0700 (PDT)
X-Received: by 2002:ac8:7c54:: with SMTP id o20mr12994933qtv.142.1627435942480;
Tue, 27 Jul 2021 18:32:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 18:32:22 -0700 (PDT)
In-Reply-To: <sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.187; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.187
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com> <sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 01:32:22 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 01:32 UTC

On Wednesday, July 28, 2021 at 2:33:54 AM UTC+8, Grant Taylor wrote:
> On 7/27/21 7:30 AM, hongy...@gmail.com wrote:
> > Any hints for solving this problem?
> What is the DISPLAY environment variable set to?

On server side:

werner@X10DAi:~$ echo $DISPLAY
:1

On client side, it's empty:

$ echo $DISPLAY

$

> Do any X11 programs work through SSH?

I run ssh in verbose mode (-v):

$ ssh -vX werner@192.168.10.100

Then xterm also fails to open display, and it says that X11 connection
rejected because of wrong authentication. I've enabled the
following options on server and client sides:

On server side:

$ grep ^X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes

On client side:

$ grep '^[ ]*ForwardX11' /etc/ssh/ssh_config
ForwardX11 yes

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<1cf9e7d4-4d50-44b8-8e67-339578a98d73n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4128&group=comp.unix.shell#4128

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ae9:ed03:: with SMTP id c3mr24589608qkg.418.1627436033462;
Tue, 27 Jul 2021 18:33:53 -0700 (PDT)
X-Received: by 2002:ac8:7f48:: with SMTP id g8mr22064300qtk.79.1627436033307;
Tue, 27 Jul 2021 18:33:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 18:33:53 -0700 (PDT)
In-Reply-To: <op.067eoua6a3w0dxdave@hodgins.homeip.net>
Injection-Info: google-groups.googlegroups.com; posting-host=211.23.211.37; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 211.23.211.37
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com> <op.067eoua6a3w0dxdave@hodgins.homeip.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1cf9e7d4-4d50-44b8-8e67-339578a98d73n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 01:33:53 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 01:33 UTC

On Wednesday, July 28, 2021 at 3:34:45 AM UTC+8, David W. Hodgins wrote:
> On Tue, 27 Jul 2021 09:30:48 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
>
> > On LAN, I'm trying to run Emacs on another machine, as shown below:
> >
> > $ ssh -X wer...@192.168.10.100
> > $ emacs
> >
> > At this moment, I noticed the following information:
> >
> > Display localhost:10.0 unavailable, simulating -nw
> >
> > As a result, Emacs will run in console mode and can't be able to
> > communicate with X.
> >
> > Any hints for solving this problem?
> On the system you're connected to, in /etc/ssh/sshd_config is the config set to ...
> X11Forwarding yes

Yes:

$ grep ^X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<sdqcmq$n8d$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4129&group=comp.unix.shell#4129

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 19:41:06 -0600
Organization: TNet Consulting
Message-ID: <sdqcmq$n8d$1@tncsrv09.home.tnetconsulting.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Jul 2021 01:42:50 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="23821"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
Content-Language: en-US
 by: Grant Taylor - Wed, 28 Jul 2021 01:41 UTC

On 7/27/21 7:32 PM, hongy...@gmail.com wrote:
> On server side:
>
> werner@X10DAi:~$ echo $DISPLAY
> :1

Did you run that from your SSH connection? Or directly on the server?

:1 /may/ be okay for a remote connection. But it may also be a
reference to a local / physical display on the server.

> On client side, it's empty:
>
> $ echo $DISPLAY

I would have expected the client to have a DISPLAY variable set.
ESPECIALLY if running it form in a GUI terminal emulator.

> I run ssh in verbose mode (-v):

Verbose mode shouldn't change the behavior of X11 forwarding. But it
will give more information.

> Then xterm also fails to open display, and it says that X11 connection
> rejected because of wrong authentication.

Okay. That's sort of what I was expecting.

You can use the 'xhost' command to allow other clients to connect
bypassing the ~/.Xauthority (?) cooky. E.g.

xhost +192.0.2.1

That should allow 192.0.2.1 to connect to your local X11 display.

N.B. You can remove the IP and just use "+" to allow all IPs to connect
too.

Use the following command to remove permission:

xhost -

N.B. My understanding is that the xhost permissions are non-persistent.

> I've enabled the following options on server and client sides:

That means that OpenSSH is configured to allow X11 forwarding.

As Keith mentioned, the "-Y" option may help.

--
Grant. . . .
unix || die

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<e630a0cd-4d45-48af-82f2-85e835ff040an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4130&group=comp.unix.shell#4130

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:620a:1ef:: with SMTP id x15mr25662541qkn.369.1627436662566;
Tue, 27 Jul 2021 18:44:22 -0700 (PDT)
X-Received: by 2002:ad4:4442:: with SMTP id l2mr17689838qvt.2.1627436662422;
Tue, 27 Jul 2021 18:44:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 18:44:22 -0700 (PDT)
In-Reply-To: <87a6m7il67.fsf@nosuchdomain.example.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.176; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.176
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com> <87a6m7il67.fsf@nosuchdomain.example.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e630a0cd-4d45-48af-82f2-85e835ff040an@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 01:44:22 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 01:44 UTC

On Wednesday, July 28, 2021 at 3:58:13 AM UTC+8, Keith Thompson wrote:
> "hongy...@gmail.com" <hongy...@gmail.com> writes:
> > On LAN, I'm trying to run Emacs on another machine, as shown below:
> >
> > $ ssh -X wer...@192.168.10.100
> > $ emacs
> >
> > At this moment, I noticed the following information:
> >
> > Display localhost:10.0 unavailable, simulating -nw
> >
> > As a result, Emacs will run in console mode and can't be able to
> > communicate with X.
> >
> > Any hints for solving this problem?
> Apparently $DISPLAY is being set to "localhost:10.0", which is typical.
>
> This is unlikely to be specific to emacs. I presume other X client
> programs fail similarly, but to verify try running "xlogo" or "xclock".

Both "xlogo" and "xclock" run correctly.
> Try running "xdpyinfo". (Warning: It produces several thousand lines of
> output on my system).

werner@X10DAi:~$ xdpyinfo
name of display: localhost:10.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 12008000
X.Org version: 1.20.8
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x3805921, revert to Parent
number of extensions: 30
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
NV-CONTROL
NV-GLX
Present
RANDR
RECORD
RENDER
SECURITY
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1920x1080 pixels (602x343 millimeters)
resolution: 81x80 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x1dd
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store WHEN MAPPED, save-unders NO
largest cursor: 256x256
current input event mask: 0xda0033
KeyPressMask KeyReleaseMask EnterWindowMask
LeaveWindowMask StructureNotifyMask SubstructureNotifyMask
SubstructureRedirectMask PropertyChangeMask ColormapChangeMask
number of visuals: 132
default visual id: 0x21
visual:
visual id: 0x21
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x22
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x24
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x25
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x26
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x27
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x28
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x29
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x2a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x2b
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x2c
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x2d
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x2e
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x2f
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x30
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x31
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x32
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x33
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x34
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x35
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x36
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x37
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x38
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x39
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x3a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x3b
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x3c
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x3d
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x3e
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x3f
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x40
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x41
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x42
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x43
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x44
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x45
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x46
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x47
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x48
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x49
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x4a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x4b
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x4c
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x4d
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x4e
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x4f
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x50
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x51
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x52
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x53
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x54
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x55
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x56
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x57
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x58
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x59
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x5a
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x5b
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x5c
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x5d
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x5e
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x5f
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x60
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x61
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x62
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x63
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x64
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x65
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x66
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x67
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x68
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x69
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x6a
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x6b
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x6c
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x6d
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x6e
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x6f
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x70
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x71
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x72
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x73
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x74
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x75
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x76
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x77
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x78
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x79
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 11 bits
visual:
visual id: 0x23
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x7a
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x7b
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x7c
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x7d
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x7e
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x7f
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x80
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x81
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x82
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x83
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x84
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x85
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x86
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x87
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x88
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x89
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x8a
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x8b
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x8c
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x8d
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x8e
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x8f
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x90
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x91
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x92
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x93
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x94
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x95
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x96
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x97
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x98
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x99
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9a
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9b
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9c
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9d
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9e
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9f
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa0
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa1
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa2
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa3
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa4
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits


Click here to read the complete article
Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<87o8angpmu.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4131&group=comp.unix.shell#4131

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 19:04:41 -0700
Organization: None to speak of
Lines: 37
Message-ID: <87o8angpmu.fsf@nosuchdomain.example.com>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="092bc793105a53572bfeac6d5da9e91f";
logging-data="10943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dimA7ljcDG9YTbaNuI6Ti"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:tYHLiTq8Y7q9q1hRhQhtPtE7jvE=
sha1:rSGHC3iJC94YPgK9V8xXPO1aK+k=
 by: Keith Thompson - Wed, 28 Jul 2021 02:04 UTC

"hongy...@gmail.com" <hongyi.zhao@gmail.com> writes:
> On Wednesday, July 28, 2021 at 2:33:54 AM UTC+8, Grant Taylor wrote:
>> On 7/27/21 7:30 AM, hongy...@gmail.com wrote:
>> > Any hints for solving this problem?
>> What is the DISPLAY environment variable set to?
>
> On server side:
>
> werner@X10DAi:~$ echo $DISPLAY
> :1
>
> On client side, it's empty:
>
> $ echo $DISPLAY
>
> $

That seems inconsistent with your original post. You said you got this
message from emacs:

Display localhost:10.0 unavailable, simulating -nw

which strongly implies that $DISPLAY was set to "localhost:10.0", at
least in your emacs process.

Try `echo $DISPLAY` and `emacs` from the same shell process. If you get
an empty string from the first (it's more likely that $DISPLAY is not
set than that it's set to the empty string) and "Display localhost:10.0
unavailable, simulating -nw" from emacs, then something very strange is
going on.

What does `env | grep '^DISPLAY='` print?

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<87k0lbgpjm.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4132&group=comp.unix.shell#4132

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 19:06:37 -0700
Organization: None to speak of
Lines: 53
Message-ID: <87k0lbgpjm.fsf@nosuchdomain.example.com>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<87a6m7il67.fsf@nosuchdomain.example.com>
<e630a0cd-4d45-48af-82f2-85e835ff040an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="092bc793105a53572bfeac6d5da9e91f";
logging-data="10943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xv7sztewvfTjpKy0L8XDV"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:h0OtYIxzq4jqLoMLLDL5s9aOyHM=
sha1:u33LmS006kFo6INruzKw8CcJvQg=
 by: Keith Thompson - Wed, 28 Jul 2021 02:06 UTC

"hongy...@gmail.com" <hongyi.zhao@gmail.com> writes:
> On Wednesday, July 28, 2021 at 3:58:13 AM UTC+8, Keith Thompson wrote:
>> "hongy...@gmail.com" <hongy...@gmail.com> writes:
>> > On LAN, I'm trying to run Emacs on another machine, as shown below:
>> >
>> > $ ssh -X wer...@192.168.10.100
>> > $ emacs
>> >
>> > At this moment, I noticed the following information:
>> >
>> > Display localhost:10.0 unavailable, simulating -nw
>> >
>> > As a result, Emacs will run in console mode and can't be able to
>> > communicate with X.
>> >
>> > Any hints for solving this problem?
>> Apparently $DISPLAY is being set to "localhost:10.0", which is typical.
>>
>> This is unlikely to be specific to emacs. I presume other X client
>> programs fail similarly, but to verify try running "xlogo" or "xclock".
>
> Both "xlogo" and "xclock" run correctly.
>
>> Try running "xdpyinfo". (Warning: It produces several thousand lines of
>> output on my system).
>
> werner@X10DAi:~$ xdpyinfo
> name of display: localhost:10.0
> version number: 11.0
> vendor string: The X.Org Foundation
[993 lines deleted]

I guess I should have said that we don't need to see all the output.
It was basically a test to see whether the display is there.

>> It's possible that "ssh -Y" would avoid the problem. It's worth trying,
>> but be sure to read the documentation, since it bypasses some security
>> checks. (It might be acceptable if the LAN is entirely under your
>> control, though others might disagree with that.)
>
> I tried with:
>
> $ ssh -Y werner@192.168.10.100
>
> But still meet the following msg:
>
> werner@X10DAi:~$ emacs
> Display localhost:10.0 unavailable, simulating -nw

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<46659bf7-0cdc-4e0d-8879-5892653be3efn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4133&group=comp.unix.shell#4133

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:27e7:: with SMTP id jt7mr26121291qvb.28.1627438036530;
Tue, 27 Jul 2021 19:07:16 -0700 (PDT)
X-Received: by 2002:a37:62d2:: with SMTP id w201mr12874952qkb.318.1627438036383;
Tue, 27 Jul 2021 19:07:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 19:07:16 -0700 (PDT)
In-Reply-To: <sdqcmq$n8d$1@tncsrv09.home.tnetconsulting.net>
Injection-Info: google-groups.googlegroups.com; posting-host=8.210.32.166; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 8.210.32.166
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<sdqcmq$n8d$1@tncsrv09.home.tnetconsulting.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <46659bf7-0cdc-4e0d-8879-5892653be3efn@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 02:07:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 02:07 UTC

On Wednesday, July 28, 2021 at 9:41:01 AM UTC+8, Grant Taylor wrote:
> On 7/27/21 7:32 PM, hongy...@gmail.com wrote:
> > On server side:
> >
> > werner@X10DAi:~$ echo $DISPLAY
> > :1
> Did you run that from your SSH connection? Or directly on the server?

Directly on the server:
werner@X10DAi:~$ echo $DISPLAY
:1

From the SSH connection

werner@X10DAi:~$ echo $DISPLAY
localhost:10.0
> :1 /may/ be okay for a remote connection. But it may also be a
> reference to a local / physical display on the server.
> > On client side, it's empty:
> >
> > $ echo $DISPLAY
> I would have expected the client to have a DISPLAY variable set.
> ESPECIALLY if running it form in a GUI terminal emulator.
> > I run ssh in verbose mode (-v):
> Verbose mode shouldn't change the behavior of X11 forwarding. But it
> will give more information.
> > Then xterm also fails to open display, and it says that X11 connection
> > rejected because of wrong authentication.
> Okay. That's sort of what I was expecting.
>
> You can use the 'xhost' command to allow other clients to connect
> bypassing the ~/.Xauthority (?) cooky. E.g.
>
> xhost +192.0.2.1
>
> That should allow 192.0.2.1 to connect to your local X11 display.
>
> N.B. You can remove the IP and just use "+" to allow all IPs to connect
> too.

Thanks. I've run the `xhost +' on server side now:
werner@X10DAi:~$ xhost +
access control disabled, clients can connect from any host

> Use the following command to remove permission:
>
> xhost -
>
> N.B. My understanding is that the xhost permissions are non-persistent.
> > I've enabled the following options on server and client sides:
> That means that OpenSSH is configured to allow X11 forwarding.
>
> As Keith mentioned, the "-Y" option may help.

Now, I connect to the server with the following setting:

$ ssh -Y werner@192.168.10.100
The testing results:

Xterm works, but Emacs still report the same problem.

HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4134&group=comp.unix.shell#4134

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:44a8:: with SMTP id a8mr22064729qto.238.1627438736860;
Tue, 27 Jul 2021 19:18:56 -0700 (PDT)
X-Received: by 2002:a05:620a:22a5:: with SMTP id p5mr637116qkh.251.1627438736725;
Tue, 27 Jul 2021 19:18:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 19:18:56 -0700 (PDT)
In-Reply-To: <87o8angpmu.fsf@nosuchdomain.example.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.109; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.109
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 02:18:56 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 02:18 UTC

On Wednesday, July 28, 2021 at 10:04:46 AM UTC+8, Keith Thompson wrote:
> "hongy...@gmail.com" <hongy...@gmail.com> writes:
> > On Wednesday, July 28, 2021 at 2:33:54 AM UTC+8, Grant Taylor wrote:
> >> On 7/27/21 7:30 AM, hongy...@gmail.com wrote:
> >> > Any hints for solving this problem?
> >> What is the DISPLAY environment variable set to?
> >
> > On server side:
> >
> > werner@X10DAi:~$ echo $DISPLAY
> > :1
> >
> > On client side, it's empty:
> >
> > $ echo $DISPLAY
> >
> > $
> That seems inconsistent with your original post. You said you got this
> message from emacs:
> Display localhost:10.0 unavailable, simulating -nw
> which strongly implies that $DISPLAY was set to "localhost:10.0", at
> least in your emacs process.
>
> Try `echo $DISPLAY` and `emacs` from the same shell process. If you get
> an empty string from the first (it's more likely that $DISPLAY is not
> set than that it's set to the empty string) and "Display localhost:10.0
> unavailable, simulating -nw" from emacs, then something very strange is
> going on.
>
> What does `env | grep '^DISPLAY='` print?

Sorry for my unclear description to some extent, especially on the network topology used by the testing in question. I restate the network topology below:

The ssh server: 192.168.10.100
The ssh client: 192.168.10.101

But the ssh client in my situation is a virtual machine running within Proxmox VE, so I must ssh into it first for doing the testing discussed here.

If I ssh to the client like the following:

$ ssh werner@192.168.10.101
$ env | grep '^DISPLAY='
$

If with the following option:

$ ssh -Y werner@192.168.10.101
$ env | grep '^DISPLAY='
DISPLAY=localhost:10.0

HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<op.06717tfya3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4135&group=comp.unix.shell#4135

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 23:48:55 -0400
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <op.06717tfya3w0dxdave@hodgins.homeip.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com>
<a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f9c0ec45d1051ad753b84e7834bd50db";
logging-data="30142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/f4JwaCTnsClbVFSSZmcHzKrx1mWnk0ug="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:Wk2oeFZ14Tt4U/dK0ri0hB6pkoQ=
 by: David W. Hodgins - Wed, 28 Jul 2021 03:48 UTC

On Tue, 27 Jul 2021 22:18:56 -0400, hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:

> On Wednesday, July 28, 2021 at 10:04:46 AM UTC+8, Keith Thompson wrote:
>> "hongy...@gmail.com" <hongy...@gmail.com> writes:
>> > On Wednesday, July 28, 2021 at 2:33:54 AM UTC+8, Grant Taylor wrote:
>> >> On 7/27/21 7:30 AM, hongy...@gmail.com wrote:
>> >> > Any hints for solving this problem?
>> >> What is the DISPLAY environment variable set to?
>> >
>> > On server side:
>> >
>> > werner@X10DAi:~$ echo $DISPLAY
>> > :1
>> >
>> > On client side, it's empty:
>> >
>> > $ echo $DISPLAY
>> >
>> > $
>> That seems inconsistent with your original post. You said you got this
>> message from emacs:
>> Display localhost:10.0 unavailable, simulating -nw
>> which strongly implies that $DISPLAY was set to "localhost:10.0", at
>> least in your emacs process.
>>
>> Try `echo $DISPLAY` and `emacs` from the same shell process. If you get
>> an empty string from the first (it's more likely that $DISPLAY is not
>> set than that it's set to the empty string) and "Display localhost:10.0
>> unavailable, simulating -nw" from emacs, then something very strange is
>> going on.
>>
>> What does `env | grep '^DISPLAY='` print?
>
> Sorry for my unclear description to some extent, especially on the network topology used by the testing in question. I restate the network topology below:
>
> The ssh server: 192.168.10.100
> The ssh client: 192.168.10.101
>
> But the ssh client in my situation is a virtual machine running within Proxmox VE, so I must ssh into it first for doing the testing discussed here.
>
> If I ssh to the client like the following:
>
> $ ssh werner@192.168.10.101
> $ env | grep '^DISPLAY='
> $
>
> If with the following option:
>
> $ ssh -Y werner@192.168.10.101
> $ env | grep '^DISPLAY='
> DISPLAY=localhost:10.0

Got emacs to work in gui mode under ssh.

Try running "ssh -X -Y werner@192.168.10.101"
then running emacs.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<op.0671o312a3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4136&group=comp.unix.shell#4136

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 23:37:41 -0400
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <op.0671o312a3w0dxdave@hodgins.homeip.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com>
<a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f9c0ec45d1051ad753b84e7834bd50db";
logging-data="30142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+C0+IGo0O/gquK8padXgs53Sc/L+g84KA="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:YOD3M0eM8DCAQstcuVXpqiQvf9s=
 by: David W. Hodgins - Wed, 28 Jul 2021 03:37 UTC

On Tue, 27 Jul 2021 22:18:56 -0400, hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:
> Sorry for my unclear description to some extent, especially on the network topology used by the testing in question. I restate the network topology below:
>
> The ssh server: 192.168.10.100
> The ssh client: 192.168.10.101
>
> But the ssh client in my situation is a virtual machine running within Proxmox VE, so I must ssh into it first for doing the testing discussed here.
>
> If I ssh to the client like the following:
>
> $ ssh werner@192.168.10.101
> $ env | grep '^DISPLAY='
> $
>
> If with the following option:
>
> $ ssh -Y werner@192.168.10.101
> $ env | grep '^DISPLAY='
> DISPLAY=localhost:10.0

One point that is often misunderstood. When discussing X, the server is the one
that's physically connected to the monitor. The gui programs you run on the
system you're connecting to via ssh become clients of the X server running on
the machine you're connecting from.

I partially figure out how to get it working. After connecting via ssh to the
remote system, run "DISPLAY= emacs". It works, but runs emacs in text mode
instead of gui mode.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<op.0670hsfma3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4137&group=comp.unix.shell#4137

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Tue, 27 Jul 2021 23:11:42 -0400
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <op.0670hsfma3w0dxdave@hodgins.homeip.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<sdqcmq$n8d$1@tncsrv09.home.tnetconsulting.net>
<46659bf7-0cdc-4e0d-8879-5892653be3efn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f9c0ec45d1051ad753b84e7834bd50db";
logging-data="30142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pwJa+rbDH/QTM3I7RxcY+CiWCrDaaCe0="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:rwbKvrzm7QNwBGUpdUKP+iIdacM=
 by: David W. Hodgins - Wed, 28 Jul 2021 03:11 UTC

On Tue, 27 Jul 2021 22:07:16 -0400, hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:
> Xterm works, but Emacs still report the same problem.

In that case stop looking at X or ssh settings. It's a problem with emacs, not
the ssh or X setup.

The man page for emacs has a section for running it under X. It's not a program
I use or am familiar with.

If no one else here has an idea, please open a bug report for emacs. Perhaps
it's package maintainer will have an idea.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4138&group=comp.unix.shell#4138

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:622a:1a11:: with SMTP id f17mr22357772qtb.308.1627445574696;
Tue, 27 Jul 2021 21:12:54 -0700 (PDT)
X-Received: by 2002:ac8:6654:: with SMTP id j20mr22014397qtp.284.1627445574504;
Tue, 27 Jul 2021 21:12:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 21:12:54 -0700 (PDT)
In-Reply-To: <op.06717tfya3w0dxdave@hodgins.homeip.net>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.101; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.101
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 04:12:54 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 04:12 UTC

On Wednesday, July 28, 2021 at 11:49:11 AM UTC+8, David W. Hodgins wrote:
> On Tue, 27 Jul 2021 22:18:56 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
>
> > On Wednesday, July 28, 2021 at 10:04:46 AM UTC+8, Keith Thompson wrote:
> >> "hongy...@gmail.com" <hongy...@gmail.com> writes:
> >> > On Wednesday, July 28, 2021 at 2:33:54 AM UTC+8, Grant Taylor wrote:
> >> >> On 7/27/21 7:30 AM, hongy...@gmail.com wrote:
> >> >> > Any hints for solving this problem?
> >> >> What is the DISPLAY environment variable set to?
> >> >
> >> > On server side:
> >> >
> >> > werner@X10DAi:~$ echo $DISPLAY
> >> > :1
> >> >
> >> > On client side, it's empty:
> >> >
> >> > $ echo $DISPLAY
> >> >
> >> > $
> >> That seems inconsistent with your original post. You said you got this
> >> message from emacs:
> >> Display localhost:10.0 unavailable, simulating -nw
> >> which strongly implies that $DISPLAY was set to "localhost:10.0", at
> >> least in your emacs process.
> >>
> >> Try `echo $DISPLAY` and `emacs` from the same shell process. If you get
> >> an empty string from the first (it's more likely that $DISPLAY is not
> >> set than that it's set to the empty string) and "Display localhost:10.0
> >> unavailable, simulating -nw" from emacs, then something very strange is
> >> going on.
> >>
> >> What does `env | grep '^DISPLAY='` print?
> >
> > Sorry for my unclear description to some extent, especially on the network topology used by the testing in question. I restate the network topology below:
> >
> > The ssh server: 192.168.10.100
> > The ssh client: 192.168.10.101
> >
> > But the ssh client in my situation is a virtual machine running within Proxmox VE, so I must ssh into it first for doing the testing discussed here.
> >
> > If I ssh to the client like the following:
> >
> > $ ssh wer...@192.168.10.101
> > $ env | grep '^DISPLAY='
> > $
> >
> > If with the following option:
> >
> > $ ssh -Y wer...@192.168.10.101
> > $ env | grep '^DISPLAY='
> > DISPLAY=localhost:10.0
> Got emacs to work in gui mode under ssh.
>
> Try running "ssh -X -Y wer...@192.168.10.101"
> then running emacs.

I tried the above from the server side itself:

$ ssh -XY werner@192.168.10.100

Then run emacs, but encounter the same message:

$ emacs
Display localhost:10.0 unavailable, simulating -nw

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<19fb2909-e99c-4b6d-a952-b938ff585bbfn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4139&group=comp.unix.shell#4139

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:aed:2149:: with SMTP id 67mr21928909qtc.60.1627446748592;
Tue, 27 Jul 2021 21:32:28 -0700 (PDT)
X-Received: by 2002:a05:620a:22a5:: with SMTP id p5mr923699qkh.251.1627446748456;
Tue, 27 Jul 2021 21:32:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 21:32:28 -0700 (PDT)
In-Reply-To: <op.0671o312a3w0dxdave@hodgins.homeip.net>
Injection-Info: google-groups.googlegroups.com; posting-host=47.75.32.198; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 47.75.32.198
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.0671o312a3w0dxdave@hodgins.homeip.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19fb2909-e99c-4b6d-a952-b938ff585bbfn@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 04:32:28 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 04:32 UTC

On Wednesday, July 28, 2021 at 11:49:12 AM UTC+8, David W. Hodgins wrote:
> On Tue, 27 Jul 2021 22:18:56 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
> > Sorry for my unclear description to some extent, especially on the network topology used by the testing in question. I restate the network topology below:
> >
> > The ssh server: 192.168.10.100
> > The ssh client: 192.168.10.101
> >
> > But the ssh client in my situation is a virtual machine running within Proxmox VE, so I must ssh into it first for doing the testing discussed here.
> >
> > If I ssh to the client like the following:
> >
> > $ ssh wer...@192.168.10.101
> > $ env | grep '^DISPLAY='
> > $
> >
> > If with the following option:
> >
> > $ ssh -Y wer...@192.168.10.101
> > $ env | grep '^DISPLAY='
> > DISPLAY=localhost:10.0
> One point that is often misunderstood. When discussing X, the server is the one
> that's physically connected to the monitor. The gui programs you run on the
> system you're connecting to via ssh become clients of the X server running on
> the machine you're connecting from.
>
> I partially figure out how to get it working. After connecting via ssh to the
> remote system, run "DISPLAY= emacs". It works, but runs emacs in text mode
> instead of gui mode.

I tried with your suggested method:
$ DISPLAY= emacs

But is seems that I still have the same result as before. To be clear, I want to have a pdf preview frame opened in Emacs with pdf-tools, which works smoothly when I locally use it on the machine.

HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<op.0676hnzna3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4140&group=comp.unix.shell#4140

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Wed, 28 Jul 2021 01:21:13 -0400
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <op.0676hnzna3w0dxdave@hodgins.homeip.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com>
<a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net>
<b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f9c0ec45d1051ad753b84e7834bd50db";
logging-data="30013"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/woqGn+FnXeHlv1ZpV5Gq55OO38r9MjPM="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:160j8bAssxEXHLH4Ez1ljfNqShA=
 by: David W. Hodgins - Wed, 28 Jul 2021 05:21 UTC

On Wed, 28 Jul 2021 00:12:54 -0400, hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:
> I tried the above from the server side itself:
>
> $ ssh -XY werner@192.168.10.100
>
> Then run emacs, but encounter the same message:
>
> $ emacs
> Display localhost:10.0 unavailable, simulating -nw

Strange. Try ...
$ ssh -XY werner@192.168.10.100
$ DISPLAY=:0 emacs

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4141&group=comp.unix.shell#4141

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:332:: with SMTP id j18mr18173767qvu.21.1627449905104;
Tue, 27 Jul 2021 22:25:05 -0700 (PDT)
X-Received: by 2002:a05:620a:4d5:: with SMTP id 21mr25439701qks.397.1627449904933;
Tue, 27 Jul 2021 22:25:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 27 Jul 2021 22:25:04 -0700 (PDT)
In-Reply-To: <op.0676hnzna3w0dxdave@hodgins.homeip.net>
Injection-Info: google-groups.googlegroups.com; posting-host=211.23.211.41; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 211.23.211.41
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net> <b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 05:25:05 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Wed, 28 Jul 2021 05:25 UTC

On Wednesday, July 28, 2021 at 1:21:28 PM UTC+8, David W. Hodgins wrote:
> On Wed, 28 Jul 2021 00:12:54 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
> > I tried the above from the server side itself:
> >
> > $ ssh -XY wer...@192.168.10.100
> >
> > Then run emacs, but encounter the same message:
> >
> > $ emacs
> > Display localhost:10.0 unavailable, simulating -nw
> Strange. Try ...
> $ ssh -XY wer...@192.168.10.100
> $ DISPLAY=:0 emacs

werner@X10DAi:~$ DISPLAY=:0 emacs
No protocol specified
Display :0 unavailable, simulating -nw

HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<op.0677u7bya3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4142&group=comp.unix.shell#4142

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
Date: Wed, 28 Jul 2021 01:50:57 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <op.0677u7bya3w0dxdave@hodgins.homeip.net>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com>
<a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net>
<b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net>
<72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f9c0ec45d1051ad753b84e7834bd50db";
logging-data="18431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UXmnkp75XqtojsUoQawdpGdxIh8mGaA8="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:/KoxB+Aymg61SZgB5GBmpgFF+Io=
 by: David W. Hodgins - Wed, 28 Jul 2021 05:50 UTC

On Wed, 28 Jul 2021 01:25:04 -0400, hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:

> On Wednesday, July 28, 2021 at 1:21:28 PM UTC+8, David W. Hodgins wrote:
>> On Wed, 28 Jul 2021 00:12:54 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
>> > I tried the above from the server side itself:
>> >
>> > $ ssh -XY wer...@192.168.10.100
>> >
>> > Then run emacs, but encounter the same message:
>> >
>> > $ emacs
>> > Display localhost:10.0 unavailable, simulating -nw
>> Strange. Try ...
>> $ ssh -XY wer...@192.168.10.100
>> $ DISPLAY=:0 emacs
>
> werner@X10DAi:~$ DISPLAY=:0 emacs
> No protocol specified
> Display :0 unavailable, simulating -nw

I'm out of ideas. I know it's working for me, so it's not a Mageia bug, just
something different about that setup. Hopefully someone else here will figure
it out.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4143&group=comp.unix.shell#4143

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:620a:1465:: with SMTP id j5mr25301014qkl.63.1627455755585;
Wed, 28 Jul 2021 00:02:35 -0700 (PDT)
X-Received: by 2002:a05:6214:d6d:: with SMTP id 13mr26591445qvs.3.1627455755385;
Wed, 28 Jul 2021 00:02:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Wed, 28 Jul 2021 00:02:35 -0700 (PDT)
In-Reply-To: <op.0677u7bya3w0dxdave@hodgins.homeip.net>
Injection-Info: google-groups.googlegroups.com; posting-host=188.166.234.30; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 188.166.234.30
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net> <b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net> <72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
<op.0677u7bya3w0dxdave@hodgins.homeip.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 07:02:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: hongy...@gmail.com - Wed, 28 Jul 2021 07:02 UTC

On Wednesday, July 28, 2021 at 1:51:23 PM UTC+8, David W. Hodgins wrote:
> On Wed, 28 Jul 2021 01:25:04 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
>
> > On Wednesday, July 28, 2021 at 1:21:28 PM UTC+8, David W. Hodgins wrote:
> >> On Wed, 28 Jul 2021 00:12:54 -0400, hongy...@gmail.com <hongy...@gmail..com> wrote:
> >> > I tried the above from the server side itself:
> >> >
> >> > $ ssh -XY wer...@192.168.10.100
> >> >
> >> > Then run emacs, but encounter the same message:
> >> >
> >> > $ emacs
> >> > Display localhost:10.0 unavailable, simulating -nw
> >> Strange. Try ...
> >> $ ssh -XY wer...@192.168.10.100
> >> $ DISPLAY=:0 emacs
> >
> > werner@X10DAi:~$ DISPLAY=:0 emacs
> > No protocol specified
> > Display :0 unavailable, simulating -nw
> I'm out of ideas. I know it's working for me, so it's not a Mageia bug, just
> something different about that setup. Hopefully someone else here will figure
> it out.

Got it. To be sure, your method is right, but I happened to use an error value of "$DISPLAY". Here, I summarize the successful methods as follows:

Obtain the value of `$DISPLAY' locally on the ssh server:

$ echo $DISPLAY
:1

Then all the following methods will do the trick:

Method 1:

$ ssh -X -f werner@192.168.10.100 DISPLAY=:1 emacs
or
$ ssh -X -f werner@192.168.10.100 env DISPLAY=:1 emacs

Method 2:

$ ssh -X werner@192.168.10.100

Then run any of the following commands:

$ DISPLAY=:1 emacs
$ env DISPLAY=:1 emacs
$ emacs -d :1
$ emacs --display :1

NB.

[1]. I obtain the clues from here: <https://kb.iu.edu/d/acxu>
[2]. X server relevant options supplied by Emacs:

werner@X10DAi:~$ man emacs|grep -A 4 -- '-d '
-d displayname, --display=displayname
Create the Emacs window on the display specified by dis‐
playname. Must be the first option specified in the com‐
mand line.

werner@X10DAi:~$ emacs --help|grep -- '-d '
--display, -d DISPLAY use X server DISPLAY

Regards,
HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<5ce30e75-776c-48b6-9ff0-496b2728fbe2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4144&group=comp.unix.shell#4144

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a37:411:: with SMTP id 17mr26219676qke.225.1627457776349;
Wed, 28 Jul 2021 00:36:16 -0700 (PDT)
X-Received: by 2002:ac8:7c54:: with SMTP id o20mr13838934qtv.142.1627457776205;
Wed, 28 Jul 2021 00:36:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Wed, 28 Jul 2021 00:36:16 -0700 (PDT)
In-Reply-To: <687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.177; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.177
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net> <b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net> <72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
<op.0677u7bya3w0dxdave@hodgins.homeip.net> <687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5ce30e75-776c-48b6-9ff0-496b2728fbe2n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 07:36:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 79
 by: hongy...@gmail.com - Wed, 28 Jul 2021 07:36 UTC

On Wednesday, July 28, 2021 at 3:02:38 PM UTC+8, hongy...@gmail.com wrote:
> On Wednesday, July 28, 2021 at 1:51:23 PM UTC+8, David W. Hodgins wrote:
> > On Wed, 28 Jul 2021 01:25:04 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
> >
> > > On Wednesday, July 28, 2021 at 1:21:28 PM UTC+8, David W. Hodgins wrote:
> > >> On Wed, 28 Jul 2021 00:12:54 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
> > >> > I tried the above from the server side itself:
> > >> >
> > >> > $ ssh -XY wer...@192.168.10.100
> > >> >
> > >> > Then run emacs, but encounter the same message:
> > >> >
> > >> > $ emacs
> > >> > Display localhost:10.0 unavailable, simulating -nw
> > >> Strange. Try ...
> > >> $ ssh -XY wer...@192.168.10.100
> > >> $ DISPLAY=:0 emacs
> > >
> > > werner@X10DAi:~$ DISPLAY=:0 emacs
> > > No protocol specified
> > > Display :0 unavailable, simulating -nw
> > I'm out of ideas. I know it's working for me, so it's not a Mageia bug, just
> > something different about that setup. Hopefully someone else here will figure
> > it out.
> Got it. To be sure, your method is right, but I happened to use an error value of "$DISPLAY". Here, I summarize the successful methods as follows:
>
> Obtain the value of `$DISPLAY' locally on the ssh server:
>
> $ echo $DISPLAY
> :1

Or use the following method:

$ xdpyinfo | grep -i display
name of display: :1


> Then all the following methods will do the trick:
>
> Method 1:
>
> $ ssh -X -f wer...@192.168.10.100 DISPLAY=:1 emacs
> or
> $ ssh -X -f wer...@192.168.10.100 env DISPLAY=:1 emacs
>
> Method 2:
>
> $ ssh -X wer...@192.168.10.100
>
> Then run any of the following commands:
>
> $ DISPLAY=:1 emacs
> $ env DISPLAY=:1 emacs
> $ emacs -d :1
> $ emacs --display :1
>
> NB.
>
> [1]. I obtain the clues from here: <https://kb.iu.edu/d/acxu>
> [2]. X server relevant options supplied by Emacs:
>
> werner@X10DAi:~$ man emacs|grep -A 4 -- '-d '
> -d displayname, --display=displayname
> Create the Emacs window on the display specified by dis‐
> playname. Must be the first option specified in the com‐
> mand line.
>
> werner@X10DAi:~$ emacs --help|grep -- '-d '
> --display, -d DISPLAY use X server DISPLAY
>
> Regards,
> HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<1cfc4260-2884-45bc-a95d-114bd5dc7517n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4145&group=comp.unix.shell#4145

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:e62:: with SMTP id jz2mr11776244qvb.54.1627476326182;
Wed, 28 Jul 2021 05:45:26 -0700 (PDT)
X-Received: by 2002:a05:620a:1a0d:: with SMTP id bk13mr27102923qkb.30.1627476326002;
Wed, 28 Jul 2021 05:45:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Wed, 28 Jul 2021 05:45:25 -0700 (PDT)
In-Reply-To: <5ce30e75-776c-48b6-9ff0-496b2728fbe2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.8; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.8
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net> <b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net> <72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
<op.0677u7bya3w0dxdave@hodgins.homeip.net> <687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>
<5ce30e75-776c-48b6-9ff0-496b2728fbe2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1cfc4260-2884-45bc-a95d-114bd5dc7517n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 28 Jul 2021 12:45:26 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 38
 by: hongy...@gmail.com - Wed, 28 Jul 2021 12:45 UTC

On Wednesday, July 28, 2021 at 3:36:18 PM UTC+8, hongy...@gmail.com wrote:
> On Wednesday, July 28, 2021 at 3:02:38 PM UTC+8, hongy...@gmail.com wrote:
> > On Wednesday, July 28, 2021 at 1:51:23 PM UTC+8, David W. Hodgins wrote:
> > > On Wed, 28 Jul 2021 01:25:04 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
> > >
> > > > On Wednesday, July 28, 2021 at 1:21:28 PM UTC+8, David W. Hodgins wrote:
> > > >> On Wed, 28 Jul 2021 00:12:54 -0400, hongy...@gmail.com <hongy...@gmail.com> wrote:
> > > >> > I tried the above from the server side itself:
> > > >> >
> > > >> > $ ssh -XY wer...@192.168.10.100
> > > >> >
> > > >> > Then run emacs, but encounter the same message:
> > > >> >
> > > >> > $ emacs
> > > >> > Display localhost:10.0 unavailable, simulating -nw
> > > >> Strange. Try ...
> > > >> $ ssh -XY wer...@192.168.10.100
> > > >> $ DISPLAY=:0 emacs
> > > >
> > > > werner@X10DAi:~$ DISPLAY=:0 emacs
> > > > No protocol specified
> > > > Display :0 unavailable, simulating -nw
> > > I'm out of ideas. I know it's working for me, so it's not a Mageia bug, just
> > > something different about that setup. Hopefully someone else here will figure
> > > it out.
> > Got it. To be sure, your method is right, but I happened to use an error value of "$DISPLAY". Here, I summarize the successful methods as follows:
> >
> > Obtain the value of `$DISPLAY' locally on the ssh server:
> >
> > $ echo $DISPLAY
> > :1
> Or use the following method:
>
> $ xdpyinfo | grep -i display
> name of display: :1

Another issue: how to obtain the correct value of the above variable from within the ssh client instead of locally logged into the machine?

HY

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<874kceh5y0.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4146&group=comp.unix.shell#4146

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.
Date: Wed, 28 Jul 2021 07:24:39 -0700
Organization: None to speak of
Lines: 24
Message-ID: <874kceh5y0.fsf@nosuchdomain.example.com>
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net>
<be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com>
<a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net>
<b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net>
<72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
<op.0677u7bya3w0dxdave@hodgins.homeip.net>
<687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>
<5ce30e75-776c-48b6-9ff0-496b2728fbe2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="092bc793105a53572bfeac6d5da9e91f";
logging-data="30697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mhCNiCkAxlz06x9HCya9Q"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:35xgxmUeVdUfGftHZy5gpljz/Fk=
sha1:q5cX2dfwufFWspEsPtNlyEWT6cc=
 by: Keith Thompson - Wed, 28 Jul 2021 14:24 UTC

"hongy...@gmail.com" <hongyi.zhao@gmail.com> writes:
[...]
>> Got it. To be sure, your method is right, but I happened to use an
>> error value of "$DISPLAY". Here, I summarize the successful methods
>> as follows:
>>
>> Obtain the value of `$DISPLAY' locally on the ssh server:
>>
>> $ echo $DISPLAY
>> :1
>
> Or use the following method:
>
> $ xdpyinfo | grep -i display
> name of display: :1

That seems pointless. xdpyinfo gets the value to show by looking at
$DISPLAY. (I had suggested running xdpyinfo just to see whether it
succeeds or fails.)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.

<923b93f9-2eae-4249-8411-133ad0898874n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4147&group=comp.unix.shell#4147

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:6709:: with SMTP id e9mr2460253qtp.149.1627527062098;
Wed, 28 Jul 2021 19:51:02 -0700 (PDT)
X-Received: by 2002:ac8:7c54:: with SMTP id o20mr2485433qtv.142.1627527061892;
Wed, 28 Jul 2021 19:51:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Wed, 28 Jul 2021 19:51:01 -0700 (PDT)
In-Reply-To: <874kceh5y0.fsf@nosuchdomain.example.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.109; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.109
References: <b3b337bf-afba-4e59-9a86-f1c4fae3603fn@googlegroups.com>
<sdpjlv$abd$1@tncsrv09.home.tnetconsulting.net> <be2c5dbb-e72e-4e77-961a-783e289d128dn@googlegroups.com>
<87o8angpmu.fsf@nosuchdomain.example.com> <a0f718fc-988c-4b80-81ec-eda66a0b91e9n@googlegroups.com>
<op.06717tfya3w0dxdave@hodgins.homeip.net> <b5052939-b63c-4b4c-adb1-e6fa9fae6885n@googlegroups.com>
<op.0676hnzna3w0dxdave@hodgins.homeip.net> <72fa5f22-3a1d-43eb-9510-97fa8b477a2en@googlegroups.com>
<op.0677u7bya3w0dxdave@hodgins.homeip.net> <687c564c-51f6-4648-b0e5-3d8cb165a7c7n@googlegroups.com>
<5ce30e75-776c-48b6-9ff0-496b2728fbe2n@googlegroups.com> <874kceh5y0.fsf@nosuchdomain.example.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <923b93f9-2eae-4249-8411-133ad0898874n@googlegroups.com>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh
with X11 forwarding enabled.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Thu, 29 Jul 2021 02:51:02 +0000
Content-Type: text/plain; charset="UTF-8"
 by: hongy...@gmail.com - Thu, 29 Jul 2021 02:51 UTC

On Wednesday, July 28, 2021 at 10:24:45 PM UTC+8, Keith Thompson wrote:
> "hongy...@gmail.com" <hongy...@gmail.com> writes:
> [...]
> >> Got it. To be sure, your method is right, but I happened to use an
> >> error value of "$DISPLAY". Here, I summarize the successful methods
> >> as follows:
> >>
> >> Obtain the value of `$DISPLAY' locally on the ssh server:
> >>
> >> $ echo $DISPLAY
> >> :1
> >
> > Or use the following method:
> >
> > $ xdpyinfo | grep -i display
> > name of display: :1
> That seems pointless. xdpyinfo gets the value to show by looking at
> $DISPLAY. (I had suggested running xdpyinfo just to see whether it
> succeeds or fails.)

Then, where does $DISPLAY come from?

HY

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor