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
No Comment
Post your comment