X11转发没有油灰
我正在尝试将X11从RedHat服务器转发到Windows 10 VM来显示Firefox。客户已要求在VM上不使用其他软件,因此我不能使用超过或推杆。没有其他软件可以做到这一点?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在尝试将X11从RedHat服务器转发到Windows 10 VM来显示Firefox。客户已要求在VM上不使用其他软件,因此我不能使用超过或推杆。没有其他软件可以做到这一点?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
确实没有一种方法,但是有一些替代方法:
There isn't really a way, there are some alternatives though:
在RedHat服务器上,您可以安装CloudTK,该CloudTK使您可以通过NOVNC在Web浏览器中查看X11程序。参见
https://wiki.tcl-lang.org/page/page/page/cloudtk
因此您的Windows VM只需使用已安装的默认浏览器即可。
On the Redhat server you can install CloudTk which lets you view X11 program in a web browser via noVNC. See
https://wiki.tcl-lang.org/page/CloudTk
Therefore in your Windows VM just use the default browser installed.
Windows没有内置的X-Server,因此,如果您想使用X11-Forwarding,则必须在Windows计算机上安装一个(
vcxsrv
或xming
都很好选择)。可以使用
ssh
客户端内置的Windows 10避免腻子。只需检查Windows功能是否启用了它,然后关注 @aamir Sultan的答复(第二部分)。如果您不想在Windows上安装X服务器,我建议使用RDP协议:
希望这会有所帮助
Windows has not a built in X-server so, if you want to go with X11-forwarding, you must install one on your Windows machine (
VcXsrv
orXming
are both good choices).Putty can be avoided using the windows 10 built in
SSH
client. Just check if it is enabled in windows features and follow @Aamir Sultan's reply (second paragraph).If you don't want to install an X-server on windows, I suggest to go with RDP protocol:
Hope this helps
如果您可以使用
vcxsrv
或xming
在Windows上的显示(我知道您说您不能安装其他软件,但我想知道如何创建X Server除了vcxsrv
或xming
以外,在我的知识有限的情况下。可能有办法。在c:\
上创建名为dev
的目录,并在dev
中创建一个空文件 tty 。层次结构应看起来像c:\ dev \ tty
。打开
powershell
并运行命令$ env:display ='localhost:0.0'
中。 SSH您的服务器从powershell通过命令ssh -vvvy< username>@< server -ip>
。这应该打印调试信息并受到信任的X11转发访问服务器。成功登录后,尝试一些图形的内容,例如在您的情况下firefox
或gedit
测试连接。为我工作。也可以使用Bash尝试相同的过程。唯一的区别是,需要一个将显示变量导出,例如
export display = localhost:0.0
在终端中,剩余过程是相同的。 Bash终端通常可用于寡妇或cmder
带有基本功能的git。
If you can use the
VcXsrv
orXming
for the display on windows (I know you are saying that you can't install additional softwares but I wonder how would you create X server display other thanVcXsrv
orXming
on Windows. Pardon me for my limited knowledge.). There might be a way. Create directory nameddev
atC:\
and create an empty filetty
in thedev
. The hierarchy should look likeC:\dev\tty
.Open
Powershell
and run the command$env:DISPLAY='localhost:0.0'
in it. ssh your server from Powershell via commandssh -vvvY <username>@<server-IP>
. This should print debug information and trusted X11 forwarding access to the server. After successful login try something graphical like in your casefirefox
orgedit
to test out the connection.Working for me. One can try the same procedure with bash also. Only difference is that one is needed to export the DISPLAY variable like
export DISPLAY=localhost:0.0
in the terminal and remaining process is the same. Bash terminal are normally available withgit for widows
orcmder
with basic functionalities.