电子说
1. 修改 /etc/network/interfaces,添加无线网卡配置:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid myssid
wpa-psk mypassword
dns-nameservers 192.168.0.1
2.
使用 static dns:
sudo rm /etc/resolv.conf
sudo vi /etc/resolv.conf
添加:
nameserver 192.168.0.1
3. 先 disable NetworkManager:
charles@china:~$ sudo systemctl stop NetworkManager.service
charles@china:~$ sudo systemctl disable NetworkManager.service
4. 重启网络服务:
sudo systemctl restart networking.service
Wi-Fi配置成功
全部0条评论
快来发表一下你的评论吧 !