← 返回首页← Home
快速开始Quick Start

自己安装一点守护Install Doti yourself

家里有一台 OpenWrt 路由器,就能自己装上一点守护:跟着下面 5 步走,不用刷机的话大约 10 分钟。命令和地址都有「复制」按钮,照着粘贴就行。Got a router running OpenWrt? You can install Doti yourself in 5 steps — about 10 minutes if no reflash is needed. Every command and address has a Copy button.

预装或可刷机 OpenWrt 系统的路由器A router with OpenWrt, pre-installed or flashable 💻一台电脑A computer 📱一部装了微信的手机A phone with WeChat
💡
费用:在家管理一直免费;不在家的远程管理一年一期,每期都先用、再决定付不付(期内优惠价 36 元,过期按原价 60 元),不自动扣费(详细说明)。Cost: managing at home is always free; remote management runs in yearly periods, each one use first, then decide (¥36 during the period, ¥60 after) — nothing is charged automatically (details).
🎁
不想折腾?打开微信小程序「一点守护」,点「联系客服」,咨询当前是否可提供预装路由器或预装服务。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确认能不能装Check it can be installed

一点守护需要 OpenWrt 22.03 或更新的版本,最稳的是官方 OpenWrt。在路由器管理页 状态 → 概览 看「固件版本」,或者 SSH 登录后执行:Doti needs OpenWrt 22.03 or newer — official OpenWrt is the safest bet. Check “Firmware Version” under Status → Overview in the web admin, or run this over SSH:

cat /etc/openwrt_release
✓ 官方 OpenWrt 22.03 及以上(含 25.x)✓ Official OpenWrt 22.03+ (incl. 25.x)能直接装:同一页的「可用空间」要有 800KB 以上,不够会装不上。接着看第 2 步。Good to go — just make sure “Free space” on the same page shows at least 800KB, or it won’t fit. Then on to step 2.
? 基于新版 OpenWrt 的第三方或厂商固件? Third-party or vendor firmware built on recent OpenWrt如 ImmortalWrt 23.05、部分 GL.iNet 原装系统,一般能装,但没逐个测过:先按第 2–4 步试,第 4 步报错再刷官方版。e.g. ImmortalWrt 23.05 or some GL.iNet stock firmware — usually fine but not tested model by model: try steps 2–4 first, and reflash official OpenWrt only if step 4 fails.
✕ 不是 OpenWrt 的原装系统、21.02 及更早✕ Non-OpenWrt stock firmware, 21.02 or older要先刷官方 OpenWrt,见下面「需要先刷机?」。Reflash official OpenWrt first — see “Need to reflash?” below.
需要先刷机?Need to reflash?

建议刷 24.10 系列最新版(我们测过 24.10.8;它用 opkg 装软件,网上教程大多按它写)。25.x 改用 apk,也测过、同样支持。各型号刷机方法差别很大,请搜「型号 + OpenWrt 刷机」找教程。硬件至少要 16MB 存储、128MB 内存。We recommend the latest 24.10 release (tested on 24.10.8; it uses opkg, which most guides assume). 25.x uses apk and is supported too. Flashing differs a lot by model — search “your model + OpenWrt install”. You need at least 16 MB flash and 128 MB RAM.

查型号、下固件Find your model & firmwareOpenWrt 官方固件选择器(版本里选 24.10)official firmware selector (pick 24.10)
https://firmware-selector.openwrt.org/
国内镜像Mirror in China官方站下载慢时用,清华大学开源镜像站Tsinghua University mirror
https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/
⚠️
刷机有把路由器刷坏(变砖)的风险,建议用闲置的旧路由器,别拿家里正在用的那台试。Flashing can brick a router. Use a spare one, not the router your family relies on.

2接好路由器,用电脑登录Connect it and log in from a computer

