先查看无线网卡是否有驱动:
搜索Realtek驱动:
1 | apt-cache search realtek |
显示如下:
1 | firmware-realtek - Binary firmware for Realtek wired and wireless network adapters |
安装Realtek驱动:
1 | sudo apt-get install firmware-realtek |
接着编辑/etc/wpa_supplicant/wpa_supplicant.conf这个文件
添加网络相关配置,类似:
1 | network={ |
还要修改下/etc/network/interfaces文件,把无线网卡设为dhcp方式获取地址
方法是将iface wlan0 inet manual这一行注释掉,改为
1 | iface wlan0 inet dhcp |
基本上全部完成了,重启无线网卡即可:
1 | ifup wlan0 |