From 045a17462f5218f29b423ffc90045bd24c14e0ea Mon Sep 17 00:00:00 2001 From: Dengfeng Liu Date: Tue, 14 Dec 2021 17:53:15 +0800 Subject: [PATCH] =?UTF-8?q?Create=20ubuntu=E4=B8=8A=E7=BC=96=E8=AF=91apfre?= =?UTF-8?q?e-wifidog=E6=95=99=E7=A8=8B.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/ubuntu上编译apfree-wifidog教程.md | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 doc/ubuntu上编译apfree-wifidog教程.md diff --git a/doc/ubuntu上编译apfree-wifidog教程.md b/doc/ubuntu上编译apfree-wifidog教程.md new file mode 100644 index 0000000..e865691 --- /dev/null +++ b/doc/ubuntu上编译apfree-wifidog教程.md @@ -0,0 +1,52 @@ +> 编译环境 + +ubuntu 20.04 LTS版本 + +> 安装依赖库 ++ 安装libubox + +```shell +git clone https://github.com/xfguo/libubox.git +cd libubox +cmake -DBUILD_LUA=off +sudo make install +``` + ++ 安装libuci + +```shell +git clone https://github.com/jkjuopperi/uci.git +cd uci +cmake -DBUILD_LUA=off +sudo make install +``` ++ 安装其他依赖库 + +```shell +sudo apt-get update -y +sudo apt-get install -y libjson-c-dev +sudo apt-get install -y libssh2-1-dev +sudo apt-get install -y libevent-dev +``` + ++ 安装支持apfree wifidog的iptables库 + +```shell +git clone https://github.com/liudf0716/iptables-apfree-wifidog.git +cd iptables-apfree-wifidog +./autogen.sh +./configure --disable-nftables +make +sudo make install +``` + +> 编译apfree wifidog + +```shell +git clone https://github.com/liudf0716/apfree_wifidog.git +cd apfree_wifidog +mkdir build +cd build +cmake .. +make +```