用网线把光猫或原来路由器的 LAN 口,接到 OpenWrt 路由器的 WAN 口。原来的 WiFi 不受影响,家里其他设备照常用。接下来让电脑连这台 OpenWrt 路由器(网线插它的 LAN 口,或连它的 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 isn’t affected. Then connect your computer to this OpenWrt router (cable into its LAN port, or join its WiFi).

光猫 / 原来的路由器 · 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
  • 第一次登录会问 Are you sure you want to continue connecting,输入 yes 回车。First time, it asks Are you sure you want to continue connecting — type yes and press Enter.
  • 刚刷好的 OpenWrt 没有密码,问密码时直接回车;自己设过的就输入那个密码(输入时屏幕上不显示)。A freshly flashed OpenWrt has no password — just press Enter; otherwise type yours (it won’t show on screen).
  • 看到 root@OpenWrt 开头的提示,就是登录成功了。A prompt starting with root@OpenWrt means you’re in.
  • 连不上:光猫或原来的路由器也是 192.168.1.1 时会冲突。先拔掉这台路由器 WAN 口的网线,让电脑只连这台路由器再试;想一劳永逸,可以在管理页 网络 → 接口 把它的 LAN 地址改成 192.168.2.1 之类,再插回网线;改完电脑断开重连一次,以后都用新地址登录。Can’t connect? If your modem or old router is also 192.168.1.1 they clash. Unplug the cable from this router’s WAN port, keep your computer connected to this router and try again; for good, change its LAN address under Network → Interfaces to something like 192.168.2.1, plug the cable back in, reconnect your computer and use the new address from then on.
⏱️
路由器刚开机或刚刷完系统时,网络要一两分钟才就绪,稍等再进行下一步。Right after a reboot or a fresh flash, give the router a minute or two before the next step — its network is still coming up.

3更新软件源Update the package feeds必做required

安装时要从软件源下载一个小组件(包名 mosquitto-client-nossl,远程管理用),所以先更新一次软件源,通过了再做第 4 步。按系统版本选一条:The install downloads a small component from the package feeds (package mosquitto-client-nossl, used for remote management), so update the feeds once first and only move on to step 4 once this passes. Pick the line for your release:

22.03–24.10opkgopkg
opkg update
25.xapkapk
apk update
✓ 通过✓ Passed输出里没有 Failed、ERROR(opkg 每个软件源都显示 Signature check passed;25.x 的 apk 正常列完就算通过),接着做第 4 步。No Failed or ERROR in the output (opkg shows Signature check passed for each feed; on 25.x, apk just finishes listing the feeds) — go on to step 4.
✕ 没通过✕ Failed出现 Failed to download、ERROR 等:先确认路由器能上网;国内网络把软件源换成清华镜像(下面按版本选一条),再更新一次,直到通过。You see Failed to download, ERROR or similar: check the router is online. In China, switch the feeds to the Tsinghua mirror (pick the line for your release below) and update again until it passes.
国内网络:换成清华镜像再更新In China: switch to the Tsinghua mirror
换清华镜像 · 22.03–24.10Tsinghua mirror · 22.03–24.10
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
换清华镜像 · 25.xTsinghua mirror · 25.x
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/apk/repositories.d/distfeeds.list
💡
软件源列表放在内存里,路由器重启后就没了。第 3 步之后重启过路由器的话,第 4 步前再做一次第 3 步。The feed lists live in memory and are gone after a reboot — if the router restarted after step 3, redo step 3 before step 4.

4安装一点守护Install Doti

第 3 步通过后,还在刚才的 SSH 里,执行下面这条命令。它会检查系统、下载最新版对应的安装包(22.03–24.10 用 ipk,25.x 用 apk)、校验后装好,升级程序也会自动补装:Once step 3 passes, in the same SSH session, run this. It checks the system, downloads the right package for it (ipk for 22.03–24.10, apk for 25.x), verifies and installs it; the updater installs itself too:

cd /tmp && wget -O install.sh https://gitee.com/xautlx/doti-kids-router/raw/main/install.sh && sh install.sh
⏱️
一般半分钟左右装好。提示「软件源更新失败」或缺组件时,回到第 3 步换镜像、更新通过后再执行一次。It usually takes about half a minute. If it says the feed update failed or something is missing, go back to step 3, switch mirrors, update until it passes, and run it again.

不想用命令行,就用电脑下载 doti-kids-router_all.ipk(在下面任一发布页的最新版里),再到路由器管理页上传。只适用于 22.03–24.10:25.x 的管理页只装有官方签名的包,请用上面的命令装。Prefer not to use the command line? Download doti-kids-router_all.ipk from the latest release on either page and upload it in the web admin. 22.03–24.10 only: on 25.x the web admin only installs officially signed packages, so use the command above.

gitee 发布页gitee releases国内下载快faster in China
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.

上传前也要先更新软件源:在 SSH 里做第 3 步,或在管理页 系统 → 软件包 点「更新列表」,没有报错再上传。Update the feeds before uploading too: do step 3 over SSH, or click “Update lists” on System → Software, and upload once it finishes without errors.

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

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

装好 1–2 分钟后,路由器会开一个不用密码的临时家长 WiFi(只在还没绑定时开,专门用来绑定):1–2 minutes after installing, the router opens a temporary, password-free parents’ WiFi (only while it’s unpaired, just for pairing):

DOTI-TEMP-ADMIN

手机连上它,打开微信小程序「一点守护」,按提示绑定路由器、设置孩子的 WiFi。Join it on your phone, open the “一点守护” mini program in WeChat, and follow the prompts to pair the router and set up the kids’ WiFi.

微信里搜索「一点守护」Search WeChat for “一点守护”
✅
绑定好以后,这个临时 WiFi 会改名成 DOTI-编号-ADMIN 并设上密码,搜不到 DOTI-TEMP-ADMIN 是正常的。After pairing, this WiFi is renamed DOTI-xxxx-ADMIN with a password — not seeing DOTI-TEMP-ADMIN any more is normal.
⏱
请在 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.
🔑
路由器管理页的 root 密码:原来没设的,绑定后自动设成家长 WiFi 密码,以后改家长 WiFi 密码时一起改;自己设过的不动。所以请记好家长 WiFi 密码,它也是路由器管理页的密码。Router admin (root) password: if you never set one, pairing sets it to the parents’ WiFi password and keeps it in step when you change that password; one you set yourself is left alone. So keep the parents’ WiFi password safe — it’s also the router admin password.
👉
接下来:跟着小程序给每个孩子设好 WiFi 和规则,孩子的手机、平板、电视连上自己的 WiFi,就开始管理了。Next: follow the mini program to set up each kid’s WiFi and rules. Once their phones, tablets and TVs join their own WiFi, Doti takes it from there.

+核对安装包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 doti-kids-router_all.ipk
Windows
certutil -hashfile doti-kids-router_all.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.

?常见问题FAQ

更新软件源一直失败?Feed update keeps failing?
先确认路由器能上网;国内网络按第 3 步换成清华镜像再更新。Make sure the router is online; in China switch to the Tsinghua mirror (step 3) and update again.
安装命令报错、装不上?The install command fails?
多半是软件源没更新通过,回到第 3 步更新通过后再执行;剩余空间不足 800KB 的路由器也装不了。Usually the feeds weren’t updated — redo step 3 until it passes. Routers with under 800 KB free can’t install it.
搜不到 DOTI-TEMP-ADMIN?Can’t see DOTI-TEMP-ADMIN?
装好后要等 1–2 分钟;超过 1 小时没绑定会自动关闭,把路由器断电再开就会重新出现。Give it 1–2 minutes after installing. It closes after an hour if unpaired — power-cycle the router to bring it back.
费用怎么算?How much does it cost?
在家管理一直免费;远程管理一年一期,每期都先用,期内付 36 元,过期再补按原价 60 元。不自动扣费,不付也不断网。详见首页「费用」。Managing at home is always free. Remote management runs in yearly periods, each one use first: ¥36 during the period, ¥60 if you pay after it ends. Nothing is charged automatically, and nothing gets cut off if you don't pay. See Cost on the home page.

遇到问题?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.