TVUbuntu v1.2.2 — three-layer service auto-start
📺🐧 TVUbuntu v1.2.2
🔧 三层服务自启动(Three-layer service auto-start) —— 重启盒子,服务自己就起来了。
把任意一台吃灰的安卓电视盒子或安卓设备,变成一台常驻运行的 Ubuntu 服务器 —— 无需电脑。
Turn any Android TV box or Android device into an always-on Ubuntu server — no PC required.
🛠 本版本新增 / What's new in v1.2.2
每次开机,run_ubuntu.sh 按序拉起服务(chroot 内无 systemd,用这三层兼容所有 Ubuntu 版本):
/etc/rc.local—— 你自定义的启动命令(保留,向后兼容旧用法)supervisord—— 若已安装,用 supervisor 统一管理服务(生产环境推荐)- 通用
/etc/init.d/*遍历(新增) —— 自动发现并启动/etc/init.d/下所有带 init 脚本的服务
✅ 以后你装的任何服务(nginx / MySQL / Redis / 宝塔…+)重启后都会自动开机启动,无需改动任何脚本。
🛡 危险的系统脚本(halt/reboot/mount/umount/…)会被自动跳过,保证安全。
✨ 核心亮点 / Highlights
- 🐧 真·Ubuntu(chroot 方案):Ubuntu 22.04 / 24.04 / 26.04(server 最小 rootfs)
- 🔑 自动 OpenSSH:连接信息直接显示在大屏
- 📺 遥控器友好 UI:D-Pad 导航、大按钮、高对比度
- 🌐 一键 LEMP:
bootstrap_server.sh拉起 nginx + PHP + MariaDB + Redis - 🔄 三层自启动(1.2.2 新增):rc.local → supervisord → init.d 全自动化
- 📡 高兼容性:各类 ARM64 机顶盒/安卓设备 + x86_64 模拟器
- 🧠 1.2.1 架构识别修复:仅当真实 x86_64 被伪装时才纠正,真 arm64/armhf/x86 保留真值
📦 本版本包含 / In this release
- TVUbuntu1.2.2.apk — 可直接安装的应用包(已签名)。
🚀 快速开始 / Quick start
- 侧载
TVUbuntu1.2.2.apk到你的电视盒子/设备 - 授予 root 权限
- 选择 Ubuntu 版本与架构(auto 即可)
- 点击「开始」,等待 chroot + SSH 启动完成
- 用屏幕上显示的 SSH 信息,从电脑登录盒子上的 Ubuntu
- 在 Ubuntu 内装好服务后,重启盒子 —— 看服务自动起来 🎉
⚠️ 要求 / Requirements
- 已 root 的安卓设备 / 电视盒子(ARM64 或 x86_64)
- 约 1–2 GB 空闲空间用于 Ubuntu rootfs
- 可联网以下载基础 rootfs
📖 完整文档见 README.md(English)与 [README_zh-CN.md](README_zh-CN.md)。
💡 欢迎 Star、Issue 与 PR!