小编Mad*_*ner的帖子

运行 Nix 包管理器安装的 OpenGL 应用程序

当我尝试运行使用 Nix 包管理器安装或构建的 OpenGL 的应用程序时,会出现 GLX 错误:

$ /nix/store/p6fwy23nfcadxr4i780knajvmzga17aa-glxinfo-8.1.0/bin/glxinfo 
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  156 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  50
  Current serial number in output stream:  49
Run Code Online (Sandbox Code Playgroud)

opengl x11 nixos nix

7
推荐指数
1
解决办法
1077
查看次数

从 systemd-nspawn 容器访问 USB 设备

我想从容器内部访问特殊的 USB 设备(不是简单的闪存驱动器)。我/dev/bus/usb在容器内绑定,lsusb毫不费力地列出 USB:

$ lsusb
...
Bus 002 Device 002: ID 0a89:0009 
...
Run Code Online (Sandbox Code Playgroud)

但我的程序无法与此设备交互。

usb container systemd-nspawn

4
推荐指数
1
解决办法
4783
查看次数

标签 统计

container ×1

nix ×1

nixos ×1

opengl ×1

systemd-nspawn ×1

usb ×1

x11 ×1