Ubuntu VM环境,其中wpa_supplicant


0

我正在遵循Ubuntu VM环境中的某些说明。它说要修改“wpa_supplicant.conf”文件。第一个命令是:

ctrl_interface=/var/run/wpa_supplicant

但是,在此位置此工具不存在。然后我做了一个:

whereis wpa_supplicant

它给了我2个位置(见下面的截图):

在此输入图像描述

我应该选择哪个地点?有什么不同?


我注意到在许多较新的无线驱动程序中,您可能不需要使用wpa_supplicant - 您可以只使用网络管理器或只是在/ etc / networks中获取信息。这可能最终节省了大量的工作。
Journeyman Geek

Answers:


0

你不能whereis用来定位wpa_supplicant.conf,因为,正如男人所说:

  whereis - locate the binary, source, and manual page files for a command

和wpa_supplicant.conf不是命令,只是一个文件。您可以通过find命令找到它,如下所示:

 find / -type f -name wpa_supplicant.conf -print

我的Kubuntu系统回复

 # find / -type f -name wpa_supplicant.conf -print
 /etc/dbus-1/system.d/wpa_supplicant.conf

如果你的wpa_supplicant.conf副本不在/etc/dbus-1/system.d中,上面的命令会告诉你它的正确位置。


0

在此配置文件中,ctrl_interface不是您应该提供给wpa_supplicant的二进制文件的位置,而是它应该存储某些文件的位置,例如wpa_guiwpa_cli用于与之通信的其他程序wpa_supplicant

因此,如果wpa_supplicant没有运行,这个位置就不存在是完全自然的,程序会在启动时创建它。

/var/run/wpa_supplicant是经典的位置。您不需要更改它,除非在特殊情况下。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.