我遵循这教程在UbuntuServer22.04中将Raspberry Pi4设置为wifi扩展程序,在步骤8中,本教程要求我调整/etc/hostapd/hostapd.conf中的hostapd配置,我注意到hostapd.conf不存在于/etc/hostapd中,是不是遗漏了什么?
我试着检查是否安装了hostapd,并注意到以下内容:
ubuntu@ubuntu:/etc/hostapd$ sudo apt install hostapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
hostapd is already the newest version (2:2.10-6ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.发布于 2023-03-11 12:16:41
hostapd-包没有在hostapd.conf中提供/etc/hostapd/,您需要创建自己的。但也有一些例子。
您可以从将/usr/share/doc/hostapd/examples/hostapd.conf复制到/etc/hostapd开始:
sudo cp /usr/share/doc/hostapd/examples/hostapd.conf /etc/hostapd/你需要修改它。这个例子包含了很多注释来解释这个文件。
您也可能希望在/usr/share/doc/hostapd/上阅读文档,但是在示例中启动注释应该是可以的。
在这里可以找到更多的例子:
https://github.com/morrownr/USB-WiFi/tree/main/home/AP_模式
这些并不包括如此详细的评论,而是针对不同需要的几个不同的例子。
https://askubuntu.com/questions/1419138
复制相似问题