【Raspberry Pi】Connect to hidden SSID WIFI

After newly installing a Raspberry Pi, I found that the network cable at home is not enough. Fortunately, the Raspberry Pi 3b comes with a wireless network card (it does not start automatically after the new installation, and needs to be manually enabled for automatic connection), but because the WIFI network in the home is hidden SSID, so the system on the Raspberry Pi has not been searched. After looking for a place to add a hidden SSID, I couldn’t find a place to add a hidden SSID (I haven’t found it for a long time, if anyone knows where, please tell me), so I decided to modify the configuration file and add it manually.

First of all, regarding the installation of the wireless network card on the Raspberry Pi, generally speaking, the new system downloaded from the official website already includes the latest wireless network card driver, so there is no need to worry about this part. Of course, you can also manually match the latest driver, which will not be introduced here.

Use vim to edit the interfaces file. Of course, backup is a good habit. Needless to say, back up the interfaces file first.

sudo cp /etc/network/interfaces /etc/network/interfaces_bak

Modify the interfaces file sudo vim /etc/network/interfaces, the final version is as follows:

insert image description here

Two things are done here

  • auto wlan0 will automatically load the wireless network card

  • iface wlan0 inet manual Change the external access network to a wireless network, and it is manually accessed

  • iface default inet static will define static ip for access network

  • wpa-conf /etc/wpa.conf Add a wireless network configuration information

Create a wpa.conf file in the /etc directory. Since WPA/WPA2 encryption is used, the key_mgmt encryption method here writes WPA-PSK

insert image description here

Finally, restart the wireless network card and you can use it

sudo ifup wlan0

Guess you like

Origin blog.csdn.net/kida_yuan/article/details/127762988