startxwin - cygwin 上的 startx
startxwin - startx on cygwin
我最近安装了 cygwin,因为我想使用 matplotilb 来显示绘图,所以我尝试让 x11 工作。但是,从设置中安装软件包后,我无法启动新终端:
- 从 windows 打开服务器 - 所有应用程序 - cygwin-x 打开一个新的 window 几分之一秒
startxwin from cygwin shell 导致此输出,不打开任何 window
$ startxwin
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.19.5.0
OS: CYGWIN_NT-10.0 DESKTOP-4MNGT8H 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64
OS: Windows 10 [Windows NT 10.0 build 15063] (Win64)
Package: version 1.19.5-1 built 2017-11-03
XWin was started with the following command line:
/usr/bin/XWin :0 -multiwindow -auth /home/voyo/.serverauth.5460
(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/voyo/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - RemoteSession: no
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 00000005
winSetEngine - Multi Window or Rootless => ShadowGDI
winScreenInit - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1920 height: 1080 depth: 32
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
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
glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
(II) AIGLX: Testing pixelFormatIndex 1
GL_VERSION: 4.4.0 - Build 20.19.15.4444
GL_VENDOR: Intel
GL_RENDERER: Intel(R) HD Graphics 400
(II) GLX: enabled GLX_SGI_make_current_read
(II) GLX: enabled GLX_SGI_swap_control
(II) GLX: enabled GLX_MESA_swap_control
(II) GLX: enabled GLX_SGIX_pbuffer
(II) GLX: enabled GLX_ARB_multisample
(II) GLX: enabled GLX_SGIS_multisample
(II) GLX: enabled GLX_ARB_fbconfig_float
(II) GLX: enabled GLX_EXT_fbconfig_packed_float
(II) GLX: enabled GLX_ARB_create_context
(II) GLX: enabled GLX_ARB_create_context_profile
(II) GLX: enabled GLX_ARB_create_context_robustness
(II) GLX: enabled GLX_EXT_create_context_es2_profile
(II) GLX: enabled GLX_ARB_framebuffer_sRGB
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) 92 pixel formats reported by wglGetPixelFormatAttribivARB
(II) 56 fbConfigs
(II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel type, 36 unaccelerated
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
winPointerWarpCursor - Discarding first warp: 960 540
(--) 5 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) Windows keyboard layout: "00020409" (00020409) "United >States->International", type 4
(--) Found matching XKB configuration "English (USA,International)"
(--) Model = "pc105" Layout = "us_intl" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "us_intl" Variant = "none" Options = >"none"
winInitMultiWindowWM - DISPLAY=:0.0
winMultiWindowXMsgProc - DISPLAY=:0.0
winInitMultiWindowWM - xcb_connect () returned and successfully opened the >display.
winClipboardThreadProc - DISPLAY=:0.0
winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - xcb_connect() returned and successfully opened the >display.
OS maintains clipboard viewer chain: yes
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
Using Composite redirection
startx导致类似的输出,一个新的空白终端出现片刻然后立即关闭,输出是这样的。
$ startx
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.19.5.0
OS: CYGWIN_NT-10.0 DESKTOP-4MNGT8H 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64
OS: Windows 10 [Windows NT 10.0 build 15063] (Win64)
Package: version 1.19.5-1 built 2017-11-03
XWin was started with the following command line:
/usr/bin/X :0 -auth /home/voyo/.serverauth.6320
(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/voyo/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - RemoteSession: no
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 00000005
winSetEngine - Using Shadow DirectDraw NonLocking
winScreenInit - Using Windows display depth of 32 bits per pixel
winWindowProc - WM_SIZE - new client area w: 1902 h: 983
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
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
(EE) AIGLX: No native OpenGL in modes with a root window
(II) IGLX: enabled GLX_MESA_copy_sub_buffer
(II) IGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
winPointerWarpCursor - Discarding first warp: 951 491
(--) 5 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) Windows keyboard layout: "00020409" (00020409) "United >States->International", type 4
(--) Found matching XKB configuration "English (USA,International)"
(--) Model = "pc105" Layout = "us_intl" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "us_intl" Variant = "none" Options = >"none"
winClipboardThreadProc - DISPLAY=:0.0
OS maintains clipboard viewer chain: yes
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
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.
winDeinitMultiWindowWM - Noting shutdown in progress
(II) Server terminated successfully (0). Closing log file.
- 根据另一个答案,我尝试了这个命令:
$ xinit -- -multiwindow -clipboard &
这会打开一个新终端,但是是白色的,字符很少,很难管理。
知道如何让它正常工作吗?
以下为我启动 X:
startxwin -- -listen tcp &
请注意,这只会启动 X 服务器,不会启动任何 X 应用程序。手动启动应用程序,例如 xterm &
(或为它们创建快捷方式)。
为了避免出现带有小字符的白色 xterm,请将资源放在 ~/.Xresources 中。例如,我的 ~/.Xresources 中有以下内容:
XTerm*FaceName: DejaVu Sans Mono
XTerm*FaceSize: 12
XTerm*Geometry: 80x30
XTerm*Foreground: lightgrey
XTerm*Background: #201810
我最近安装了 cygwin,因为我想使用 matplotilb 来显示绘图,所以我尝试让 x11 工作。但是,从设置中安装软件包后,我无法启动新终端:
- 从 windows 打开服务器 - 所有应用程序 - cygwin-x 打开一个新的 window 几分之一秒
startxwin from cygwin shell 导致此输出,不打开任何 window
$ startxwin
Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.19.5.0 OS: CYGWIN_NT-10.0 DESKTOP-4MNGT8H 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 OS: Windows 10 [Windows NT 10.0 build 15063] (Win64) Package: version 1.19.5-1 built 2017-11-03
XWin was started with the following command line:
/usr/bin/XWin :0 -multiwindow -auth /home/voyo/.serverauth.5460
(II) xorg.conf is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information LoadPreferences: /home/voyo/.XWinrc not found LoadPreferences: Loading /etc/X11/system.XWinrc LoadPreferences: Done parsing the configuration file... winDetectSupportedEngines - RemoteSession: no winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL winDetectSupportedEngines - Returning, supported engines 00000005 winSetEngine - Multi Window or Rootless => ShadowGDI winScreenInit - Using Windows display depth of 32 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1920 height: 1080 depth: 32 winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32 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 glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll' (II) AIGLX: Testing pixelFormatIndex 1 GL_VERSION: 4.4.0 - Build 20.19.15.4444 GL_VENDOR: Intel GL_RENDERER: Intel(R) HD Graphics 400 (II) GLX: enabled GLX_SGI_make_current_read (II) GLX: enabled GLX_SGI_swap_control (II) GLX: enabled GLX_MESA_swap_control (II) GLX: enabled GLX_SGIX_pbuffer (II) GLX: enabled GLX_ARB_multisample (II) GLX: enabled GLX_SGIS_multisample (II) GLX: enabled GLX_ARB_fbconfig_float (II) GLX: enabled GLX_EXT_fbconfig_packed_float (II) GLX: enabled GLX_ARB_create_context (II) GLX: enabled GLX_ARB_create_context_profile (II) GLX: enabled GLX_ARB_create_context_robustness (II) GLX: enabled GLX_EXT_create_context_es2_profile (II) GLX: enabled GLX_ARB_framebuffer_sRGB (II) AIGLX: enabled GLX_MESA_copy_sub_buffer (II) 92 pixel formats reported by wglGetPixelFormatAttribivARB (II) 56 fbConfigs (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel type, 36 unaccelerated (II) GLX: Initialized Win32 native WGL GL provider for screen 0 winPointerWarpCursor - Discarding first warp: 960 540 (--) 5 mouse buttons found (--) Setting autorepeat to delay=500, rate=31 (--) Windows keyboard layout: "00020409" (00020409) "United >States->International", type 4 (--) Found matching XKB configuration "English (USA,International)" (--) Model = "pc105" Layout = "us_intl" Variant = "none" Options = "none" Rules = "base" Model = "pc105" Layout = "us_intl" Variant = "none" Options = >"none" winInitMultiWindowWM - DISPLAY=:0.0 winMultiWindowXMsgProc - DISPLAY=:0.0 winInitMultiWindowWM - xcb_connect () returned and successfully opened the >display. winClipboardThreadProc - DISPLAY=:0.0 winProcEstablishConnection - winInitClipboard returned. winMultiWindowXMsgProc - xcb_connect() returned and successfully opened the >display. OS maintains clipboard viewer chain: yes winClipboardProc - XOpenDisplay () returned and successfully opened the display. Using Composite redirection
startx导致类似的输出,一个新的空白终端出现片刻然后立即关闭,输出是这样的。
$ startx
Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.19.5.0 OS: CYGWIN_NT-10.0 DESKTOP-4MNGT8H 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 OS: Windows 10 [Windows NT 10.0 build 15063] (Win64) Package: version 1.19.5-1 built 2017-11-03
XWin was started with the following command line:
/usr/bin/X :0 -auth /home/voyo/.serverauth.6320
(II) xorg.conf is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information LoadPreferences: /home/voyo/.XWinrc not found LoadPreferences: Loading /etc/X11/system.XWinrc LoadPreferences: Done parsing the configuration file... winDetectSupportedEngines - RemoteSession: no winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL winDetectSupportedEngines - Returning, supported engines 00000005 winSetEngine - Using Shadow DirectDraw NonLocking winScreenInit - Using Windows display depth of 32 bits per pixel winWindowProc - WM_SIZE - new client area w: 1902 h: 983 winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff 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 (EE) AIGLX: No native OpenGL in modes with a root window (II) IGLX: enabled GLX_MESA_copy_sub_buffer (II) IGLX: Loaded and initialized swrast (II) GLX: Initialized DRISWRAST GL provider for screen 0 winPointerWarpCursor - Discarding first warp: 951 491 (--) 5 mouse buttons found (--) Setting autorepeat to delay=500, rate=31 (--) Windows keyboard layout: "00020409" (00020409) "United >States->International", type 4 (--) Found matching XKB configuration "English (USA,International)" (--) Model = "pc105" Layout = "us_intl" Variant = "none" Options = "none" Rules = "base" Model = "pc105" Layout = "us_intl" Variant = "none" Options = >"none" winClipboardThreadProc - DISPLAY=:0.0 OS maintains clipboard viewer chain: yes winProcEstablishConnection - winInitClipboard returned. winClipboardProc - XOpenDisplay () returned and successfully opened the display. 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. winDeinitMultiWindowWM - Noting shutdown in progress (II) Server terminated successfully (0). Closing log file.
- 根据另一个答案,我尝试了这个命令:
$ xinit -- -multiwindow -clipboard &
- 根据另一个答案,我尝试了这个命令:
这会打开一个新终端,但是是白色的,字符很少,很难管理。
知道如何让它正常工作吗?
以下为我启动 X:
startxwin -- -listen tcp &
请注意,这只会启动 X 服务器,不会启动任何 X 应用程序。手动启动应用程序,例如 xterm &
(或为它们创建快捷方式)。
为了避免出现带有小字符的白色 xterm,请将资源放在 ~/.Xresources 中。例如,我的 ~/.Xresources 中有以下内容:
XTerm*FaceName: DejaVu Sans Mono
XTerm*FaceSize: 12
XTerm*Geometry: 80x30
XTerm*Foreground: lightgrey
XTerm*Background: #201810