自己安装一点守护Install Doti yourself
家里有闲置的路由器,就能自己装上一点守护。跟着下面几步做,系统合适的话大约 5 分钟;需要先刷机的,按型号另找教程。页面上的地址和命令都能一键复制。Have a spare router? You can install Doti on it yourself. With the right system it takes about 5 minutes; if it needs reflashing first, follow a guide for your model. Every link and command below has a copy button.
1确认路由器系统,不合适就先刷 OpenWrtCheck the router’s system — reflash if needed
一点守护要用 OpenWrt 22.03 起才有的新防火墙(firewall4),所以厂商原装固件、21.02 及更早的 OpenWrt 都装不上。旧路由器多数要先刷成官方 OpenWrt。先看看现在是什么系统:Doti needs the firewall (firewall4) that OpenWrt introduced in 22.03, so stock vendor firmware and OpenWrt 21.02 or older won’t work. Most older routers need to be reflashed with official OpenWrt first. Check what yours runs:
- 管理页:状态 → 概览 里的「固件版本」Web admin: “Firmware Version” under Status → Overview
- 或者 SSH 登录路由器后执行:Or SSH into the router and run:
cat /etc/openwrt_releasehttps://firmware-selector.openwrt.org/https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/各型号刷机方法差别很大,请搜「型号 + OpenWrt 刷机」找对应教程。硬件至少要 16MB 存储、128MB 内存(OpenWrt 官方建议),更老的 4MB / 32MB 机器装不了新版 OpenWrt。Flashing steps differ a lot between models — search “your model + OpenWrt install” for a guide. You’ll need at least 16 MB flash and 128 MB RAM (OpenWrt’s recommendation); older 4 MB / 32 MB devices can’t run current OpenWrt.
2接好路由器,检查网络和软件源Connect it and check the package feeds
用网线把光猫或原来路由器的 LAN 口,接到 OpenWrt 路由器的 WAN 口。原来的 WiFi 照常用。Run a cable from a LAN port on your modem or existing router to the WAN port of the OpenWrt router. Your existing WiFi keeps working.
电脑连上这台路由器(网线或它的 WiFi),SSH 登录:Windows 打开 PowerShell,Mac 打开「终端」,执行下面的命令(地址按你的路由器改,OpenWrt 默认是 192.168.1.1):Connect your computer to this router (cable or its WiFi) and SSH in — PowerShell on Windows, Terminal on Mac (OpenWrt’s default address is 192.168.1.1):
ssh root@192.168.1.1登录后先更新软件源,确认路由器能上网、能下载软件包。安装时要从这里补装依赖组件,这一步不通,后面就装不上:Then refresh the package lists to make sure the router is online and can reach its feeds. Dependencies are installed from here, so the install won’t work until this does:
opkg updatesed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf3安装一点守护Install Doti
还在刚才的 SSH 里,执行下面这条命令。它会自动下载最新版安装包并装好,升级程序也会自动补装:In the same SSH session, run this. It downloads the latest package and installs it; the updater installs itself too:
cd /tmp && wget -O doti.ipk 'https://doti-api.entdiy.xyz/doti_rt?dl=latest' && opkg install doti.ipk不想用命令行,就用电脑下载安装包,再到路由器管理页上传。任选一个地址,三个是同一个文件:Prefer not to use the command line? Download the package on your computer and upload it in the web admin. All three links give the same file:
https://doti-api.entdiy.xyz/doti_rt?dl=latesthttps://gitee.com/xautlx/doti-kids-router/releaseshttps://github.com/xautlx/doti-kids-router/releases- 浏览器打开路由器管理页(LuCI,默认 192.168.1.1),登录。Open the router’s web admin (LuCI, default 192.168.1.1) and log in.
- 进入 系统 → 软件包,点 上传软件包…。Go to System → Software and click Upload Package….
- 选刚下载的文件,点 上传,再点 安装。Choose the file, click Upload, then Install.
这种方式同样要第 2 步的软件源正常,依赖组件才能装上。This also needs the package feeds from step 2 to work, so dependencies can be installed.
4手机连上家长 WiFi,用小程序绑定Pair your phone in WeChat
装好 1–2 分钟后,路由器会开一个不用密码的临时家长 WiFi:1–2 minutes after installing, the router opens a temporary, password-free parents’ WiFi:
手机连上它,打开微信小程序「一点守护」,按提示认领路由器、设置孩子的 WiFi。设置时会给这个 WiFi 改名并设上密码。Join it on your phone, open the “一点守护” mini program in WeChat, and follow the prompts to claim the router and set up the kids’ WiFi. Setup renames this WiFi and gives it a password.
5核对安装包Verify the package可选optional
安装包由 GitHub Actions 从公开代码自动构建,发布页附有 SHA256SUMS。算一下下载文件的 SHA256,和它一致就说明是公开构建的同一个文件:Packages are built by GitHub Actions from the public code, and each release ships a SHA256SUMS file. If your download’s SHA256 matches, it’s the exact file built in public:
sha256sum /tmp/doti.ipkcertutil -hashfile 文件名.ipk SHA256也可以下载源码,执行 python3 build.py 自己打包,得到的文件和发布页的一模一样。You can also build it yourself with python3 build.py from the source — you’ll get a byte-identical file.
遇到问题?Need help?
在小程序「一点守护」里点「联系客服」,或者到开源仓库提问。装不上、不想折腾,也可以找客服咨询当前是否可提供预装路由器或预装服务。Tap “Contact us” in the 一点守护 mini program, or open an issue in the repository. If it won’t install or you’d rather not bother, ask us whether a pre-installed router or installation service is currently available.