I could connect to the Raspberry Pi with my Wi-Fi dongle to my home network easily, but I couldn't connect to the university network which is public. Is there any change in configuration setup file (/etc/network/intertfaces) My file consists of:

auto lo
iface lo inet loopback
iface etho inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
        wpa-ssid "myssid"
        wpa-psk "pwd"

You'll need want /etc/network/interfaces. You'll have to use wpa_supplicant in that case. It'll make your life easier.


allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Then, in your /etc/wpa_supplicant/wpa_supplicant.conf file, simply add your WiFi configuration(s). I'm sure it's easy to follow.


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

    ssid="Superbly secure WPA home network"
    pairwise=CCMP TKIP
    group=CCMP TKIP

        ssid="Horribly insecure open school network"

Take note that the SSID is case-sensitive.

| improve this answer | |

afaik you don't need the /etc/network/interfaces for connecting to open wifi hotspots.

All you need is a few programs from wireless-tools:

Scan for access points: iwlist wlan0 scan

Now get the ESSID for the access point you want to connect to

Connect to it: ifconfig wlan0 essid ap_name

and get dhcp data(ip, dns, etc.): dhclient wlan0

now you should be connected. You may have to adjust wlan0 to the name of your adaptor.

Beware that most schools/universities have a MAC access filter and you maybe won't be able to get internet connection.

EDIT: If you try to connect to an university wifi, maybe they have 802.1x auth, then try this (it's german, but not difficult to understand, you may try Google Translator ;) )

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.