[英]How can I open a remote Red Hat Linux application window on a virtual Red Hat Linux machine through X-Window system?
I have installed VMWare workstation on a Windows 7 host machine. 我已经在Windows 7主机上安装了VMWare工作站。 The guest operating system on my VMWare workstation is RHEL 6 64-bit (call it virtual_redhat).
我的VMWare工作站上的客户机操作系统是RHEL 6 64位(称为virtual_redhat)。 I have a remote RHEL 6 machine (call it native_remote_redhat) that I use heavily.
我有一台经常使用的远程RHEL 6计算机(称为native_remote_redhat)。 I SSH to the native_remote_redhat via my virtual_redhat machine.
我通过virtual_redhat机器SSH到native_remote_redhat。 However, I cannot use X-Windows to open an application window on the virtual_redhat machine.
但是,我无法使用X-Windows在virtual_redhat机器上打开应用程序窗口。 Can I even do this?
我什至可以这样做吗? I can do it if I used a native linux machine to connect to the remote machine.
如果我使用本地linux计算机连接到远程计算机,则可以这样做。 I ran the following commands [Note the virtual machine's IP address here is 333.444.55.66]:
我运行了以下命令[注意,虚拟机的IP地址在这里是333.444.55.66]:
$ xhost +
$ ssh uname@123.456.78.90 -X
$ export DISPLAY=333.444.55.66:0.0
$ gedit
$ (gedit:6683): Gtk-WARNING **: cannot open display: 333.444.55.66:0.0
I have also edited the /etc/gdm/custom.conf file to look as follows: 我还编辑了/etc/gdm/custom.conf文件,如下所示:
# GDM configuration storage #GDM配置存储
[daemon] [守护进程]
[security] DisallowTCP=false [安全性] DisallowTCP = false
[xdmcp] Enable=true [xdmcp]启用=真
[greeter] [招待员]
[chooser] [选择者]
[debug] [调试]
Note: Xterm is not available on the Virtual machine. 注意:Xterm在虚拟机上不可用。
I was able to resolve this issue when I found out that the DISPLAY variable was set to localhost:13.0 当我发现DISPLAY变量设置为localhost:13.0时,我能够解决此问题。
I also agree with @Andrey%bSidorov that we don't need to explicitly set the DISPLAY variable for a VM. 我也同意@ Andrey%bSidorov的观点,我们不需要为VM显式设置DISPLAY变量。 It is set on it's own.
它是自己设置的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.