Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up wireless Internet access for raspberry pie

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to set up wireless Internet access in raspberry pie. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

First, check whether the status of the network card is normal

Plug the wireless network card into the raspberry pie and enter the command ifconfig-a to see if there is any information about wlan0. If it indicates that the network card is in good condition, you can skip the second step and configure the wireless network directly. If you cannot find the information about wlan0, you need to install the driver of the wireless network card.

Second, view the information of the wireless network card

Enter the command dmesg | grep usb to view the wireless network card information, mainly depends on the manufacturer (Manufacturer). For example, my network card message is

Usb 1-1.3: Manufacturer: Realtek

Take Realtek as an example, install the wireless network card driver.

If your raspberry pie is connected to the Internet now, enter the installation command to install the Realtek driver.

First, search for the Realtek driver:

Apt-cache search realtek

See the following message:

Firmware-realtek-Binary firmware for Realtek wired and wireless network adapters

Install the Realtek driver:

Sudo apt-get install firmware-realtek

If your raspberry pie doesn't have access to the Internet right now, you can download the driver from the mirror site. I recommend Aliyun's mirror site, which is relatively fast. Http://mirrors.aliyun.com/raspbian/raspbian/pool/non-free/f/firmware-nonfree

Download firmware-realtek_0.43_all.deb and upload it to the / tmp directory of raspberry pie using winscp. Enter the command to install:

Sudo dpkg-I / tmp/firmware-realtek_0.43_all.deb

3. Configure wireless network

Open the interfaces file with the editor nano

Sudo nano / etc/network/interfaces

My interfaces file looks like this:

Auto lo

Iface lo inet loopback

Iface eth0 inet dhcp

Allow-hotplug wlan0

Iface wlan0 inet manual

Wpa-roam / etc/wpa_supplicant/wpa_supplicant.conf

Iface default inet dhcp

We comment out all the wireless NICs with #, and then add our own configuration information. The final result is as follows:

Auto lo

Iface lo inet loopback

Iface eth0 inet dhcp

Auto wlan0

# allow-hotplug wlan0

# iface wlan0 inet manual

Iface wlan0 inet dhcp

Wpa-conf / etc/wpa.conf

# wpa-roam / etc/wpa_supplicant/wpa_supplicant.conf

Iface default inet dhcp

Use the nano editor, ctrl+o to save, ctrl+x to exit.

Create the / etc/wpa.conf file with the editor nano:

Sudo nano / etc/wpa.conf

If your wifi does not have a password

Network= {

Ssid= "your Wireless Network name (ssid)"

Key_mgmt=NONE

}

If your wifi uses WEP encryption

Network= {

Ssid= "your Wireless Network name (ssid)"

Key_mgmt=NONE

Wep_key0= "your wifi password"

}

If your wifi uses WPA/WPA2 encryption

Network= {

Ssid= "your Wireless Network name (ssid)"

Key_mgmt=WPA-PSK

Psk= "your wifi password"

}

Note 1: all symbols are half-width symbols (symbols in English state), and "[Tab]" indicates pressing the Tab key once.

Note 2: if you don't know the encryption mode of wifi, you can use root explorer to open / data/misc/wifi/wpa/wpa_supplicant.conf on your Android phone and check the wifi message.

For example, my wpa.conf file looks like this:

Network= {

Ssid= "1234"

Key_mgmt=WPA-PSK

Psk= "MTIzNA1234"

}

Finally, enter the command to enable the wireless network card:

Sudo ifup wlan0

You can connect to the Wi-Fi.

So much for sharing about how to set up wireless Internet access for raspberry pie. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report