by Devin Yang
(This article was automatically translated.)

Published - 4 years ago ( Updated - 4 years ago )

About Wifi settings
ID can be obtained

sudo iwlist wlan0 scan
then execute
wpa-supplicant <ESSID>

E.g:
wpa_passphrase "dodoro"
#reading passphrase from stdin
1234
enter password.
will print out the settings on the screen
network={
ssid="dodoro"
#psk="1234"
psk=dd146fb333a9d3ef6cad9f7224791102cd4bc5eda3973edbd360231f65af540c
}
Or direct the results directly to the settings.
wpa_passphrase "dodoro" >> /etc/wpa_supplicant/wpa_supplicant.conf
You can make up for the network that needs to be shared with the iPhone using the iPhone. key_mgmt=WPA-PSK.
We can have a lot of networks down like this, and then set the priority, the higher the priority number, the higher the priority.
The following is my wpa_supplicant.conf content
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=TW

network={
        ssid="ccc"
        psk="password"
        key_mgmt=WPA-PSK
        priority=2
}

#reading passphrase from stdin
network={
        ssid="dodoro"
        psk=dd146fb333a9d3ef6cad9f7224791102cd4bc5eda3973edbd360231f65af540c
        key_mgmt=WPA-PSK
        priority=1
}
After setting, turn off the network card and recapture the IP to see, I test the results, or try to reboot.
ifconfig wlan0 down;dhclient wlan0
Schematic diagram, add a mobile power supply, my laptop egg is born..


For example: Start a VNC and you will have a remote desktop. There is also an SSH Client on iOS. :)


or VNC

Tags: raspberry wifi

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


Raspberry

Raspberry plays midi files

Raspberry play midi music

linux,raspberry

Install VNC Server on Raspberry Pi

Checklist introduces how to start VNC Server on Raspberry Pi

linux,docker,wifi

Use docker to build a WPA2/EAP enterprise Radius authentication server, and the backend uses a mysql database

AP provides WPA2/EAP function, but it won't work? This article introduces how I can quickly build a Radius server through docker's ubuntu:21.04 image. Related applications such as WPA2/EAP of Wifi.