yes! After browsing the Internet, I asked this question myself. But the problem here is that no solution really works for me.
Research sometimes gets out of control and makes me deviate from my actual goal. This puts me in a situation where I try to solve a problem that didn't exist at first.
Therefore, this paper summarizes how to obtain wpa-psk WiFi, establish a network on raspberry PI 2 and run quickly.
Let's connect PI 2!
Step 2: hardware and software settings
The reason why the settings are listed here is that some of my hardware has been used for at least 2 years, so it is best to clearly indicate that this solution has been tested and tested on a limited combination of hardware and software.
So far, I don't have the latest raspberry PI 3 development board (built-in WiFi), so this version of PI is not within the scope of this ible
Similarly, the very old versions of raspberry PI a and B have not been tested and are therefore out of scope.
The following is a list of the hardware and software I currently use:
Raspberry PI 2, model B , with raspbian version of at least 1.5 years
Raspberry PI 2, model B with raspbian Jessie version of at least one year
Construction of raspberry PI 2, model B and the latest version of popular retropie OS
The ubiquitous EDIMAX wireless USB dongle, few of whom have been lying in my parts box for several years
A quick (but outdated) comparison of various raspberry PI boards can be found here.
Step 3: get the research back on track
During the search, solut I discussed on the Internet and said that some WiFi USB dongles are made of "exotic" chipsets. Configuring them to work normally is not a direct task.
If I did have any such chips, that would be right. Exotic USB dongle. However, if my EDIMAX USB adapter has worked properly in the past two years and enabled it to work with newer WiFi networks, I need to study the chipset, then I know my research has deviated from the goal. p》 Therefore, if you have any widely used USB dongle (such as EDIMAX), the solution should work without deep understanding of the details of the chipset and crazy micro level research
Step 4: make changes to the WiFi network
I have made several attempts to make PI use the network upgraded to wpa2-psk [AES] standard with my WiFi.
For some reason, all configurations do not work. After more research, I decided to gradually reduce the WiFi network to support the earlier wpa-psk [TKIP] standard.
By making some quick changes to the WiFi settings of the router, I can set the home WiFi network to comply with the wpa-psk [TKIP] wpa2-psk [AES] standard.
The password (not with the passphrase), which was originally used for the old WEP settings, was nearly 30 characters long, so I decided to keep it for the new WiFi settings as well.
Step 5: use WPA_ Fight with the supplicant utility
Since I am using the raspbian OS version with a history of at least two years, I decided to refer to the WPA at that time_ Supplicant document. It can be found locally on my PI.
/usr/share/doc/wpasupplicant/examples
Based on this document, I am interested in WPA_ The supplicant.conf file has made many settings changes.
Anyway, how do I change the settings, PI just refuses to connect to the Internet.
Although the configuration file exists in the following path, the output error message often reports a lack of WPA_ Supplicant file or directory:
/etc/wpa_ supplicant/wpa_ supplicant.conf
In addition, I can use nano to edit this file and configure my WiFi settings.
After trying all the configurations listed, nothing has changed
The next available option is by completely ignoring WPA_ The supplicant utility to establish a WiFi connection.
Step 6: missing WPA_ Supplicant utility!
The next option is to bypass WPA completely_ The supplicant utility and directly use the network interface configuration located at this path:
/etc/network/interfaces
This will lead us to the discussion of password vs. password:
I want to make this point clear here, because it is an aspect of my complete misunderstanding.
Because my WiFi has been set as an outdated WEP standard for a long time, I mistakenly think that the "password" is the same as the "password" setting!
incorrect!
After more research, it is clear that the passphrase needs to use the current WiFi SSID and password (using a combination) and is known as WPA_ The utility of passphrase is as follows:
$ sudo wpa_ passphrase SSID_ NO_ DOUBLE_ QUOTES PASSWORD_ NO_ DOUBLE_ QUOTES
Note that you should specify the name of the SSID and WiFi password, not in double quotes.
Running the above command produces output similar to the following:
network=
ssid=MY_SSID_INSIDE_DOUBLE_QUOTES
#psk=MY_VERY_LONG_PASSWORD_INSIDE_DOUBLE_QUOTES
psk=9d24321fad5e92de16581d4129g1b8dd2f47c6510953a68e95b1b6d99f5e95ef
And WPA_ Instead of entering the passphrase command, the SSID and the original password are output and enclosed in quotation marks.
However, the original password will be automatically commented out with the symbol
The third line of the output, also known as PSK (short for pre shared key), is a passphrase. Unlike the other two outputs, the passphrase is not enclosed in quotation marks.
The passphrase will be different from the original password, which is what we will use to configure WiFi settings
Step 7: configure WiFi settings
The next step is to use the nano text editor to edit the / etc / network / interfaces configuration file and insert PSK settings.
$ sudo nano /etc/network/interfaces
Comment out or delete WPA_ The supplicant setting is marked with. Add useful comments to record the intent of setting changes:
#LOSE the wpa_ supplicant utility by commenting out these settings
#allow-hotplug wlan0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_ supplicant/wpa_ supplicant.conf
#iface default inet dhcp
Configure WiFi settings using the PSK value generated in the last step:
# BYPASSED wpa_ supplicant - Wifi configuration defined directly this file
# Set the iface setting to use dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid MY_ SSID_ NO_ DOUBLE_ QUOTES
wpa-psk 9d24321fad5e92de16581d4129g1b8dd2f47c6510953a68e95b1b6d99f5e95ef
Save and close the / etc / network / interfaces file.
After saving the settings, the configuration file should be similar to the file in the image.
Step 8: restart WiFi on PI
Use ifdown to disconnect the network interface command:
$ sudo ifdown wlan0 Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
Listening on LPF/wlan0/74:da:38:0f:9b:c8
Sending on LPF/wlan0/74:da:38:0f:9b:c8
Sending on Socket/fallback|
DHCPRELEASE on wlan0 to 10.0.0.1 port 67
Restart the network interface using the ifup command:
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
Listening on LPF/wlan0/74:da:38:0f:9b:c8
Sending on LPF/wlan0/74:da:38:0f:9b:c8
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 10.0.0.1
DHCPACK from 10.0.0.1 bound to 10.0.0.15 -- renewal in 38873 seconds.
Although the "operation not allowed" message is displayed in the output, PI can still access your router and connect to the network!
Perform several simple ping operations. One hit the local router, the other hit something like google.com in the public domain.
Press Ctrl C at any time to end the Ping test.
Step 9: next steps
The final confirmation is to open the browser on raspberry PI and surf the Internet.
When working on my raspberry PI B board through the Internet, I can successfully copy this solution to the other two raspberry PI B boards!
Now my PI board has returned to normal operation. The next step is to try to use the solution with wpa2-psk [AES] WiFi network. There are more lenses.
Bao’an District Shenzhen City, China
+86 189 3806 5764
{"site":{"site_id":3908,"site_type":11,"site_domain":"laptoprepair.com","domain_mode":1,"original_domain":"laptoprepair.com","language_code":"en","is_init_domain":0,"is_shop":true,"is_ssl":1,"lang_prefix":"/","animate_name":"none","compress__ratio":"100,100,100","img__dpi":"false"},"page":{"page_id":24212,"page_type":"ai_article_detail","page_code":423,"page_url":"/how-to-set-up-the-work-and-solution-of-raspberry-pie-2-with-wpa-wifi-network.html","page_source":"","allowAnimat":0,"content_id":108027,"content_type":5,"detail_thumb":"https://img.yfisher.com/1637047848351.jpg","detail_title":"How to Set Up the Work and Solution of Raspberry Pie 2 with WPA WiFi Network","moq":1},"translateList":{"A new item has been added to your Shopping Cart":"A new item has been added to your Shopping Cart","account":"account","Account Name":"Account Name","Account Number":"Account Number","Account is not exists":"Account is not exists","account security":"account security","Active Commission":"Active Commission","Add a review on the product":"Add a review on the product","Add to":"Add to","Add to Cart":"Add to cart","address book":"address book","affiliate guidance":"Affiliate Guidance","affiliate links":"affiliate links","all":"all","All Orders":"All Orders","Already commented":"Already commented","Are you sure to cancel this withdrawal?":"Are you sure to cancel this withdrawal?","Are you sure to delete the selected items?":"Are you sure to delete the selected items?","Are you sure you want to delete it?":"Are you sure you want to delete it?","Awaiting Payment":"Awaiting Payment","Awaiting Shipment":"Awaiting Shipment","Back":"Back","Bank Transfer":"Bank Transfer","bank address":"bank address","basic information":"basic information","Buy":"Buy","Buy Now":"Buy Now","bank name":"bank name","city":"city","Copy successful":"Copy successful","Copy failed":"Copy failed","Can Extract":"Can Extract","Currency Type":"Currency Type","Cancel":"cancel","Cancel the success":"Cancel the success","Cancelled":"Cancelled","Choose a country":"Choose a country","Choose Coupon":"Choose Coupon","Choose items":"Choose items","Clear":"Clear","Clear Search":"Clear Search","Comment Successful!":"Comment Successful!","Comment Failed!":"Comment Failed!","Commission Details":"Commission Details","Commission":"Commission","Commission Status":"Commission Status","commodity payment":"commodity payment","completed":"completed","Completed":"Completed","Condition not met":"Condition not met","Confirm":"Confirm","Confirm password is inconsistent with new password":"confirm password is inconsistent with new password","Congratulations":"Congratulations","Congratulations! You are got a coupon.":"Congratulations! You are got a coupon.","Congratulations! You are got all coupons.":"Congratulations! You are got all coupons.","Continue":"Continue","Continue Shopping":"Continue Shopping","Copy the code and use it directly in the shopping cart.":"Copy the code and use it directly in the shopping cart.","Country":"Country","Coupon code":"Coupon code","Coupon List":"Coupon list","Date":"Date","days after receiving":"days after receiving","Design customization":"Design customization","Do not use any discount":"Do not use any discount","Earliest":"Earliest","Export successful":"Export successful","Export failed":"Export failed","email":"email","email format does not match":"email format does not match","Estimated Delivery Time":"Estimated Delivery Time","Effective Order Count":"Effective Order Count","Effective Sale Amount":"Effective Sale Amount","Expense":"Expense","expired":"expired","export a report?":"export a report?","Failed to upload files.":"Failed to upload files.","FAQ":"FAQ","Find Parts":"Find Parts","for order over":"for order over","Free":"Free","Free Quote & Information Request":"Free Quote & Information Request","Free Shipping":"Free Shipping","Get":"Get","Get coupons":"Get coupons","Get discount":"Get discount","Get it":"Get it","Get it after logging in and use it in the shopping cart.":"Get it after logging in and use it in the shopping cart.","Go to Page":"Go to Page","Highest Price":"Highest Price","home":"home","Hot Sale":"Hot Sale","Income":"Income","Incorrect form format":"Incorrect form format","Inquiry":"Inquiry","join guide":"join guide","Last 30 days":"Last 30 days","Last 7 days":"Last 7 days","Links report":"Links report","Loading":"Loading","Lowest Price":"Lowest Price","Match Product":"Match Product","Merchant Free Shipping":"Merchant Free Shipping","message":"message","Most Popular":"Most Popular","my account":"my account","my coupons":"my coupons","my inquiry":"my inquiry","my orders":"my orders","my reviews":"my reviews","my wishlist":"my wishlist","name":"name","New Arrival":"New Arrival","Newest":"Newest","No Quotation":"No Quotation","No time limit":"No time limit","Not deleted":"Not deleted","not valid yet":"not valid yet","Off":"Off","Offers and Discounts":"Offers and Discounts","ok":"ok","Only DOC,DOCX,PDF,PNG,JPEG and JPG files can be uploaded":"Only DOC,DOCX,PDF,PNG,JPEG and JPG files can be uploaded","optional":"optional","order notes":"order notes","Order over":"Order over","order id":"order id","order status":"order status","order amount":"order amount","Orders Report":"Orders Report","Other":"Other","Password contains at least numbers and letters length should be 6-20":"password contains at least numbers and letters length should be 6-20","Password is invalid":"Password is invalid","Password length should be 6-20":"Password length should be 6-20","Paypal":"Paypal","paypal payment":"paypal payment","Pending":"Pending","Pending Commission":"Pending Commission","personal info":"personal info","Please click ’click to continue’ to retry.":"Please click \"click to continue\" to retry.","Please contact customer service for cash withdrawal":"Please contact customer service for cash withdrawal","Please enter a valid email address":"Please enter a valid email address","Please enter the verification code":"Please enter the verification code","phone can only be numbers or line":"phone can only be numbers or line","Please login in first":"Please login in first","Please select attribute":"Please select attribute","Please select country/region":"Please select country/region","Please select superior":"Please select superior","Please select the number of ratings.":"Please select the number of ratings.","Please select your country":"Please select your country","Please upload the invoice file":"Please upload the invoice file","Processing":"Processing","Product Name":"Product Name","Please fill in the delivery address before selecting the payment method":"Please fill in the delivery address before selecting the payment method","promotion center":"promotion center","Promotion Link Click Amount":"Promotion Link Click Amount","Promoted link clicks":"Promoted link clicks","Promotion Order Count":"Promotion Order Count","Promotion Reports":"Promotion Reports","read more":"read more","Received commission":"Received commission","Refund":"Refund","Refuse":"Refuse","Region":"Region","Register Success":"Register Success","Remittance":"Remittance","Reviews":"Reviews","reports":"reports","Sale ends in":"Sale ends in","Save in wishlist":"Save in wishlist","Search":"Search","swift code":"swift code","Select how to share":"Select how to share","Select premium items to increase your chances of making money":"Select premium items to increase your chances of making money","Share items to your channels.when other purchase a from your link, you can get commission.":"Share items to your channels.when other purchase a from your link, you can get commission.","Share Product":"Share Product","shipment successful":"shipment successful","Shipping":"Shipping","Shipping Address":"shipping address","Size guide":"Size guide","Small Text":"Small Text","Small Title":"Small Title","Sort By":"Sort By","Sales Amount":"Sales Amount","State/Province/Territory":"State/Province/Territory","Successfully delete":"Successfully delete","Successfully save":"Successfully save","Thank you for trying":"Thank you for trying","The account has been deactivated, please contact customer service to activate":"The account has been deactivated, please contact customer service to activate","Thank you for your application to join our affiliate program, we will review and verify your information as soon as possible and notify you.":"Thank you for your application to join our affiliate program, we will review and verify your information as soon as possible and notify you.","the content can not be blank":"the content can not be blank","The coupon code has been copied and used in the shopping cart.":"The coupon code has been copied and used in the shopping cart.","The file name cannot exceed 100 characters":"The file name cannot exceed 100 characters","The file size cannot exceed 2MB":"The file size cannot exceed 2MB","The number of withdrawals on the day has been capped":"The number of withdrawals on the day has been capped","The subscription is successful, thank you for your participation":"The subscription is successful, thank you for your participation","The user center is out of service. Please contact customer service":"The user center is out of service. Please contact customer service","There is no amount to withdraw":"There is no amount to withdraw","There is no data to export":"There is no data to export","This is Text":"This is Text","This is title":"This is title","This transaction has failed.":"This transaction has failed.","Time to shop":"Time to shop","Tips":"Tips","To be commented":"To be commented","Total":"Total","Tutorial":"Tutorial","This Supplier/Shipping Company does not deliver to your selected Country/Region.":"This Supplier/Shipping Company does not deliver to your selected Country/Region.","Update password success":"Update password success","Upload Image":"Upload Image","Upload up to 6 pictures":"Upload up to 6 pictures","uploading":"uploading","used":"used","user center":"user center","Upload Invoice":"Upload Invoice","valid now":"valid now","Validity period":"Validity period","View Cart & Checkout":"View Cart & Checkout","views":"views","Valid for":"Valid for","Welcome to the website":"Welcome to the website","Western Union":"Western Union","When your buyers received and confirmed orders, you can get commission right now!":"When your buyers received and confirmed orders, you can get commission right now!","Withdrawal":"Withdrawal","Withdrawal success":"Withdrawal success","Withdrawal Method":"Withdrawal Method","Write a Review":"Write a Review","Withdrawal Amount":"Withdrawal Amount","Yes":"Yes","Yesterday":"Yesterday","You are clicking too fast":"You are clicking too fast","You are got a coupon.":"You are got a coupon.","You can select a maximum of 90 days":"You can select a maximum of 90 days","You can withdraw the commission to your Paypal account.":"You can withdraw the commission to your Paypal account.","You have applied to join the Affiliate Program.":"You have applied to join the Affiliate Program.","You will be notified of the review result via email.":"You will be notified of the review result via email.","You haven’t chosen an address yet":"You haven't chosen an address yet","You haven’t selected a product yet":"You haven't selected a product yet","Your rating":"Your rating","Your review":"Your review","Your shipping address error":"Your shipping address error"}}