樹莓派如何配置無線網卡并連接wifi?
一 設置有線網卡靜態IP:sudonano /etc/dhcpcd.conf 在文件結尾加入以下內容:
interface wlan0static ip_address=192.168.1.141/24static router=192.168.1.
1 static domain_name_serverrs=192.168.1.1 10.18.0.1 # DNS二 配置wlan 輸入 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf在尾部添加wifi賬號和密碼network={ssid=""psk=""}三 設置 interfaces輸入 sudo nano /etc/network/interfacessource-directory /etc/network/interfaces.dauto loiface lo inet loopbackiface eth0 inet manualallow-hotplug wlan0iface wlan0 inet dhcp # 這里改為dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.confallow-hotplug wlan1