I have spent hours reading articles and changing file after file over and over again. I am truing to properly set up my Edimax ew-7811un wifi adapter on m a Pi Zero running Kali Linux. I was able to set it up once upon a time when I had Jessie running on it. I remember that it was a pain setting it up back then and it's even worse now. I believe that I possibly used a bach file to set things up in the end.
My current situation is simple. My Pi sees the adapter, it even flashes blue. I've changed the /etc/network/interfaces and the /etc/wpa_supplicant/wpa_supplicant.conf (had to create it because it did not exist) multiple times. The network logo appears to be connected, but it does not connect to my network.
iface wlan0 inet dhcp
I updated the Interfaces File multiple times and this is the latest rendition. I saw that many people resolved their issue by directly placing their network info into the interfaces file. I still ran into the same issue.
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 ap_scan=2
This is what the wpa_supplicant file looks like as of now. Even though it isn't being called it still exists as a file.
The adapter currently doesn't seem to work because of the changed interfaces file, but when it did "work" it wouldn't receive an IP address. I would have to run sudo ifdown wlan0 && ifup wlan0 to enable it and get it to start blinking. It would also show that it was connected to my router but it would not connect to the internet.
There is not a single article that is specific to my issue (TBH, no article is always specific to one issue) but I really need to figure this out. I can never master something if i'm always getting stuck in the process. I don't like asking for help, but help. I'll provide as much information as possible. There are a lot of factors that go into this. Thanks in advance.
After applying the changes that @Jason Woodruff I got the following:
spa_supplicant: /sbin/spa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0
Following Update 3 of the answer helped to solve my problem. Ensure that the hub is getting enough power and is able to scan for available wifi hotspots.
After confirming the connection on root and user profile you can then run sudo apt- update and sudo apt-get upgrade
After performing the upgrade and rebooting, you will get most if not all of the Kali tools.