利用create_ap软件创建无线AP

Linux && 树莓派

通过 github 安装

git clone https://github.com/oblique/create_ap.git
cd create_ap
sudo make install

就这样安装好了

安装依赖库

sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq

启动无线AP:

sudo create_ap wlan0 eth0 热点名 密码

上面的命令中, wlan0eth0 可以换成你自己的机器网卡名称,获取方式参见下面:
通过ip addr 查看网卡名称
一般像 wlp2s0 这样 以 wl 开头的就是无线网卡,所以,开启命令也可以是:

create_ap wlp2s0 wlp2s0 hello-world Password@778

开机自启

将上面的启动命令添加到 /etc/rc.local 就可以开机自启动了

cat create_ap wlp2s0 wlp2s0 hello-world Pwd123456778 > /etc/rc.local
原文地址:https://www.cnblogs.com/mslagee/p/10103351.html