1、编译丰富插件时,建议修改下面两项默认大小,留足插件空间。( x86/64 )

Target Images ---> (16) Kernel partition size (in MB) #默认是 (16) 建议修改 (128)
Target Images ---> (160) Root filesystem partition size (in MB) #默认是 (128) 建议修改 (895)

2、设置文件系统

Target Images ---> squashfs(取消选定)
Target Images ---> ext4 (选定)
Target Images ---> Build PVE/KVM image files (QCOW2)(选定)
Target Images ---> Build VMware image files (VMDK)(选定)

2、取消samba

Extra packages ---> autosamba (取消选定)

3、支持 iPv6:

Extra packages ---> ipv6helper(选定)

4、勾选的插件

LuCI ---> Applications ---> luci-app-argone-config
LuCI ---> Applications ---> luci-app-ddns-go
LuCI ---> Applications ---> luci-app-diskman
LuCI ---> Applications ---> luci-app-filetransfer
LuCI ---> Applications ---> luci-app-firewall
LuCI ---> Applications ---> luci-app-frpc
LuCI ---> Applications ---> luci-app-nezha-agent
LuCI ---> Applications ---> luci-app-passwall
LuCI ---> Applications ---> luci-app-pptp-server
LuCI ---> Applications ---> luci-app-socat
LuCI ---> Applications ---> luci-app-ttyd
LuCI ---> Applications ---> luci-app-turboacc
LuCI ---> Applications ---> luci-app-turboacc ---> Include Shortcut-FE CM
LuCI ---> Applications ---> luci-app-turboacc ---> Include BBR CCA
LuCI ---> Applications ---> luci-app-turboacc ---> Include Pdnsd
LuCI ---> Applications ---> luci-app-upnp
LuCI ---> Applications ---> luci-app-webadmin

6、添加luci-theme-argone主题

rm -rf package/lean/luci-theme-argone
git clone https://github.com/kenzok78/luci-theme-argone.git package/lean/luci-theme-argone
rm -rf package/lean/luci-app-argone-config
git clone https://github.com/kenzok78/luci-app-argone-config.git package/lean/luci-app-argone-config
sed -i 's/luci-theme-bootstrap/luci-theme-argone/' feeds/luci/collections/luci/Makefile

7、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

8、helloworld

rm -rf package/helloworld
git clone https://github.com/fw876/helloworld.git package/helloworld

9、ddns-go

rm -rf package/ddns-go
git clone https://github.com/sirpdboy/luci-app-ddns-go.git package/ddns-go

10、nezha

rm -rf package/nezha
git clone https://github.com/erope/openwrt_nezha.git package/nezha

11、首次编译

export FORCE_UNSAFE_CONFIGURE=1 &&
./scripts/feeds update -a &&
./scripts/feeds install -a &&
make menuconfig &&
make download -j8 &&
make V=s -j$(nproc)

12、二次编译

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 pull &&
./scripts/feeds update -a &&
./scripts/feeds install -a &&
make defconfig &&
make download -j8 &&
make V=s -j$(nproc)

编译新版Sing-box和hysteria,需golang版本1.20或者以上版本 ,可以用以下命令

rm -rf feeds/packages/lang/golang
git clone https://github.com/kenzok8/golang feeds/packages/lang/golang

编译后找不到ttyd选项处理方法

make package/feeds/packages/ttyd/{clean,compile} -j8 V=s
最后修改:2024 年 04 月 05 日
如果觉得我的文章对你有用,请随意赞赏