oneko:错误并退出

oneko:错误并退出

我正在开发运行 Raspbian GNU/Linux 10 (buster) 的 Raspberry Pi Zero W。其他 X11 应用程序,如xlogoxclockxosview、 甚至xeyes运行得很好,但我运行失败oneko

pi@nalzoks-pi:~ $ oneko
Display not supported shape extension.
oneko: Error and exit.
BadAccess (attempt to access private resource denied)
pi@nalzoks-pi:~ $ oneko -noshape
oneko: Error and exit.
BadAccess (attempt to access private resource denied)
pi@nalzoks-pi:~ $ sudo oneko
sudo: oneko: command not found

我正在本地网络中通过 SSH 并使用 X11 转发来访问 Pi。

任何想法?


如果您需要的话,这里有更多信息

在 Pi 零上(通过 访问 SSH 服务器)ssh -X [email protected]

pi@nalzoks-pi:~ $ echo $DISPLAY
nalzoks-pi:11.0
pi@nalzoks-pi:~ $ sudo lsof -i -P -n | grep LISTEN
autossh   1608    pi    3u  IPv4  19696      0t0  TCP 127.0.0.1:30001 (LISTEN)
ssh       1613    pi    4u  IPv6  19718      0t0  TCP [::1]:30000 (LISTEN)
ssh       1613    pi    5u  IPv4  19719      0t0  TCP 127.0.0.1:30000 (LISTEN)
sshd      1719  root    3u  IPv4  20283      0t0  TCP *:22 (LISTEN)
sshd      1719  root    4u  IPv6  20289      0t0  TCP *:22 (LISTEN)
sshd      7110    pi   10u  IPv4  38831      0t0  TCP *:6010 (LISTEN)
sshd      7110    pi   11u  IPv6  38832      0t0  TCP *:6010 (LISTEN)
sshd      7394    pi   10u  IPv4  40700      0t0  TCP *:6011 (LISTEN)
sshd      7394    pi   11u  IPv6  40701      0t0  TCP *:6011 (LISTEN)
pi@nalzoks-pi:~ $ xdpyinfo
name of display:    nalzoks-pi:11.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    11804000
X.Org version: 1.18.4
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  None
number of extensions:    2
    BIG-REQUESTS
    XC-MISC
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1440x878 pixels (381x232 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x111
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x21
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store NO, save-unders NO
  largest cursor:    32x32
  current input event mask:    0x1a0000
    StructureNotifyMask      SubstructureNotifyMask   SubstructureRedirectMask
  number of visuals:    80
  default visual id:  0x22
  visual:
    visual id:    0x22
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0xc1
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

  ... similar line omitted for brevity ...

在 MacBook Pro 上(SSH 客户端)

$ echo $DISPLAY
:0
$ xdpyinfo
name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    11804000
X.Org version: 1.18.4
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  None
number of extensions:    25
    Apple-DRI
    Apple-WM
    BIG-REQUESTS
    DAMAGE
    DOUBLE-BUFFER
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1440x878 pixels (381x232 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x111
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x21
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store NO, save-unders NO
  largest cursor:    32x32
  current input event mask:    0x1a0000
    StructureNotifyMask      SubstructureNotifyMask   SubstructureRedirectMask
  number of visuals:    80
  default visual id:  0x22
  visual:
    visual id:    0x22
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0xc1
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

  ... similar line omitted for brevity ...

答案1

当您通过 ssh 从 Mac 登录到 Pi 时,客户端程序 (oneko) 在 Pi 上运行,并联系 Mac 上运行的 X 服务器。

我刚刚通过从我的 MacBook 登录我的 Debian PC 进行了尝试ssh,并且oneko运行良好,当我这样做时xdpyinfo,我看到的扩展数量与xdpyinfo直接在 Mac 上看到的扩展数量相同。

但是,在您的情况下,转发的连接截然不同:

number of extensions:    2
  BIG-REQUESTS
  XC-MISC

这就是很少有扩展的方式,特别是没有 SHAPE。所以现在的问题是为什么会发生这种情况。

我看到您有两个 X 转发登录(sshd 在 6010 和 6011 上监听)。当您仅使用一次登录时会发生什么?

编辑

将评论的结果添加到答案中:有必要使用带有可信转发的 ssh (即ssh -Y代替ssh -X)以使所有扩展可用。

相关内容