Setting up WiFi Access on a Raspberry PI from the command line

To set up wifi access using just the command line

edit /etc/network/interfaces

Add the lines

allow-hotplug wlan0
auto wlan0

iface wlan0 inet dhcp
wpa-ssid “ssid”
wpa-psk “password”