跳到主要内容

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

浏览文件

vnc.yaml

47 行 · 1.5 KB历史下载
1# A template to run ubuntu using display: vnc
2
3minimumLimaVersion: 2.0.0
4
5base:
6- template:_images/ubuntu-lts
7- template:_default/mounts
8
9vmType: "qemu"
10video:
11 display: "vnc"
12
13provision:
14- mode: system
15 script: |
16 #!/bin/bash
17 set -eux -o pipefail
18 command -v Xorg >/dev/null 2>&1 && exit 0
19 export DEBIAN_FRONTEND=noninteractive
20 # x-terminal-emulator x-session-manager x-window-manager
21 apt-get install -y xorg xterm openbox hsetroot tint2 slim
22 printf "auto_login yes\ndefault_user {{.User}}\n" >>/etc/slim.conf
23 # configure some nice lima green, set up panel and apps
24 printf "hsetroot -solid \"#32CD32\" &\ntint2 &\n" >>/etc/xdg/openbox/autostart
25 sed -i 's/Clearlooks/Clearlooks-Olive/' /etc/xdg/openbox/rc.xml # go for green
26 apt-get install -y --no-install-recommends dillo xfe # x-www-browser +explorer
27- mode: system
28 script: |
29 #!/bin/bash
30 set -eux -o pipefail
31 systemctl set-default graphical.target
32 systemctl isolate graphical.target
33probes:
34- description: "Xorg to be installed"
35 script: |
36 #!/bin/bash
37 set -eux -o pipefail
38 if ! timeout 30s bash -c "until command -v Xorg >/dev/null 2>&1; do sleep 3; done"; then
39 echo >&2 "Xorg is not installed yet"
40 exit 1
41 fi
42 hint: See "/var/log/cloud-init-output.log" in the guest
43message: |
44 Use a VNC viewer or noVNC, to connect to the display:
45
46 * VNC Display: see <file://{{.Dir}}/vncdisplay>
47 * VNC Password: see <file://{{.Dir}}/vncpassword>