Wi-fi
& sudo nano /etc/network/interfaces
You will see something like this:
auto lo
iface lo inet looopback
iface eth0 inet dhcp
This is the setup of the ethernet connection. Add this to enable wi-fi:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-con /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Press “ctrl-x” to quit, choose “Y” to save. Now edit the wpa config:
& sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
It probably looks like this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
Add this:
network={
ssid="YOURSSID"
psk="YOURPASSWORD"
# Protocol type can be: RSN (for WP2) and WPA (for WPA1)
proto=WPA
# Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
key_mgmt=WPA-PSK
# Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
airwise=TKIP
#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)
auth_alg=OPEN
}
Then “ctrl-x” to quit and “Y” to save. And do a reboot:
& sudo reboot