参考链接
https://github.com/coolsnowwolf/lede
https://github.com/xiaorouji/openwrt-passwall
https://github.com/jerrykuku/luci-theme-argon/tree/18.06
https://github.com/jerrykuku/luci-app-vssr
https://www.right.com.cn/forum/thread-3682029-1-1.html
环境
kali2020.2
因为需要下载很多东西,并且有些东西是国外源,所以可以考虑使用全局呆李
下载大概两个多小时
编译大概5-6分钟
命令
apt-get update
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
useradd test
passwd test
su test
cd /tmp
git clone --depth=1 https://github.com/coolsnowwolf/lede
cd lede/package/lean/
rm -rf luci-theme-argon
git clone --depth=1 -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
git clone --depth=1 https://github.com/jerrykuku/lua-maxminddb.git
git clone --depth=1 https://github.com/jerrykuku/luci-app-vssr.git
cd ../
git clone --depth=1 https://github.com/xiaorouji/openwrt-passwall.git
cd ../
echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default
./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig
make menuconfig
./scripts/diffconfig.sh
make -j8 download V=s
make -j$(($(nproc) + 1)) ||make -j1 V=s
rm -rf ./tmp && rm -rf .config#重新配置时使用
make defconfig#dff配置
make menuconfig#保存配置
./scripts/diffconfig.sh#对比.config差异