1、编译丰富插件时,建议修改下面两项默认大小,留足插件空间。( x86/64 )
Target Images ---> (16) Kernel partition size (in MB) #建议修改 (128)
Target Images ---> (160) Root filesystem partition size (in MB) #建议修改 (1024)
2、取消samba
Extra packages ---> autosamba (取消选定)
3、支持 iPv6:
Extra packages ---> ipv6helper(选定)
4、勾选的插件
LuCI ---> Applications ---> luci-app-adguardhome
LuCI ---> Applications ---> luci-app-ddns
LuCI ---> Applications ---> luci-app-diskman #磁盘管理工具
LuCI ---> Applications ---> luci-app-filetransfer #文件传输(可web安装ipk包)
LuCI ---> Applications ---> luci-app-firewall #默认勾选 防火墙
LuCI ---> Applications ---> luci-app-frpc #内网穿透Frp客户端
LuCI ---> Applications ---> luci-app-mwan3 #多线分流
LuCI ---> Applications ---> luci-app-nlbwmon #网络带宽监视器
LuCI ---> Applications ---> luci-app-opkg #默认勾选
LuCI ---> Applications ---> luci-app-qos #upnp需要
LuCI ---> Applications ---> luci-app-passwall #Include Hysteria(另外勾选)
LuCI ---> Applications ---> luci-app-socat #端口转发
LuCI ---> Applications ---> luci-app-ttyd #网页终端命令行
LuCI ---> Applications ---> luci-app-turboacc #Turbo ACC 网络加速(支持 Fast Path 或者 硬件 NAT)
LuCI ---> Applications ---> luci-app-turboacc ---> Enable BBR CCA #BBR拥塞控制算法提升TCP网络性能
LuCI ---> Applications ---> luci-app-upnp #通用即插即用UPnP(端口自动转发)
LuCI ---> Applications ---> luci-app-webadmin #Web管理页面设置
LuCI ---> Protocols ---> luci-proto-wireguard #wireguard
5、设置默认主题为luci-theme-argon
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-light/Makefile
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-nginx/Makefile
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci-ssl-nginx/Makefile
6、首次编译
export FORCE_UNSAFE_CONFIGURE=1 &&
./scripts/feeds update -a &&
./scripts/feeds install -a &&
make menuconfig &&
make download -j8 &&
make V=s -j$(nproc)
7、二次编译
apt update -y &&
apt full-upgrade -y &&
cd /root/lede &&
export FORCE_UNSAFE_CONFIGURE=1 &&
export ALL_PROXY=socks5://*:*@47.76.90.39:10808 &&
export GOPROXY=https://goproxy.cn &&
git config pull.rebase false &&
git pull &&
./scripts/feeds update -a &&
./scripts/feeds install -a &&
make defconfig &&
make download -j8 &&
make V=s -j$(nproc)
8、helloworld
rm -rf package/helloworld
git clone https://github.com/fw876/helloworld.git package/helloworld
拉取上游提交:
git -C package/helloworld pull
9、passwall
rm -rf package/passwall-packages
git clone https://github.com/xiaorouji/openwrt-passwall-packages.git package/passwall-packages
rm -rf package/passwall
git clone https://github.com/xiaorouji/openwrt-passwall.git package/passwall
拉取上游提交:
git -C package/passwall-packages pull
git -C package/passwall pull
OpenWrt 编译 LuCI -> Applications 添加插件应用说明
https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=3682029
二次编译git提示说明
https://github.com/coolsnowwolf/lede/issues/13107
ext4分区重启后设置无法保存解决方法
目前我的解决方法是重启后使用命令mount -o remount rw / 重新挂载,然后在挂载页面生成配置,再重启就不会是只读了
修改内核版本
/root/lede/target/linux/x86/Makefile
修改Tailscale认证密钥不生效问题
/root/lede/package/feeds/luci/luci-app-tailscale/root/etc/init.d/tailscale
[ -n "$authkey" ] && ARGS="$ARGS --authkey=$authkey"
[ -n "$authkey" ] && ARGS="$ARGS --auth-key=$authkey"//修改为
所有变量authkey修改为authKey(区分大小写)
GIT合并失败处理
git fetch
git reset --hard origin/master
git clean -df