打造超级路由器

OpenWrt

1.官方源代码 https://github.com/openwrt/openwrt

2.分支源代码 https://github.com/coolsnowwolf/lede


注意:

  1. 用普通用户进行编译
  2. 国内用户编译前最好准备好梯子
  3. 默认登陆IP 192.168.5.1 密码 password

准备工作:

sudo apt-get update
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

步骤:

  1. 克隆源代码:
git clone https://github.com/coolsnowwolf/lede

2. 进入代码目录

cd lede

3. 修改路由器默认登录ip

sed -i 's/192.168.1.1/192.168.5.1/g' package/base-files/files/bin/config_generate

4. 打开feeds.conf.default文件,添加如下代码,加入常用软件包

src-git helloworld https://github.com/fw876/helloworld

5. 同步最新源码

./scripts/feeds update -a && ./scripts/feeds install -a

6. 配置编译菜单

make menuconfig

7. 执行编译

make -j$(($(nproc) + 1)) V=s

8. 导出编译好的固件

进入目录 /bin/targets/

写盘工具

PhysDiskWrite https://m0n0.ch/wall/physdiskwrite.php

写盘命令

physdiskwrite -u 映像路径

开启广告屏蔽

https://anti-ad.net/easylist.txt

替换设备

替换第一期视频中的路由器,接管整个家庭网络

我的路由器


Q群
电报群

x86路由器固件下载链接:

链接:https://pan.baidu.com/s/1EJAIsotP8J_WYSUux3Wu6Q
提取码:cycx


 Applications 插件应用说明

链接:https://www.right.com.cn/forum/thread-344825-1-1.html

作者:刹那

命中有时终须有,命中无时需强求。

2条评论

  1. 你好!你发表的这个打造软路由的视频和文章我很喜欢,只是最最最重要的功能就是科学上网了,至于其它的功能需求都可以用别的代替,科学上网不方便说,我想知道这个科学上网是免费的还是需要购买某些VPS或者某些服务才能实现,能给个提示吗?

    1. 需要你有自己的科学上网帐号和用户名,这个你可以从机场购买,也可以自己租vps搭机场,不过国内这方面资源不好找,我先给你一个我自己搭的帐号,你翻出之后购买了自己的帐号或者搭了自己的机场之后再用你自己的就可以了。已经发你邮箱了136234115@qq.com

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注