红联Linux门户
Linux帮助

ev3dev:设置自动登录wifi

发布时间:2016-08-31 14:50:34来源:linux网站作者:立体风
ev3有时系统不能自动输入wifi密码,在ev3主机上按来按去太麻烦了。看了下官网,解决方案如下:
 
主要是利用工具:connmanctl,这是一个交互式工具。
 
robot@ev3dev:~$ sudo connmanctl
Error getting VPN connections: The name net.connman.vpn was not provided by any
connmanctl> enable wifi
Enabled wifi
connmanctl> scan wifi
Scan completed for wifi
connmanctl> services
*AO Wired                ethernet_b827ebbde13c_cable
wifi_e8de27077de3_hidden_managed_none
AH04044914           wifi_e8de27077de3_41483034303434393134_managed_psk
Frissie              wifi_e8de27077de3_46726973736965_managed_psk
ruijgt gast          wifi_e8de27077de3_7275696a67742067617374_managed_psk
schuur               wifi_e8de27077de3_736368757572_managed_psk
connmanctl> agent on
Agent registered
connmanctl> connect wifi_e8de27077de3_41      # You can use the TAB key at this point to autocomplete the name
connmanctl> connect wifi_e8de27077de3_41483034303434393134_managed_psk
Agent RequestInput wifi_e8de27077de3_41483034303434393134_managed_psk
Passphrase = [ Type=psk, Requirement=mandatory ]
Passphrase? *************
Connected wifi_e8de27077de3_41483034303434393134_managed_psk
connmanctl> quit
 
有些东西是多余的,但大概就是这么一设吧。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23771.html