所以插入後,lsusb (package: usbutil):
Bus 002 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. ...
lsmod 的話:
Module Size Used by 8188eu 506733 0
這時候,用 ifconfig -a 來看,已經可以看到 wlan0 這個 interface. 只是還沒啟動。
所以 follow : http://www.fars-robotics.net/ 其中,不用 wpa_supplicant (package: wpasupplicant) 的方法。
修改 /etc/network/interfaces:
auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "Your-Network-Name" wpa-psk "Your-Network-Password"然後,用command: ifup wlan0...
就可以看到 wlan0 起來了 .. 拿到 ip 了。
補一下http://www.fars-robots.net 中,用 wpa_supplicant 的作法:
-- copy..
Configuring your wifi network for Raspbian Jessie.
Default /etc/network/interfaces file as supplied in the raspbian jessie image - do not edit /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback iface eth0 inet manual allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.confEdit the file /etc/wpa_supplicant/wpa_supplicant.conf and add the network={.....} section. Use the command sudo nano /etc/wpa_supplicant/wpa_supplicant.conf to open and edit the file. Exit the editor and save the file using keys cntl-X, Y, Enter.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="Your-Network-Name" psk="Your-Network-Password" }You may add additional network={.....} sections defining different networks if your Pi is mobile and you carry it around with you. This will allow you to connect to these other networks at various different locations without needing to change your set up.