首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >/etc/hostapd/缺少hostapd.conf

/etc/hostapd/缺少hostapd.conf
EN

Ask Ubuntu用户
提问于 2022-07-17 11:59:03
回答 1查看 1.3K关注 0票数 1

我遵循教程在UbuntuServer22.04中将Raspberry Pi4设置为wifi扩展程序,在步骤8中,本教程要求我调整/etc/hostapd/hostapd.conf中的hostapd配置,我注意到hostapd.conf不存在于/etc/hostapd中,是不是遗漏了什么?

我试着检查是否安装了hostapd,并注意到以下内容:

代码语言:javascript
复制
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.
EN

回答 1

Ask Ubuntu用户

发布于 2023-03-11 12:16:41

hostapd-包没有在hostapd.conf中提供/etc/hostapd/,您需要创建自己的。但也有一些例子。

您可以从将/usr/share/doc/hostapd/examples/hostapd.conf复制到/etc/hostapd开始:

代码语言:javascript
复制
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_模式

这些并不包括如此详细的评论,而是针对不同需要的几个不同的例子。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1419138

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档