这几天刷ax3600 想安装softethervpnserver但是 并没有找到可以直接安装的源里面也没有 只能自己编译了 这个教程适用于所有架构 因为貌似可以选择编译的架构 只要你选择的架构你是的路由器的编译好了安装了就可以使用
1、安装 Ubuntu 中的 Docker和screen
Ubuntu 自己就带着,安装的时候别忘记选 Docker就完事了!
先开一个虚拟终端 免得等太久 太难受了
screen -S by
2、用Docker 拉取编译环境的镜像:
Docker 上有现成镜像,看名称就知道,是一个叫timiil的盆友发布的。
docker pull timiil/coolsnowwolf-lede-builder
3、运行容器:
docker run -it -v /home/lede_output:/lede/bin timiil/coolsnowwolf-lede-builder
上面这个命令不但可以让你启动这个容器,还能直接进入
4、容器内运行编译:
make menuconfig //进入定制界面
注:
make menuconfig 选项配置(基本配置)
Target system (目标系统类型,即路由器CPU架构)
Subtarget (子目标,即路由器芯片型号)
Target Profile (目标文件,即路由器型号)
LuCI (LuCI界面设置)
ax3600是ARM架构的iqp8071a,所以选择:
Target system -> iqp807
然后就是选择自己需要的软件 按空格选。记得要括号里显示出“M”,而不是“*”,这样才能生成 ipk 安装包
6、开始运行编译:
编译前要记得安装相关的依赖库文件:
sudo apt update -y
sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk -y
sudo apt-get install subversion mercurial -y
sudo apt-get install ccache -y
这里注意 我在这里遇到这个问题
checking whether mknod can create fifo without root privileges... configure: error: in /root/lede/build_dir/host/tar-1.29':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See config.log' for more details make[3]: *** [/root/lede/build_dir/host/tar-1.29/.configured] Error 1 make[3]: Leaving directory /root/lede/tools/tar'
make[2]: *** [tools/tar/compile] Error 2
make[2]: Leaving directory /root/lede' make[1]: *** [/root/lede/staging_dir/target-mipsel_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnnyyyynyyyyyyyyyyyyyyynnyynynnyyynny] Error 2 make[1]: Leaving directory /root/lede'
make: *** [world] Error 2
root@ubuntu:~/lede#`
在github上找到了答案说是不能root直接编译地址
我们直接不检测是不是root就行了 需要在命令行执行这个
export FORCE_UNSAFE_CONFIGURE=1
如果你第一次,之前没有任何编辑过,你需要先make一边,这个过程看配置,从30分钟到3小时不等,看硬件,看人品
make
如果一切顺利,跳出输入框前不会有任何 error提示,那么恭喜你,可以进行下一步了!
make package/lean/softethervpn5/compile V=99 //开始编译单独安装包
如果顺利通过编译,就可以在宿主机/home/lede_output内收取编译标的物了。
注:是安装有docker上的ubuntu宿主机目录哦!很方面就能获得
在这文件目录内获得了两个ipk文件,名称都带有“softether”字眼,那就是接下来要安装到openwrt上的两个包了!
本文参考的一些连接:
https://github.com/coolsnowwolf/lede/tree/master/package/lean
https://www.right.com.cn/forum/thread-598816-1-1.html
https://www.right.com.cn/forum/thread-830175-1-1.html
https://www.right.com.cn/forum/thread-179557-1-1.html
https://www.meiqiantu.com/21524.html
Comments | NOTHING