Raspberry pi wifi connection
#
# /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="Wifi-Name"
scan_ssid=1
key_mgmt=WPA-PSK
psk="Wifi-Password"
}
For the wifi to work properly on raspberry pi you have to do the following.
Insert the memory card into some laptop or mobile.
Edit and put the respective files provided in this gist
1. /etc/network/interfaces
2. /etc/rc.local
3. /etc/wpa_supplicant/wpa_supplicant.conf
After doing all this put the memory card back into the raspberry pi and you are done.
#!/bin/sh -e
# /etc/rc.local
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Remember - detect.py and cron.py should be present in the same folder
# path to the script provided should be complete
# eg. python /home/vikas/detect.py &
# python /home/vikas/cron.py &
python location-of-detect.py &
python location-of-cron.py &
exit 0
#
# /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
#allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp