3D Print
DIY 打印机
Marlin 2.X固件_Configuration
Marlin_MKS-TinyBee(ESP32)
Marlin-独立配置文件(快速配置)
Marlin-LCD增加机器调试
常见问题
ESP3D_2.1X
OctoPrint for Android
Klipper 3D打印机
Klipper 摄像头
Klipper-中文Gcode
Klipper-打印预览
Kiauh_部署加速
配置文件_功能注释
Klipper-添加Shell支持
Klipper-常用命令
Klipper-机器校准
Klipper-打完自动关机
Klipper-Android版
Klipper-层暂停
Mainsail-交互宏
TMC2209/2208
步数计算
最大速度/最大加速度
常见问题
3D打印机打印时风扇不转
SD卡更新固件失败
支撑平面塌陷
其他黑科技
切片软件
耗材变脆
Fusion360
参数化设计__Fusion 360
Fusion 360-齿轮齿条绘制
不含设计历史导出
STL模型可编辑
申请教育账户
本文档使用 MrDoc 发布
-
+
首页
Kiauh_部署加速
## 换源加速 解决一些下载失败问题 修改相关安装脚本 `.../kiauh/scripts/` 对应安装脚本都在里面 ```bash # 创建 klipper 使用的用户(非root) useradd -m -s /bin/bash wj # 同时创建home以及使用bash passwd wj # 设置用户密码 usermod wj -a -G sudo # 给新用户增加sudo能力,很重要否则后面kiauh安装出错 # 切换用户并在该用户根目录下进行部署 su wj # 切换用户 cd ~ # 切换到当前用户根目录 git clone https://git.918178.xyz/https://github.com/dw-0/kiauh.git # 拉取最新(加速) ############################## sed 换源/加速 ############################## # (不可用,会有重复链接)替换 kiauh 目录下所有 github 加速 #find kiauh -type f -name "*.sh" -exec sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' {} + # (不可用,有些会有重复链接)替换 globals.sh 中所有 github 加速 #sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' kiauh/scripts/globals.sh # 手动指定要加速的脚本文件 sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' <替换的文件名> # 手动替换各子脚本 sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' kiauh/scripts/klipper.sh # klipper sed -i 's|MOONRAKER_REPO="https://github.com/Arksine/moonraker.git"|MOONRAKER_REPO="https://git.918178.xyz/https://github.com/Arksine/moonraker.git"|g' kiauh/scripts/globals.sh # moonraker(修改该脚本) sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' kiauh/scripts/mainsail.sh # mainsail sed -i 's|CROWSNEST_REPO="https://github.com/mainsail-crew/crowsnest.git"|CROWSNEST_REPO="https://git.918178.xyz/https://github.com/mainsail-crew/crowsnest.git"|g' kiauh/scripts/globals.sh # WebCAM(修改该脚本) #sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' kiauh/scripts/moonraker.sh # moonraker(该脚本没有链接,所以修改无效) #sed -i 's|https://github.com/|https://git.918178.xyz/https://github.com/|g' kiauh/scripts/crowsnest.sh # WebCAM(该脚本没有链接,所以修改无效) # (可用)替换 kiauh 目录下所有 pip 源 find kiauh -type f -name "*.sh" -exec sed -i 's|pip install|pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/|g' {} + ############################## 手动换源/加速 ############################## # github 加速 repo="https://git.918178.xyz/https://github.com/${repo}" # 添加加速 # pip 换源 "${MOONRAKER_ENV}"/bin/pip install -r "${MOONRAKER_DIR}/scripts/moonraker-requirements.txt" # 原有PIP "${MOONRAKER_ENV}"/bin/pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r "${MOONRAKER_DIR}/scripts/moonraker-requirements.txt" # 添加指定源 ``` ## 代理加速 使用本地提供的代理进行加速 ```bash # 创建 klipper 使用的用户(非root) useradd -m -s /bin/bash wj # 同时创建home以及使用bash passwd wj # 设置用户密码 usermod wj -a -G sudo # 给新用户增加sudo能力,很重要否则后面kiauh安装出错 # 切换用户并在该用户根目录下进行部署 su wj # 切换用户 cd ~ # 切换到当前用户根目录 # 设置代理(有的有大小写区分,故全部设置)_仅当前终端有效 export http_proxy="http://192.168.100.203:10809" export HTTPS_PROXY="http://192.168.100.203:10809" ## 取消代理 unset http_proxy unset HTTPS_PROXY git clone https://github.com/dw-0/kiauh.git # 拉取最新 # git 代理 git config --global http.proxy http://192.168.100.203:10809 # 设置 http 代理 git config --global --unset http.proxy # 取消 http代理 git config --list # 查看git配置 ``` **pip 换源加速:** - 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ - 豆瓣 http://pypi.douban.com/simple/ - 阿里云 http://mirrors.aliyun.com/pypi/simple/ - 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ - 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
造物者W
2024年8月28日 13:15
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码