Install
openclaw skills install @jessy-huang/eai-dev-setup自动化配置 Ubuntu 算法开发环境(中国网络优化版);当用户需要初始化新系统、配置深度学习开发环境、批量安装开发工具时使用
openclaw skills install @jessy-huang/eai-dev-setup目的:了解当前系统状态,确定后续安装内容
操作:
python scripts/system_check.py
输出内容:
时间:约 10 秒
目的:加速后续 GitHub 和 HuggingFace 访问
说明:使用 gh-proxy.org 加速所有 GitHub 访问
是否执行:询问用户
命令:
git config --global url."https://gh-proxy.org/https://github.com/".insteadOf "https://github.com/"
验证:
git config --global --get url."https://gh-proxy.org/https://github.com/".insteadOf
说明:使用 hf-mirror.com 加速模型下载
是否执行:询问用户
命令:
echo "export HF_ENDPOINT=https://hf-mirror.com" >> ~/.bashrc
验证:
echo $HF_ENDPOINT
时间:约 5 秒
目的:安装浏览器、编辑器等日常工具
工具列表:
| 工具 | 说明 | 时间 |
|---|---|---|
| Chrome | 浏览器 | 约 1 分钟 |
| Edge | 浏览器(可选) | 约 1 分钟 |
| VSCode | 代码编辑器 | 约 1 分钟 |
| Cursor | AI 编辑器(可选) | 约 1 分钟 |
| 飞书 | 协作工具(可选) | 约 1 分钟 |
安装方式:逐个询问用户是否安装
示例命令:
# 安装 Chrome
python scripts/install_package.py --package-name google-chrome-stable \
--install-type url \
--deb-url "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" \
--use-sudo
进度提示:
[下载中] 正在下载 Chrome...[安装中] 正在安装 Chrome...[完成] Chrome 安装成功目的:安装 Docker、conda、CUDA 等开发工具
说明:容器化工具,使用阿里云镜像安装
是否执行:询问用户
命令:
python scripts/install_docker.py --install
进度提示:
[1/6] 卸载旧版本 Docker...[2/6] 安装依赖包...[3/6] 添加 GPG 密钥...[4/6] 添加软件源...[5/6] 安装 Docker CE...(约 2-5 分钟)[6/6] 配置镜像加速器...时间:约 3-5 分钟
说明:Python 环境管理工具
是否执行:询问用户
安装步骤:
~/anaconda3)进度提示:
[下载中] 正在从清华镜像下载 Anaconda...(约 500MB,可能需要几分钟)[安装中] 正在安装 Anaconda...[配置中] 正在配置环境变量...时间:约 5-10 分钟(取决于网速)
说明:GPU 深度学习环境
是否执行:询问用户(检测到 NVIDIA GPU 时推荐)
详细步骤:参考 references/cuda_guide.md
重要提示:
进度提示:
[检测中] 正在检测 GPU 和驱动...[下载中] 正在下载 CUDA Toolkit...(约 3GB)[安装中] 正在安装 CUDA...(约 2-5 分钟)时间:约 10-20 分钟
目的:增强终端体验
说明:多窗口终端
是否执行:询问用户
命令:
python scripts/install_package.py --package-name terminator --install-type apt --use-sudo
时间:约 30 秒
说明:增强型 shell
是否执行:询问用户
命令:
python scripts/setup_zsh.py --use-sudo --install-oh-my-zsh --china-mirror \
--plugins "git zsh-autosuggestions zsh-syntax-highlighting"
进度提示:
[1/4] 安装 zsh...[2/4] 安装 oh-my-zsh(使用 Gitee 镜像)...[3/4] 安装插件...[4/4] 配置 .zshrc...时间:约 1-2 分钟
触发条件:
提示:
⚠️ 检测到以下操作需要重启系统:
- NVIDIA 驱动安装
- CUDA Toolkit 安装
请保存当前工作后重启系统:
sudo reboot
========================================
[步骤 X/N] 正在执行:操作名称
========================================
⏳ 预计时间:X 分钟
📥 进度:正在下载/安装/配置...
✅ 完成:操作名称 完成
========================================
即将执行:操作名称
========================================
说明:简要说明该操作的作用
影响:是否需要 sudo / 是否需要重启
时间:预计耗时
是否继续?(yes/no):
| 类型 | 镜像源 | 地址 |
|---|---|---|
| GitHub | gh-proxy | https://gh-proxy.org/https://github.com/ |
| HuggingFace | hf-mirror | https://hf-mirror.com |
| pip | 清华 | https://pypi.tuna.tsinghua.edu.cn/simple |
| conda | 清华 | https://mirrors.tuna.tsinghua.edu.cn/anaconda/ |
| Docker | 阿里云 | https://mirrors.aliyun.com/docker-ce/ |
| oh-my-zsh | Gitee | https://gitee.com/shmhlsy/oh-my-zsh-install.sh |