如何在 Cygwin 中本地运行 Gnome 或 KDE?

如何在 Cygwin 中本地运行 Gnome 或 KDE?

显然可以使用 cygwin ports 来实现这一点,如截图所示。 我跟着本指南设置 apt-cygports,然后我用它来安装 gnome-session。

本指南据称提供了运行 Gnome 或 KDE 所需的命令,但每当我尝试运行 Gnome 时,都会弹出一个空白的 X 窗口,然后很快消失。

以下是终端输出:

$ startx /usr/bin/dbus-launch gnome-session
xauth:  file /home/jpthomps/.serverauth.4168 does not exist

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.10.3.0
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (WoW64)
Package: version 1.10.3-12 built 2011-08-22

XWin was started with the following command line:

/usr/bin/X :0 -auth /home/jpthomps/.serverauth.4168

(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/jpthomps/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD
winDetectSupportedEngines - Windows NT, allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 0000001f
winSetEngine - Using Shadow DirectDraw NonLocking
winScreenInit - Using Windows display depth of 32 bits per pixel
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
Screen 0 added at virtual desktop coordinate (0,0).
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
winPointerWarpCursor - Discarding first warp: 637 478
(--) 5 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) Windows keyboard layout: "00000409" (00000409) "US", type 4
(--) Found matching XKB configuration "English (USA)"
(--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
winBlockHandler - pthread_mutex_unlock()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - DISPLAY=:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop.
winClipboardProc - XDestroyWindow succeeded.
winClipboardProc - Clipboard disabled  - Exit from server
winDeinitMultiWindowWM - Noting shutdown in progress

答案1

您是否确定 .xinitrc 中的最后一条命令没有被发送到后台。

例如,要启动时钟和终端窗口,你可以输入

xlock &
xterm

注意:xclock 有 & 符号,允许 xinit 脚本继续执行下一个命令。xterm 是链中的最后一个,没有 & 符号。一旦关闭此特定 xterm,X-Server 就会终止。

因此,如果 xinitrc 中的所有 x 程序都有 & 符号,则 X-Server 将在 xinitrc 中的最后一个命令后立即再次关闭。

这看起来就像您所看到的行为。

答案2

您尝试过 CyGNOME 吗?http://cygnome.sourceforge.net/

相关内容