Ai
1 Star 0 Fork 3

bug_coder/Octo4a

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setup-octo4a.sh 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
DIY-3D 提交于 2023-02-20 21:27 +08:00 . update setup-octo4a.sh.
#!/bin/sh
set -e
apk add py3-pip py3-yaml py3-regex py3-netifaces py3-psutil unzip py3-pillow ttyd ffmpeg git tzdata
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "Asia/Shanghai" > /etc/timezone
mkdir -p /root/extensions/ttyd
cat << EOF > /root/extensions/ttyd/manifest.json
{
"title": "Remote web terminal (ttyd)",
"description": "Uses port 5002; User root / ssh password"
}
EOF
#echo "octoprint" > /root/.octoCredentials
cat << EOF > /root/extensions/ttyd/start.sh
#!/bin/sh
ttyd -p 5002 --credential root:\$(cat /root/.octoCredentials) bash
EOF
cat << EOF > /root/extensions/ttyd/kill.sh
#!/bin/sh
pkill ttyd
EOF
chmod +x /root/extensions/ttyd/start.sh
chmod +x /root/extensions/ttyd/kill.sh
chmod 777 /root/extensions/ttyd/start.sh
chmod 777 /root/extensions/ttyd/kill.sh
pip3 install -U packaging --ignore-installed
pip3 install https://ghproxy.com/https://github.com/feelfreelinux/octo4a-argon2-mock/archive/main.zip
pip3 install --upgrade setuptools wheel tornado --no-cache-dir
touch /home/octoprint/.argon-fix
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bug_coder/Octo4a.git
git@gitee.com:bug_coder/Octo4a.git
bug_coder
Octo4a
Octo4a
master

搜索帮助