Using: Model B Version 2
Dongle: TP-Link model TL-WN823N
os: raspbian
Tutorial: http://www.circuitbasics.com/raspberry-pi-wifi-installing-wifi-dongle/
Following the tutorial above i have altered the files:
/etc/network/interfaces
/etc/wpa_supplicant/wpa_supplicant.conf
Despite hours of my best(though limited in ability) efforts, i cannot get the pi connected to the internet through the wifi.
I assume that dongle works, and is compatible with my pi as i can use the command to return a list of wireless networks:
sudo iwlist wlan0 scan
the two files have been altered to show:
#/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
and
#/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="YOUR WIFI NETWORK NAME"
psk="YOUR WIFI PASSWORD"
}
i simplified the later after seeing it was possible on websites offering similar tutorials. When i type iwconfig i get:
wlan0 unassociated nickname:"WIFI@Realtec"
Any help with this situation would be appreciated.
In my rage i have also managed to hide the network icon on the GUI, bonus points for how to turn that back on...
EDIT: I've now come code which works, but i'm unsure of why the initial bit did not, will be happy to accept an answer which can tell me this. I've also added the code i'm now using below to help anyone like myself who could end up here from google.
dhcp
you have caused the software which runs the network icon to disable itself. What you have in your "answer" may have been OK in 2012, but Rasbpian has changed since. See How do I set up networking/WiFi/Static IP – Milliways Jul 23 '16 at 22:47it says "Go to the bottom of the file and add the following:" followed by ssid and psk. Are the first 3 lines of my wpa_supplicant adequate?
– TPreston Jul 23 '16 at 23:07/etc/network/interfaces
PUT IT BACK. Usingdhcp
disablesdhcpcd
. – Milliways Jul 23 '16 at 23:34