30 marzo 2015

How to setup Wi-Fi dongle on Raspberry Pi

Hi,
in order to enable the wi-fi dongle it’s necessary follow these steps:

  1. Edit the file “interfaces”:

    sudo nano /etc/network/interfaces

    add the follow strings

    allow-hotplug wlan0
    iface wlan0 inet dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.confiface default inet dhcp
    below the screeshot:

  2. Edit the file “wpa_supplicant.conf” with the command:

    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
    Add the follow strings

    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)

    pairwise=TKIP

    #Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)

    auth_alg=OPEN

    }

    below the screeshot:
  3. When editing files is done, is the time to run the command: sudo reboot .Immediately after run the command,  unplug the Ethernet cable and plug in the Wi-Fi dongle.

Bye
Francesco

Nessun commento: