RASPBERRY PI WiFi configuration

Source: Internet
Author: User

Raspberry Pi to teach you to install the USB wireless card on the Raspberry Pi support WiFi

Raspberry Pi Although already has the wired network card, but did not configure the wireless network card, the mobility is not strong enough, fortunately, the machine is equipped with 2 USB ports, of course, one out to the WiFi wireless card use, so that the use of small pies is more convenient!
I have a netcore lei ke NW336 wireless card, very cheap kind, as if the chip is Realtek, plug in the USB test, found that the indicator on the network card flashing, feel the chance, immediately landing system toss:
(a) Check the USB device type to find out if the USB wireless card has been recognized by the system. Run Lsusb
[Email protected]raspberrypi ~ $ Lsusb
Bus 001 Device 002:id 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 001 Device 003:id 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004:id 0bda:8176 Realtek Semiconductor Corp rtl8188cus 802.11n WLAN Adapter "=========
Congratulations, my USB wireless card has been recognized by the normal!

(b) Check to see if the kernel module supports your wireless card. Run Lsmod
[Email protected] ~ $ lsmod
Module Size used by
snd_bcm2835 15846 0
SND_PCM 77560 1 snd_bcm2835
Snd_seq 53329 0
Snd_timer 19998 2 Snd_pcm,snd_seq
Snd_seq_device 6438 1 Snd_seq
SND 58447 5 Snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
Snd_page_alloc 5145 1 SND_PCM
Leds_gpio 2235 0
Led_class 3562 1 Leds_gpio
8192CU 489381 0 "========
Congratulations, the kernel module for my wireless card has been loaded automatically.

(iii) View wireless device configuration, run Iwconfig

[Email protected] ~ $ iwconfig
Wlan0 unassociated Nickname: "<[email protected]>"
mode:managed frequency=2.412 GHz Access point:not-associated
sensitivity:0/0
Retry:off RTS Thr:off Fragment Thr:off
Power Management:off
Link quality:0 Signal level:0 Noise level:0
Rx Invalid nwid:0 Rx Invalid crypt:0 Rx Invalid frag:0
Tx Excessive retries:0 Invalid misc:0 Missed beacon:0

Lo no wireless extensions.

Eth0 no wireless extensions.

(iv) Configuring the Network interface settings
Using the VI command or the nano command to edit the contents of the/etc/network/interfaces file, it is best to ensure that the file contents are shown below.

Auto Lo
Iface Lo inet Loopback

Iface eth0 inet DHCP

Auto Wlan0
Allow-hotplug Wlan0
Iface Wlan0 inet Manual
Wpa-roam/etc/wpa_supplicant/wpa_supplicant.conf
Iface Default inet DHCP

If you do not want to set the DHCP dynamic IP, you can also set the static IP, the file contents are as follows:
Auto Lo
Iface Lo inet Loopback

Iface eth0 inet DHCP

Allow-hotplug Wlan0
Iface Wlan0 inet Manual
Address 192.168.1.100
Netmask 255.255.255.0
Gateway 192.168.1.1
Wpa-roam/etc/wpa_supplicant/wpa_supplicant.conf

(v) Configure the wireless card settings file
Edit the/etc/wpa_supplicant/wpa_supplicant.conf file to make sure the content is as follows:
Note The main changes are IFI access point name and WiFi access password.

network={
ssid= "WiFi access Point Name"
Proto=rsn
Key_mgmt=wpa-psk
PAIRWISE=CCMP TKIP
GROUP=CCMP TKIP
psk= "WiFi access password"
}

(vi) After all the configuration, restart the Raspberry Pi, you should be able to use the WiFi normally.
sudo reboot
Wait for the Raspberry Pi reboot to complete, if you are DHCP, you can log on to your router to view the IP address of the WiFi assignment, or the static IP you set up, you should be able to use the wireless network at this time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.