Configuring wifi on the raspberry pi:
Edit /etc/network/interfaces, and add:
wpa-ssid "network name"
wpa-psk "password"
auto wlan0
Then I had to `sudo service networking restart` and `sudo ifdown wlan0; sudo ifup wlan0` a couple times and it eventually worked.
WeChat ID
aaronpk_tv