操作系统:ubuntu18.04.5
安装方法
1 阿里云一秒钟镜像
ubuntu镜像_ubuntu下载地址_ubuntu安装教程-阿里巴巴开源镜像站
2 预装
sudo apt-get install build-essential libssl-dev libjson-c-dev gengetopt
sudo apt install devscripts debhelper
3 制作coova chilli的安装包
我这里用预制包
https://github.com/pan2za/coova-chilli/releases/download/1.6/coova-chilli_1.6_amd64.deb
本猪编译,安装时候不含haserl依赖不会报告错误
wget https://github.com/pan2za/coova-chilli/releases/download/1.6/coova-chilli_1.6_amd64.deb
dpkg -i https://github.com/pan2za/coova-chilli/releases/download/1.6/coova-chilli_1.6_amd64.deb
4 安装haserl(此程序提供类似php的cgi网关操作)
apt install -y haserl
5 配置部分参考前一排文字
cp /etc/chilli/defaults /etc/chilli/config
config的配置
HS_WANIF=ens192 # WAN Interface toward the Internet
HS_LANIF=ens160 # Subscriber Interface for client devices
HS_MACAUTH=on # To turn on MAC Authentication
其他部分默认的
default的配置
# Same principal goes for HS_UAMHOMEPAGE.
#HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html
6 启动
systemctl start chilli
systemctl status chilli
此时应该启动结果是active的