วันจันทร์ที่ 8 ธันวาคม พ.ศ. 2557

Raspberry Pi connect USB Wifi

Raspberry Pi connect USB Wifi



Hardware 
USB Wifi for Raspberry Pi (Chip Ralink RT5370)

 


Edit Network Setting ( use nano editor )

sudo nano /etc/network/interfaces


Add Your Network

auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
   wpa-ssid "Your Network SSID"
   wpa-psk "Your Password"

To save the file press Ctrl+O 
exit nano by pressing Ctrl+X


Reload Network

sudo service networking reload


Show your IP Address

ifconfig

wlan0 Link encap:Ethernet HWaddr 80:1f:02:aa:12:58
      inet addr:192.168.0.105 Bcast:192.168.1.255 Mask:255.255.255.0
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:154 errors:0 dropped:173 overruns:0 frame:0
      TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:32399 (31.6 KiB) TX bytes:13036 (12.7 KiB)



For Raspberry Pi3

Open the wpa-supplicant configuration file in nano:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Go to the bottom of the file and add the following:

network={
        ssid="YOUR_NETWORK"
        psk="YOUR_PASSWORD"
        key_mgmt=WPA-PSK
}

<< บทความต่อไป >>


My Website
email : info@softpowergroup.net   Tel .081-6452400


ไม่มีความคิดเห็น:

แสดงความคิดเห็น