[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gv] 答复: gv: Unable to open the display.
From: |
nunojsilva |
Subject: |
Re: [help-gv] 答复: gv: Unable to open the display. |
Date: |
Thu, 17 Aug 2017 19:52:31 +0300 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On 2017-08-17 14:52 +0000, 唐亮 wrote:
> I used Xshell tool(default configuration) to ssh to the server.
I found a website for a tool with that name,
https://www.netsarang.com/products/xsh_specification.html
This seems to be an ssh client for Windows. In this case, you will also
need a separate X server in order to use X11 forwarding.
The Xshell manual[1] has instructions on how to set X11 forwarding (see
page 37 (numbered 31)), and it mentions Xmanager, which appears to be
one X server for Windows from the authors of Xshell.
[1] https://www.netsarang.com/docs/Xshell5_manual.pdf
But I don't know what is the default Xshell configuration, as I've never
used it. To keep thing simple when you're testing new X11 Forwarding
settings, I suggest you try running gv directly first, instead of
through pprof.
>
> -----邮件原件-----
> 发件人: address@hidden [mailto:address@hidden
> 发送时间: 2017年8月17日 21:52
> 收件人: address@hidden
> 抄送: 唐亮
> 主题: Re: [help-gv] gv: Unable to open the display.
>
> On 2017-08-17 01:56 +0000, 唐亮 wrote:
> > pprof tool(https://github.com/google/pprof) uses gv to show picture, and gv
> > version 3.7.1, ssh to server.
> >
> > but gv shows ‘gv: Unable to open the display.’
> >
> > I installed gv through yum. no other setups.
> >
> > How can I make it work?
>
> How is the ssh connection established? Are you doing it, or is it done
> internally by pprof?
>
> X11 forwarding may be disabled by default, and has to be enabled. In
> openssh, this is done with the -X or -Y flags to the ssh utility.
>
> If you need to enable it permanently for a specific host in openssh,
> it should be possible to add directives to $HOME/.ssh/config (see the
> directives starting with ForwardX11 in the ssh_config manpage).
--
Nuno Silva