Tutorial: wlan setup on console

Simple way to configure your wlan settings on the console:

  1. List available hotspots

    sudo iwlist wlan0 scan
  2. Setup wpa-supplicant

    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
    network={
        ssid="ssid-of-you-wlan"
        psk="your-wlan-password"
    }
    
  3. Restart wlan0

    sudo ifdown wlan0 && sudo ifup wlan0
  4. Check ip configuration of wlan0

    ifconfig wlan0