一次自编译openwrt的ipk(vlmscd)
虚拟机系统ubuntu22.04
安装编译软件
sudo apt update
sudo apt install build-essential gawk gcc-multilib flex git gettext libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev clang wget file subversion
git设置全局代理
git config --global http.proxy http://192.168.10.4:10800
解压sdk
tar -xvf openwrt-sdk-19.07.10-bcm53xx_gcc-7.5.0_musl_eabi.Linux-x86_64.tar.xz
mv openwrt-sdk-19.07.10-bcm53xx_gcc-7.5.0_musl_eabi.Linux-x86 openwrt-sdk-19.07.10
cd openwrt-sdk-19.07.10/package
克隆源代码到sdk根目录的package文件夹里
git clone https://github.com/Wind4/vlmcsd
cd ..
下载仓库
./scripts/feeds update -a && ./scripts/feeds install -a
提前下载依赖,可以节约时间
make download -j8 V=s
编译luci
网友建议
make package/feeds/luci/luci-base/compile V=99
make package/vlmscd/vlmscd/compile V=99
/usr/bin/vlmcsd -i /etc/vlmcsd.ini -j /etc/vlmcsd.kmd -p /tmp/vlmcsd.pid -l syslog -L 192.168.10.1:1688
slmgr /skms 设置kms服务器
利用powershell进入C:\Program Files\Microsoft Office\Office16 查看状态cscript.exe .\OSPP.VBS /dstatus