In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to set up the wifi network for raspberry pie. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
If you are not logged in to the usual graphical user interface, this method is suitable for setting up the wifi of raspberry pie. Especially if you don't have a screen or wired network and only use serial control lines. In addition, this method does not require additional software, and everything you need is already included in the raspberry pie.
GETTING WIFI NETWORK DETAILS (get wifi network details)
To scan the wifi network, you can use the sudo iwlist wlan0 scan command. This command lists all available wifi networks, as well as some useful information about the network. For example:
1. ESSID: "testing": this is the name of the wifi network.
2. IE:IEEE 802.11i/WPA2 Version1: this part represents the authentication method of the network, in this case WPA2, which is a newer and more secure wireless network standard used to replace WPA1. This guide should apply to WEP, WPA, or WPA2, but may not apply to Enterprise WPA2.
You also need a password for the wifi network. Most home routers (the default password) are labeled on the back of the router. In this example, the ESSID (ssid) of the searched wifi network is testing and the psk is testingPassword.
ADDING THE NETWORK DETAILS TO THE RASSBERRY PI (add Internet to raspberry pie)
Open the wpa-supplicant configuration file using the nano editor:
Sudo nano / etc/wpa_supplicant/wpa_supplicant.conf
Add the following at the bottom of the file:
Network= {
Ssid= "The_ESSID_from_earlier"
Psk= "Your_wifi_password"
}
In this example network, we should add:
Network= {
Ssid= "testing"
Psk= "testingPassword"
}
Now press the ctrl+x key, then the y key, and finally press the enter key.
At this point, wpa-supplicant should notice in a few seconds that the settings have changed and will try to connect to the network. If not, you need to use sudo ifdown wlan0
Restart the interface manually with the sudo ifup wlan0 command, or restart the raspberry pie directly with the sudo reboot command.
You can use the ifconfig wlan0 command to confirm that you have successfully connected to the network. If there is already an address in the inet addr, the raspberry pie is successfully connected to the network. If not, please check that your password and ESSID are correct.
Then use wpa_supplicant to connect
$sudo wpa_supplicant-I wlan0-c / etc/wpa_supplicant/wpa_supplicant.conf
Get ip automatically
$sudo dhcpcd wlan0
You can add this to the boot script and create a new wpa_supplicant under / etc/init.d/
$sudo touch wpa_supplicant# create a new script $sudo chmod 755 wpa_supplicant# give script 755 permissions $sudo vim wpa_supplicant# type the following wpa_supplicant-I wlan0-c / etc/wpa_supplicant/wpa_supplicant.confdhcpcd wlan0 $sudo update-rc.d wpa_supplicant defaults # update wpa_supplicant into boot start this article on "how to set up the wifi network for raspberry pie" ends here. I hope the above content can be of some help to you. So that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.