美文网首页
树莓派 WIFI 热点 AP

树莓派 WIFI 热点 AP

作者: _49_ | 来源:发表于2021-08-16 17:55 被阅读0次

参考:https://zhuanlan.zhihu.com/p/101089893

1.下载API代码到本地,并编译。

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

2. 安装依赖库

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

3. 创建WiFi热点

a. 通过命令行启动热点

$ sudo create_ap 无线网卡名 有线网卡名 热点名 密码

b. 通过create_ap服务启动

首先要修改create_ap的默认设置,即 sudo vim /etc/create_ap.conf

主要修改 “SSID=热点名称”,“PASSPHRASE=密码”。

其他保持默认就行。

可以看一下 /usr/lib/systemd/system/create_ap.service 文件

image

其中有一行:

ExecStart=/usr/bin/create_ap --config /etc/create_ap.conf

即服务启动及选择的配置文件。

~开启create_ap服务~

sudo systemctl enable create_ap

reboot重新开机,热点应该已经开启。

~恢复WIFI功能~

sudo systemctl disable create_ap

相关文章

网友评论

      本文标题:树莓派 WIFI 热点 AP

      本文链接:https://www.haomeiwen.com/subject/gvucbltx.html