玩转ubuntu携带默认supplicant
作者:互联网
工作中用到p2p,想着如何自己可以在自己的电脑上自如和联系p2p,所以想到了ubuntu自带的supplicant,但是一开始wpa_cli死活连不上
1、ubuntu上的wpa_supplicant参数如下
wangqingyuan@wangqingyuan-OptiPlex-7040:~$ ps aux | grep supplicant
root 1289 0.0 0.0 35120 8128 ? Ss 10:42 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
wangqin+ 7767 0.0 0.0 14036 828 pts/0 S+ 14:38 0:00 grep --color=auto supplicant
2、想着直接用wpa_cli命令行连接上wpa_supplicant
一开始一直连不上,以为是wpa_supplicant的参数问题,错误显示如下:
wangqingyuan@wangqingyuan-OptiPlex-7040:~$ wpa_cli -iwlx7cdd905274b4
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributorsThis software may be distributed under the terms of the BSD license.
See README for more details.Interactive mode
Could not connect to wpa_supplicant: wlx7cdd905274b4 - re-trying
解决:
偶尔的机会,突然想起可能wpa_cli没有权限吧,所以加上了sudo,奇迹般的可以了。
wangqingyuan@wangqingyuan-OptiPlex-7040:~$ sudo wpa_cli -i wlx7cdd905274b4
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributorsThis software may be distributed under the terms of the BSD license.
See README for more details.Interactive mode
> scan
OK
3、自己网上买了一个网卡,只是2.4G的,想着用这个设备的p2p,结果不能用
> p2p_find
FAIL
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
接下来,有空看下如何开始这个的p2p吧....
标签:0.0,cli,supplicant,wpa,玩转,ubuntu,wangqingyuan,p2p 来源: https://blog.csdn.net/yudelian/article/details/119109484