Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
在 Debian 或 Ubuntu 直接运行 autClaw release 产物时安装 Chromium、中文字体和 locale,修复截图与浏览器脚本中文显示。
chromedp
zh_CN.UTF-8
sudo bash -lc 'set -euo pipefail; export DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get install -y --no-install-recommends chromium chromium-l10n locales fonts-noto-cjk fonts-noto-color-emoji fonts-wqy-zenhei; sed -i "s/^# *zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/" /etc/locale.gen; grep -q "^zh_CN.UTF-8 UTF-8$" /etc/locale.gen || echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen; locale-gen zh_CN.UTF-8; install -d /usr/local/bin; printf "%s\n" "#!/usr/bin/env bash" "set -euo pipefail" "export LANG=zh_CN.UTF-8" "export LC_ALL=zh_CN.UTF-8" "export LANGUAGE=zh_CN:zh" "exec /usr/bin/chromium --lang=zh-CN \"\$@\"" > /usr/local/bin/chromium; cp /usr/local/bin/chromium /usr/local/bin/chromium-browser; chmod 755 /usr/local/bin/chromium /usr/local/bin/chromium-browser; fc-cache -f'
locale | grep 'zh_CN.UTF-8' fc-match 'Noto Sans CJK SC' chromium --version
locale-gen zh_CN.UTF-8