X11转发没有油灰

发布于 2025-01-22 08:08:22 字数 97 浏览 2 评论 0 原文

我正在尝试将X11从RedHat服务器转发到Windows 10 VM来显示Firefox。客户已要求在VM上不使用其他软件,因此我不能使用超过或推杆。没有其他软件可以做到这一点?

I am trying to use x11 forwarding from a Redhat server to a Windows 10 VM to display firefox. The client has requested that no additional software be used on the VM so i cannot use exceed or putty. Is there a way to do this without the additional software?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

注定孤独终老 2025-01-29 08:08:22

确实没有一种方法,但是有一些替代方法:

  • 使用另一个ssh客户端:mobaxterm具有x11转发集成(
  • 如果您使用的是特定工具,则可能有一个网络服务器版本,可以通过WX机器上的浏览器访问,例如Rstudio-Server或任何类型的Jupyter笔记本(R / Python /其他几个)。
  • 我没有这个经验 - 也许有一台用于Linux的RDP兼容服务器可以通过Windows Remote桌面工具访问。

There isn't really a way, there are some alternatives though:

  • use another SSH client: MobaXterm has X11 forwarding integrated (https://mobaxterm.mobatek.net/)
  • if you're using a specific tool, there might be a web-server version of it, that can be accessed by a browser on your WX machine, e.g. rstudio-server or any kind of Jupyter notebook (R / Python / several others).
  • I don't have experience with this - maybe there is a RDP compatible server for Linux that can be accessed with the Windows remote desktop tool.
三生路 2025-01-29 08:08:22

在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.

抽个烟儿 2025-01-29 08:08:22

Windows没有内置的X-Server,因此,如果您想使用X11-Forwarding,则必须在Windows计算机上安装一个( vcxsrv xming 都很好选择)。
可以使用 ssh 客户端内置的Windows 10避免腻子。只需检查Windows功能是否启用了它,然后关注 @aamir Sultan的答复(第二部分)。

如果您不想在Windows上安装X服务器,我建议使用RDP协议:

  1. Redhat服务器上安装XRDP(我想您已经在此处安装了桌面环境,否则您也需要安装一个)。
  2. 在 内置远程桌面连接客户端,可连接到您的Ubuntu Server桌面并在其中运行GUI插件。

希望这会有所帮助

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 or Xming 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:

  1. Install xrdp on RedHat server (I suppose you already have a desktop environment installed there, otherwise you need one installed too)
  2. Use windows' built in remote desktop connection client to connect to your Ubuntu server desktop and run GUI apllication inside it.

Hope this helps

坚持沉默 2025-01-29 08:08:22

如果您可以使用 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 or Xming 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 than VcXsrv or Xming on Windows. Pardon me for my limited knowledge.). There might be a way. Create directory named dev at C:\ and create an empty file tty in the dev. The hierarchy should look like C:\dev\tty.

Open Powershell and run the command $env:DISPLAY='localhost:0.0' in it. ssh your server from Powershell via command ssh -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 case firefox or gedit 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 with git for widows or cmder with basic functionalities.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文