跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

alsa.yaml

41 行 · 1.0 KB历史下载
1# A template to run ubuntu using device: default
2
3minimumLimaVersion: 2.0.0
4
5base:
6- template:_images/ubuntu-lts
7- template:_default/mounts
8
9vmType: qemu
10audio:
11 device: default
12
13provision:
14- mode: system
15 script: |
16 #!/bin/bash
17 set -eux -o pipefail
18 test -e /lib/modules/$(uname -r)/kernel/sound/pci/hda/snd-hda-intel.ko* && exit 0
19 apt-get install -y linux-modules-extra-$(uname -r)
20 modprobe snd-hda-intel
21- mode: system
22 script: |
23 #!/bin/bash
24 set -eux -o pipefail
25 command -v aplay >/dev/null 2>&1 && exit 0
26 apt-get install -y --no-install-recommends alsa-utils
27probes:
28- description: "alsa to be installed"
29 script: |
30 #!/bin/bash
31 set -eux -o pipefail
32 if ! timeout 30s bash -c "until command -v aplay >/dev/null 2>&1; do sleep 3; done"; then
33 echo >&2 "alsa is not installed yet"
34 exit 1
35 fi
36 hint: See "/var/log/cloud-init-output.log" in the guest
37message: |
38 To get a list of all available audio devices:
39 $ sudo aplay -L
40 To test the audio device, use something like:
41 $ sudo speaker-test -c2 -twav