
CustomPiOS 是一个用于构建 Raspberry Pi <[]> 和其他 ARM 设备发行版的工具。它可以打开现有镜像、修改并重新打包,以便分发使用。本仓库包含从现有 Raspbian <[]> 发行版镜像或 Armbian 设备生成自定义发行版的源脚本。
CustomPiOS 是 100% 免费开源软件,由 Guy Sheffer 维护。如果它对您的生活、组织有帮助或让您满意,请考虑***。任何金额都将帮助开发者更专注于代码开发。感谢所有代码贡献者。
|***|
.. || image:: [] :target: [***]
通过 克隆本仓库 <https://github.com/guysoft/CustomPiOS>_ 获取。然后按照说明构建现有发行版或创建自己的发行版。
git clone https://github.com/guysoft/CustomPiOS.gitsrc/make_custom_pi_os -g <发行版文件夹>,发行版文件夹不应存在且不含空格。此命令将创建用于构建新发行版的文件夹,并下载最新的 Raspbian Lite 镜像。初始发行版包含一个与发行版同名的模块,位于 <发行版文件夹>/src/modules/<发行版名称>(模块文件夹中应只有一个模块)。<发行版文件夹>/src<发行版文件夹>/src/config,也可编辑位于 modules/<发行版名称> 的起始模块(更多信息见开发部分)。<发行版文件夹>/src/build_dist 构建镜像。若失败,可使用 Vagrant 构建方法(确保 sfdisk 等工具正常工作)。raspios_lite_arm64 变体qemu-arm-static <http://packages.debian.org/sid/qemu-user-static>_Raspbian <http://www.raspbian.org/>_ 镜像CustomPiOS Docker 镜像 <https://hub.docker.com/r/guysoft/custompios>_参考此讨论 <https://github.com/guysoft/OctoPi/issues/388#issuecomment-316327106>_参见 wiki 中的模块条目 <https://github.com/guysoft/CustomPiOS/wiki/Modules>_
用于编写在发行版内执行的代码。在 start_chroot_script 中编写主代码,可使用 end_chroot_script 编写清理函数,在模块命名空间结束时运行。
CustomPiOS 提供 common.sh 脚本,包含可在 chroot_script 中使用的实用函数。通过 source /common.sh 引入。
unpack [from_filesystem] [destination] [owner]:将 filesystem 文件夹中的文件解压到指定目标路径,并设置所有者。例如:unpack /filesystem/home/pi /home/pi pigitclone <MODULE_NAME>_<REPO_NAME>_REPO destination:克隆 Git 仓库,配置预设在 config 文件中。示例:在 chroot_script 中使用 gitclone OCTOPI_OCTOPRINT_REPO OctoPrint,在 config 中设置 [ -n "$OCTOPI_OCTOPRINT_REPO_SHIP" ] || OCTOPI_OCTOPRINT_REPO_SHIP=https://github.com/foosel/OctoPrint.gitCustomPiOS 支持将 chroot 中创建的文件导出为 tar.gz 归档。在 chroot_script 中运行:
custompios_export [归档名称] [chroot 中的文件路径]copy_and_export [归档名称] [源路径] [目标路径]copy_and_export_folder [归档名称] [文件夹] [目标路径]
结果保存在 workspace 文件夹中。用于添加文件到发行版并保存到仓库,可通过 common.sh 中的 unpack 命令解压。
用于创建模块特定设置,可在发行版或变体中覆盖。命名约定为模块名称前缀。
参见 wiki 中的构建条目 <https://github.com/guysoft/CustomPiOS/wiki/Building>_
参见 wiki 中的构建条目 <https://github.com/guysoft/CustomPiOS/wiki/Building>_
docker pull guysoft/custompiosgit clone https://github.com/guysoft/CustomPiOS.gitdocker run -it -v $(pwd)/CustomPiOS:/CustomPiOS guysoft/custompioscd /CustomPiOS
src/make_custom_pi_os -g my_distro (创建发行版文件夹并下载基础镜像)
cd my_distro/src
./build_dist (执行构建,生成镜像)参见 wiki 中的 Vagrant 构建条目 <https://github.com/guysoft/CustomPiOS/wiki/Building-with-Vagrant>_
可通过云持续集成系统构建 CustomPiOS 镜像。GitHub Actions 示例配置见 此 YAML 文件 <https://github.com/guysoft/OctoPi/blob/devel/.github/workflows/build.yml/>_
src/config.local 文件,可覆盖 src/config 中的所有设置。若需指定用于构建的 Raspbian 镜像路径,覆盖基础模块中的 BASE_ZIP_IMG(默认使用 src/image 中最新的 *-raspbian.zip 文件)。src/build。src/workspace 目录。OctoPi <https://octopi.octoprint.org/>_ - 预安装 OctoPrint 的 Raspberry Pi 镜像FarmPi <https://farmpi.kevenaar.name/>_ - 运行 OctoFarm 的 Ubuntu ARM 64 位 Raspberry Pi 镜像FullPageOS <https://github.com/guysoft/FullPageOS>_ - 启动时显示全屏浏览器的 Raspberry Pi 发行版Zynthian <http://zynthian.org/>_ - 开源合成器平台ElectricSheepPi <https://github.com/guysoft/ElectricSheepPi>_ - 运行 Electric Sheep 数字艺术的 Raspberry Pi 发行版AlarmPi <https://github.com/guysoft/AlarmPi>_ - 物联网 *** 控制闹钟的 Raspberry Pi 发行版RealtimePi <https://github.com/guysoft/RealtimePi>_ - 预配置实时内核的 Raspbian 发行版RMS Pi <https://github.com/toddejohnson/rmspi>_ - Winlink RMS 的 Raspberry Pi 发行版V1PI <https://github.com/jeffeb3/v1pi>_ - 控制 V1Engineering 机器的 Raspberry Pi 发行版HotSpotOS <https://github.com/guysoft/HostSpotOS>_ - 未找到 WiFi 时自动创建热点的 Raspberry Pi 发行版MtigOS <https://github.com/guysoft/MtigOS>_ - 接收、存储和图表化 ESP8266 传感器数据的发行版,使用 MTIG 栈(Mosquitto、Telegraf、InfluxDB、Grafana)Tilti-Pi <https://github.com/myoung34/tilty-pi>_ - 通过 tilty 包提交 Tilt 比重计 BLE 数据的发行版MainsailOS <https://github.com/raymondh2/MainsailOS>_ - 集成 Mainsail Web UI、Moonraker API 和 Klipper 3D 打印机固件的发行版UbuntuDockerPi <https://github.com/guysoft/UbuntuDockerPi>_ - 预装 Ubuntu ARM 64 位 Docker 和 docker-compose 的发行版FluiddPi <https://github.com/cadriel/fluiddpi>_ - 集成 Fluidd、Moonraker 和 Klipper 的 3D 打印机固件发行版My Naturewatch Camera <https://github.com/interactionresearchstudio/NaturewatchCameraServer>_ - 用于通过网站流式传输 Pi 摄像头内容的 Python/OpenCV 服务器欢迎代码贡献!
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务