Raspberry Pi, a fun pie: Fifth season wireless card

Source: Internet
Author: User

Raspberry PI board because the cost is not add wireless module, do not want to be bound by the network cable, we need to own a USB wireless module. When buying the board, see the official recommended Edup wireless card, the price is appropriate, directly started.


Using REALTEK8188 chip, 802.11n, transmission speed 150Mbps, the applicable range of 130 square meters.

Plug it into any U-port, such as:


Because the shell blocked the power jack, so had to bare first, the figure has been powered, the other end of the HDMI TV.

The next task is to get this wireless card to work and connect to the wireless router I've already turned on.

First, Wpa_gui

After entering the Raspbian, we can see a WiFi config icon on the desktop, double-click to launch it and go to the Wpa_gui interface.


Adapter has recognized Wlan0, indicating that the system already has the driver of this wireless network card, of course, we can use the LSUSB command to see:


The last Realtek is the wireless card.

To speak of this wpa_gui, it is the famous wpa_supplicant (an open source wireless network Configuration tool, Android also use it to manage WiFi) graphical interface, using QT development. But we think the default version is very low, such as:


Now, let's scan the attached WiFi hotspot and click the Scan button.


Locate your target from the SSID list, double-click it to open the configuration page, such as:


SSID is the hotspot name, authentication is no line by using the authentication method, here is WPA2-PSK, followed by encryption is WPA2-PSK encryption algorithm, shown in the ccmp.

Open the drop-down list, and an encryption algorithm is TKIP. The problem is here, because this is two outdated cryptographic algorithms. WPA2-PSK now recommends AES encryption because it is more secure and faster to transfer. So, here is a contradiction, my wireless routing is AES encryption, and Wpa_gui does not have this option, then the connection must not be. To solve this problem, I changed the non-line AES encryption to TKIP.

Next is the PSK, where you enter the WiFi password. Click on Add, and the hotspot you just added will appear in the network on the main screen. Then click Connect, and if all goes well it will connect successfully, such as:


Try the Internet with your own browser, success! Such as:


Second, the terminal configuration

1.wpa_gui without the lack of AES encryption, we can solve by directly using our own configuration wpa_supplicant way.

1. Edit the/etc/network/interfaces file

[Email protected] ~ $ sudo vim/etc/network/interfaces

To make the following changes, please note that reference:

#allow-hotplug wlan0#iface wlan0 inet manualauto wlan0iface wlan0 inet Dhcpwpa-conf/etc/wpa.conf#wpa-roam/etc/wpa_ Supplicant/wpa_supplicant.confiface Default inet DHCP

2. Create file:/etc/wpa.conf

[Email protected] ~ $ sudo vim/etc/wpa.conf

Add the following content:

network={        ssid= "linc"        KEY_MGMT=WPA-PSK        psk= "[Email protected]#$"}
Restart the Raspberry Pi, check the network status, confirm that the connection is successful.

Alternatively, you can use the WPA_CLI command line client to configure it, please refer to this article in the Raspberry Pi lab.

Well, now that our Raspberry Pi is ready to go online, the more interesting gameplay is waiting for us. Go ahead and explore!


Reference:

http://blog.lixin.me/archives/29694/

http://blog.alexchi.me/archives/751

http://www.douban.com/note/449341604/

Http://www.eeboard.com/bbs/thread-5191-1-1.html

Http://shumeipai.nxez.com/2013/09/30/use-wpa-cli-command-line-to-configure-wi-fi-wireless-lan.html

Http://wireless.kernel.org/en/users/Documentation/wpa_supplicant

http://www.raspbian.org/


Raspberry Pi, a fun pie: Fifth season wireless card

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.