红联Linux门户
Linux帮助

Linux虚拟机中的GUI定向到cygwin-X

发布时间:2008-03-23 01:12:55来源:红联作者:Creation
host:Windows XP
虚拟机:Redhat9

在host上安装Cygwin-X(嫌麻烦可以选择全部安装Cygwin中的软件包)

打开cygwin bash shell,输入X,启动X server(server是运行于host机器上的)

X server打开后,可以在shell中输入xterm -display 127.0.0.1:0.0 -ls,这时X server中显示一个终端,可以输入命令,在xterm中输入xhost +192.168.200.5 (虚拟机的ip)

在Redhat9虚拟机中,export DISPLAY=10.1.10.68:0 (host主机的ip)

然后虚拟机中的任何图形操作都可以在Cygwin-X中显示了。
文章评论

共有 1 条评论

  1. superyongzhe 于 2008-05-31 17:05:30发表:

    打开x后显示这个错误
    Rules = "xorg" Model = "pc101" Layout = "us" Variant = "(null)" Options = "(null
    )"
    9 [main] x 1292 child_copy: linked dll data write copy failed, 0x3EC000..0
    x3EC040, done 0, windows pid 2286004, Win32 error 487
    (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
    (--) 5 mouse buttons found
    Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li
    st!
    winPointerWarpCursor - Discarding first warp: 509 358