Internet connection via Wifi


10 posts
by JonaHex » Mon Jan 07, 2013 9:29 am
Hi All,

I recently started playing with the Raspberry Pi, I started up and all is well but I don’t have access to a Ethernet connection at the time. I bought the Edimax wlan dongle and want to connect to a mobile hotspot / or a friends wifi router. The problem I have is the edimax is configured and connected as I can see when on the status and on ifconfig but I still don’t have internet access.

Any ideas on what it could be/
Thanks
Posts: 2
Joined: Mon Jan 07, 2013 9:14 am
by Mobius » Tue Jan 08, 2013 1:48 am
Try sudo iwconfig and see if you have the correct SSID and password. It should also show a MAC address next to "Access Point". If it says "Not Associated" then you don't have a connection.
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA
by mango » Tue Jan 08, 2013 4:34 am
So how does one connect to it then? I am trying to connect to my wifi which was WPA2 security passkey, I can find the network, but not sure how to connect, enter my passkey etc...?

Cheers
Posts: 2
Joined: Tue Jan 08, 2013 4:29 am
by Forris » Tue Jan 08, 2013 6:50 am
If you have used the 'startx' command and are talking to your Pi using the GUI (the page with the big raspberry in the middle and a few icons around), there should be an icon on the screen call 'WiFi Setup'.Use this as the easiest method to setup your connection.
Posts: 33
Joined: Fri Jan 06, 2012 7:46 pm
by mango » Tue Jan 08, 2013 7:48 am
Nah I'm talking about command line, not via startx.

I can only have my keyboard and wifi dongle plugged in at once, no mouse, so no point trying to use the GUI anyway. I have a USB hub but not powered, so it can only run one thing off it, so it's still 2 USB slots effectively, so looking for a CLI solution to connecting to WPA2 Wifi, have tried using wpa_suppllicant, but not sure where or if it saves the file when I do wpa_passphrase XXX XXX.
Posts: 2
Joined: Tue Jan 08, 2013 4:29 am
by Jim JKla » Tue Jan 08, 2013 7:59 am
You only have to use startx once to set up the connection once you have the connection the RPi connects.

Case study here.
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=28339
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2165
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by Chapindad » Tue Jan 08, 2013 9:58 pm
Sounds like a routing issue.

Post your: /etc/network/interfaces
Posts: 23
Joined: Wed Dec 26, 2012 1:21 am
by Mobius » Wed Jan 09, 2013 12:40 am
Yup. /etc/network/interfaces is where you manually set up your ethernet and wireless devices.
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA
by Lonewolff » Wed Jan 09, 2013 3:33 am
This is how I got my WIFI up and running via the command line.

Type sudo nano /etc/network/interfaces

Add these lines

auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Save and exit

Type sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

add the following

network={
ssid="your_ssid_here"
psk="your_password_here"
}

Save and exit, then sudo reboot
Loving my peice of the Pi
Posts: 112
Joined: Fri Dec 28, 2012 11:13 pm
Location: Merimbula, Australia
by JonaHex » Wed Jan 09, 2013 8:17 am
Thank you to all to comments.

I can detect the network but it seems not to be connecting.

Event list in the WIFI setup app says = associated request to driver failed?

Any ideas on what I can do to get this working
Posts: 2
Joined: Mon Jan 07, 2013 9:14 am