个人笔记记录(常用)

个人笔记


路由器刷机

<h2>LEDE-Lean源码编译</h2> <p>源码地址:<a href="https://github.com/coolsnowwolf/lede">https://github.com/coolsnowwolf/lede</a></p> <p><a href="https://www.imf8.cn/post/734.html">https://www.imf8.cn/post/734.html</a></p> <h4>必备软件及插件</h4> <ul> <li>frpc</li> <li>smartdns</li> <li>V2ray</li> <li>vsftp</li> <li>uhttpd</li> <li>samba</li> <li>wifischedule</li> <li>filetransfer</li> <li>bandwidth</li> <li>luci-app-ttyd</li> <li>flowoffload (hwacc)</li> <li>optimizer</li> <li>luci-app-ssr-pro</li> </ul> <h4>编译步骤</h4> <p>注意: <code>1. 不要用 root 用户 git 和编译!!!</code> <code>2. 国内用户编译前最好准备好梯子</code> <code>3. 默认登陆IP 192.168.1.1, 密码 password</code></p> <hr /> <pre><code>sudo apt-get update sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch 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 su venxiaojie # 切换用户 #下载并更新源码 cd;git clone https://github.com/coolsnowwolf/lede;cd lede;./scripts/feeds update -a ;./scripts/feeds install -a #配置信息及插件 make menuconfig #后台编译并输出编译日志至build.log (make -j4 V=s &gt; build.log 2&gt;&amp;1 &amp;)</code></pre> <h4>二次编译</h4> <p>(二次编译是指下一次你编译别的固件的时候)</p> <pre><code>su venxiaojie # 切换用户 cd;cd lede # 进入LEDE目录 git pull # 同步更新大雕源码 ./scripts/feeds update -a ; ./scripts/feeds install -a # 更新FEEDS rm -rf ./tmp # 清除编译配置和缓存 make menuconfig # 进入编译配置菜单 make -j1 V=s # n=线程数+1,例如4线程的I5填-j5,开始编译</code></pre> <p><code>编译完成后固件输出在/lede/bin/targets</code></p> <h4>编译指导:<a href="http://www.yizu.org/archives/734/">http://www.yizu.org/archives/734/</a></h4> <p><a href="https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=526833">https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=526833</a> <a href="https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=340269&page=1">https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=340269&page=1</a> <a href="https://www.right.com.cn/forum/forum.php?mod=redirect&goto=findpost&pid=3208424">https://www.right.com.cn/forum/forum.php?mod=redirect&goto=findpost&pid=3208424</a> <a href="https://www.jianshu.com/p/eed71e8a22cc">https://www.jianshu.com/p/eed71e8a22cc</a> <a href="https://www.right.com.cn/FORUM/forum.php?mod=redirect&goto=findpost&ptid=344357">https://www.right.com.cn/FORUM/forum.php?mod=redirect&goto=findpost&ptid=344357</a></p> <h4>推荐指导:<a href="https://imgki.com/archives/openwrt-lean.html">https://imgki.com/archives/openwrt-lean.html</a></h4> <hr /> <p>潘多拉固件下载 <a href="https://downloads.pangubox.com/pandorabox/19.01/targets/ralink/mt7620/">https://downloads.pangubox.com/pandorabox/19.01/targets/ralink/mt7620/</a> <a href="https://downloads.pangubox.com/">https://downloads.pangubox.com/</a> <a href="http://downloads.pangubox.com:6380/pandorabox/19.02/targets/ralink/mt7621/">http://downloads.pangubox.com:6380/pandorabox/19.02/targets/ralink/mt7621/</a></p> <p>OpenWrt固件下载(新路由3) <a href="https://downloads.openwrt.org/releases/19.07.0-rc2/targets/ramips/mt7621/">https://downloads.openwrt.org/releases/19.07.0-rc2/targets/ramips/mt7621/</a></p> <p>一步一步教你解锁newifi3(新路由3)并编译刷入最新官方OpenWrt <a href="https://www.right.com.cn/forum/thread-365936-1-1.html">https://www.right.com.cn/forum/thread-365936-1-1.html</a></p> <hr /> <h4>NEWIFI3解锁刷机</h4> <p><strong>1、开启ssh</strong></p> <p><a href="http://192.168.99.1/newifi/ifiwen_hss.html">http://192.168.99.1/newifi/ifiwen_hss.html</a></p> <p><strong>2、上传解锁文件</strong></p> <pre><code>scp newifi-d2-jail-break.ko root@192.168.99.1:/tmp/</code></pre> <p><strong>3、登录路由器</strong></p> <pre><code>ssh root@192.168.99.1</code></pre> <p><strong>4、执行解锁</strong></p> <pre><code>cd /tmp/ wget "http://huangwj.top/download/newifi3/newifi-d2-jail-break.ko" insmod newifi-d2-jail-break.ko &amp;</code></pre> <p><strong>5、使用Breed控制台</strong></p> <p>拔掉电源,按住<code>reset</code>键插上电源,出现幻灯闪烁后松开<code>reset</code>键</p> <p><a href="http://192.168.1.1">http://192.168.1.1</a></p> <h5>默认密码:admin</h5> <p>6、上传刷机包,注意比对MD5值</p> <pre><code>wget "http://huangwj.top/download/newifi3/PandoraBox-ralink-mt7621-newifi-3-2019-02-01-git-0231ad4b5-squashfs-sysupgrade.bin" md5sum "PandoraBox-ralink-mt7621-newifi-3-2019-02-01-git-0231ad4b5-squashfs-sysupgrade.bin" md5:1506f995e312e36b61235442f94fac47</code></pre> <p>6、rom下载 <a href="https://www.●●●●●●s.com/b642709/">https://www.●●●●●●s.com/b642709/</a></p> <p>密码:bhua</p>

页面列表

ITEM_HTML