Most of the time we access Raspberry PI from command line and in this case if we have to connect PI to a network then it might be bit tricky. The easiest way is to modify the file and add bits from network.
In our case the SSID is TestWiF, the password for the wifi is P455WOr6 and key_management is WPA-PSK
In our case the SSID is TestWiF, the password for the wifi is P455WOr6 and key_management is WPA-PSK
pi@raspberrypi:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="TestWiFi"
psk="P455WOr6"
key_mgmt=WPA-PSK
}
pi@raspberrypi:~ $
Once the modifications are done just restart the PI
pi@raspberrypi:~ $ sudo shutdown -r now
No comments:
Post a Comment