(05-29-2018, 12:20 PM)scalextrix Wrote: OK after re-installing the CLI OS, its working now, if anyone has issues:
connect the wifi dongle
> sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="your_ssid_here"
psk="your_psk_here"
}
Glad you got it working in the end. btw, if network manager is installed on the jessie images, you have have used nmtui (or nmcli) instead, and basically just enable the wifi SSID you want to connect to and enter the password via the menu. It's probably the prefered way going forward... wpa_supplicant and /etc/network/interfaces seems to be going away bit by bit...
Whilst the instructions are appreciated to make the lives of others getting started easy, In addition to what bunny pointed out below, I'd also generate the wpa_supplicant file using the wpa_passphrase tool, so that an encrypted password is stored, not the plaintext one. Although one does have to wonder how much point there is to doing so, given that both WPA and WPA2 have been compromised.
Code:
sudo wpa_passphrase MYSSID passphrase > /etc/wpa_supplicant/wpa_supplicant.conf
(05-29-2018, 04:39 PM)evilbunny Wrote: if you want to protect the wifi password you put it in wpa_supplicant, and then call that file from interfaces by doing this:
Code:auto wlan0
iface wlan0 inet dhcp
wpa-ssid your_ssid_here
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Thanks for the evilbunny, evil minds obviously think alike