08-31-2016, 07:22 PM
Glad it's all working now!
I never bother with iwconfig unless there is something wrong that needs diagnosing... I just make sure the /etc/network/interfaces has something like this in it...
and in /etc/wpa_supplicant/wpa_supplicant.conf I have (at a minimum)
and wireless comes up on reboot or with 'sudo ifup wlan0' ... but there's more than one way to skin a cat. Thanks for posting the steps for other people. More ways you know how to do it the better... then you can pick which way you prefer!
Pete
I never bother with iwconfig unless there is something wrong that needs diagnosing... I just make sure the /etc/network/interfaces has something like this in it...
Code:
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
and in /etc/wpa_supplicant/wpa_supplicant.conf I have (at a minimum)
Code:
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_NETWORK_PASSWORD"
}
and wireless comes up on reboot or with 'sudo ifup wlan0' ... but there's more than one way to skin a cat. Thanks for posting the steps for other people. More ways you know how to do it the better... then you can pick which way you prefer!
Pete
(08-31-2016, 01:48 PM)smouton Wrote: Well in fact it works ...
Simply iwconfig tool is not installed by default in Ubuntu longsleep image
Here is the way to activate wifi:
sudo apt-get install wireless-tools
iwconfig
sudo ifup wlan0
sudo iwconfig wlan0 essid "Use this one Mom"
# wpa_passphrase essid pwd > /etc/wpa_supplicant.conf
sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf
sudo dhclient wlan0
Hope it may help others