2021年9月
此内容被密码保护
OpenWrt编译说明步骤 2022.11月份更新
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、取消samba
Extra packages ---> autosamba (取消选定)
3、支持 iPv6:
Extra packages ---> ipv6helper(选定这个后下面几项自动选择了)
Network ---> odhcp6c
Network ---> odhcpd-ipv6only
LuCI ---> Protocols ---> luci-proto-ipv6
LuCI ---> Protocols ---> luci-proto-ppp
4、打开适用于VMware的VM Tools
Utilities ---> open-vm-tools #打开适用于VMware的VM Tools
Utilities ---> open-vm-tools-fuse #打开适用于VMware的VM Tools
5、勾选的插件
LuCI ---> Applications ---> luci-app-ddns
LuCI ---> Applications ---> luci-app-diskman
LuCI ---> Applications ---> luci-app-filetransfer
LuCI ---> Applications ---> luci-app-firewall
LuCI ---> Applications ---> luci-app-frpc
LuCI ---> Applications ---> luci-app-pptp-server
LuCI ---> Applications ---> luci-app-ttyd
LuCI ---> Applications ---> luci-app-turboacc
LuCI ---> Applications ---> luci-app-turboacc ---> Include Shortcut-FE ECM
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 ---> Applications ---> luci-app-accesscontrol (取消勾选-访问时间控制)
LuCI ---> Applications ---> luci-app-adbyby-plus (取消勾选-广告过滤)
LuCI ---> Applications ---> luci-app-arpbind (取消勾选-IP/MAC绑定)
LuCI ---> Applications ---> luci-app-autoreboot (取消勾选-支持计划重启)
LuCI ---> Applications ---> luci-app-ipsec-vpnd (取消勾选-IPSEC VPN)
LuCI ---> Applications ---> luci-app-nlbwmon (取消勾选-网络带宽监视器)
LuCI ---> Applications ---> Include ---> rclone-webui (取消勾选-Rclone界面)
LuCI ---> Applications ---> Include ---> rclone-ng (取消勾选-Rclone另一个界面)
LuCI ---> Applications ---> luci-app-unblockmusic(取消勾选-解锁网易云灰色歌曲3合1新版本)
LuCI ---> Applications ---> luci-app-unblockmusic ---> UnblockNeteaseMusic Golang Version
LuCI ---> Applications ---> luci-app-uugamebooster(取消勾选-UU网游加速器)
LuCI ---> Applications ---> luci-app-vlmcsd(取消勾选-KMS服务器)
LuCI ---> Applications ---> luci-app-vsftpd(取消勾选-FTP服务器)
LuCI ---> Applications ---> luci-app-wireguard(取消勾选WireGuard状态)
LuCI ---> Applications ---> luci-app-wol(取消勾选-WOL网络唤醒)
LuCI ---> Applications ---> luci-app-xlnetacc(取消勾选-迅雷快鸟)
LuCI ---> Applications ---> luci-app-zerotier(取消勾选-内网穿透 ZeroTier)
7、第一次编译错误输入
export FORCE_UNSAFE_CONFIGURE=1
8、第一次编译完成后修改luci-theme-argon主题
cd lede/package/lean
rm -rf luci-theme-argon
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
make menuconfig #choose LUCI->Theme->Luci-theme-argon
make -j1 V=s
修改默认主题
vi lede/feeds/luci/collections/luci/Makefile
luci-theme-bootstrap修改为luci-theme-argon
9、helloword
echo "src-git helloworld https://github.com/fw876/helloworld.git" >> feeds.conf.default
echo "src-git passwall https://github.com/xiaorouji/openwrt-passwall.git" >> feeds.conf.default
cd lede/package/lean
git clone https://github.com/jerrykuku/lua-maxminddb.git
git clone https://github.com/jerrykuku/luci-app-vssr.git
./scripts/feeds update -a ./scripts/feeds install -a make -j8 download V=s make -j1 V=s
10、passwall(可选)编译菜单中找不到luci-app-passwall选项 https://github.com/xiaorouji/openwrt-passwall/tree/3aff3af88536227d12fb7206992af64ff21cf4d2/ 手动下载2022-03-03 23:55最后更新的luci-app-passwall 放到lede/feeds/passwall目录下面
11、nezhaecho "src-git
nezha https://github.com/Erope/openwrt_nezha.git" >> feeds.conf.default
12、OpenWrt 编译 LuCI -> Applications 添加插件应用说明https://www.right.com.cn/forum/thread-344825-1-1.html
13、BTsudo apt update -y && sudo apt full-upgrade -y && cd /root/lede && export FORCE_UNSAFE_CONFIGURE=1 && git pull && ./scripts/feeds update -a && ./scripts/feeds install -a && make defconfig && make download -j8 && make V=s -j$(nproc)
编译OpenWrt 固件遇到的问题
1、在openwrt编译的时候出现错误
you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this
解决办法:
export FORCE_UNSAFE_CONFIGURE=1
2、编译时luci-app-samba无法取消
Extra packages ---> < > autosamba
LuCI ---> 3. Applications ---> < > luci-app-samba
3、支持 iPv6:
1、Extra packages ---> ipv6helper (选定这个后下面几项自动选择了)
Network ---> odhcp6c
Network ---> odhcpd-ipv6only
LuCI ---> Protocols ---> luci-proto-ipv6
LuCI ---> Protocols ---> luci-proto-ppp
4、打开适用于VMware的VM Tools
Utilities ---> open-vm-tools #打开适用于VMware的VM Tools
Utilities ---> open-vm-tools-fuse #打开适用于VMware的VM Tools
5、第二次编译:
cd lede # 进入LEDE目录
git pull # 同步更新大雕源码
./scripts/feeds update -a && ./scripts/feeds install -a # 更新Feeds
rm -rf ./tmp && rm -rf .config # 清除编译配置和缓存
make menuconfig # 进入编译配置菜单
make -jn V=99 # 开始编译 n=线程数+1,例如4线程的I5填-j5
6、编译丰富插件时,建议修改下面两项默认大小,留足插件空间。( x86/64 )
Target Images ---> (16) Kernel partition size (in MB) #默认是 (16) 建议修改 (256)
Target Images ---> (160) Root filesystem partition size (in MB) #默认是 (160) 建议修改 (767.7)
lede源码链接
https://github.com/coolsnowwolf/lede
插件源码链接
src-git helloworld https://github.com/fw876/helloworld
src-git kenzo https://github.com/V2RaySSR/openwrt-packages
src-git small https://github.com/kenzok8/small
argon主题
https://github.com/jerrykuku/luci-theme-argon/
Lean源码编译
cd lede/package/lean
rm -rf luci-theme-argon
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
make menuconfig #choose LUCI->Theme->Luci-theme-argon
make -j1 V=s
隐藏VMware虚拟机中“安全删除硬件”图标
编辑虚拟机的配置文件添加
devices.hotplug = "false"