mslagee

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

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-01-11
  • 2021-07-01
  • 2021-04-21
  • 2022-01-02
  • 2021-12-28
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2021-08-15
  • 2021-11-17
  • 2022-12-23
  • 2021-10-26
  • 2021-05-19
相关资源
相似解决方案