← 返回首页← Home
Quick Start

自己安装一点守护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.

预装或可刷机 OpenWrt 系统的路由器A router with OpenWrt, pre-installed or flashable 💻一台电脑A computer 📱一部装了微信的手机A phone with WeChat
🎁
不想折腾?打开微信小程序「一点守护」,点「联系客服」,咨询当前是否可提供预装路由器或预装服务。Rather skip the tinkering? Open the “一点守护” mini program in WeChat, tap “Contact us” and ask whether a pre-installed router or installation service is currently available.

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_release
✓ 官方 OpenWrt 22.03 – 24.10✓ Official OpenWrt 22.03 – 24.10直接看第 2 步。Go straight to step 2.
? 基于新版 OpenWrt 的第三方固件? Third-party builds on recent OpenWrt如 ImmortalWrt 23.05,一般能装,我们没逐个测过;装不上就刷官方版。e.g. ImmortalWrt 23.05 — usually fine but untested; reflash official OpenWrt if it fails.
✕ 厂商原装、21.02 及更早、不是 OpenWrt✕ Stock firmware, 21.02 or older, not OpenWrt先刷官方 OpenWrt,推荐 23.05。25.x 起换成了新的软件包格式,暂不支持。Reflash official OpenWrt first (23.05 recommended). 25.x switched package formats and isn’t supported yet.
查型号、下固件Find your model & firmwareOpenWrt 官方固件选择器official firmware selector
https://firmware-selector.openwrt.org/
国内镜像Mirror in China官方站下载慢时用,清华大学开源镜像站Tsinghua University mirror
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.

⚠️
刷机有把路由器刷坏(变砖)的风险,建议用闲置的旧路由器,别拿家里正在用的那台试。觉得没把握的话,可以在小程序「一点守护」里联系客服,咨询当前是否可提供预装路由器或预装服务。Flashing can brick a router. Use a spare one, not the router your family relies on. Not confident? Contact us in the 一点守护 mini program to ask whether a pre-installed router or installation service is currently available.

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.

光猫 / 原来的路由器 · LANModem / router · LAN──网线──WAN · 一点守护路由器WAN · Doti router

电脑连上这台路由器(网线或它的 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 update
✅
最后出现一串 Updated list of available packages、没有报错,就是正常。A series of Updated list of available packages lines with no errors means you’re good.
🐢
报错或特别慢:先确认路由器能上网;国内网络可以把软件源换成清华镜像,再执行一次 opkg update:Errors or very slow? Check the router is online. In China you can switch the feeds to the Tsinghua mirror, then run opkg update again:
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf

3安装一点守护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:

国内直链Direct link (China)始终是最新版always the latest
https://doti-api.entdiy.xyz/doti_rt?dl=latest
gitee 发布页gitee releases文件名 doti_<版本>-1_all.ipkfile: doti_<version>-1_all.ipk
https://gitee.com/xautlx/doti-kids-router/releases
GitHub 发布页GitHub releases
https://github.com/xautlx/doti-kids-router/releases
  1. 浏览器打开路由器管理页(LuCI,默认 192.168.1.1),登录。Open the router’s web admin (LuCI, default 192.168.1.1) and log in.
  2. 进入 系统 → 软件包,点 上传软件包…。Go to System → Software and click Upload Package….
  3. 选刚下载的文件,点 上传,再点 安装。Choose the file, click Upload, then Install.

这种方式同样要第 2 步的软件源正常,依赖组件才能装上。This also needs the package feeds from step 2 to work, so dependencies can be installed.

✅
装好后,管理页 服务 → 一点守护 能看到安装成功、当前版本和最近更新时间。Once installed, Services → 一点守护 in the web admin shows the installed version and last update time.

4手机连上家长 WiFi,用小程序绑定Pair your phone in WeChat

装好 1–2 分钟后,路由器会开一个不用密码的临时家长 WiFi:1–2 minutes after installing, the router opens a temporary, password-free parents’ WiFi:

DOTI-TEMP-ADMIN

手机连上它,打开微信小程序「一点守护」,按提示认领路由器、设置孩子的 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.

微信里搜索「一点守护」Search WeChat for “一点守护”
⏱
请在 1 小时内完成绑定。为了安全,这个不用密码的 WiFi 只开 1 小时,到时自动关闭;过了时间,把路由器断电再开,会再开 1 小时。Finish pairing within 1 hour. For safety, this open WiFi closes automatically after an hour. If you miss it, power-cycle the router to get another hour.

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:

路由器上 / Mac / LinuxRouter / Mac / Linux
sha256sum /tmp/doti.ipk
Windows
certutil -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.