User Tools

Site Tools


rpiwifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rpiwifi [2013/04/13 12:46]
EI 8 FDB [Setup WiFi adapter on Raspbian Wheezy]
rpiwifi [2013/11/01 13:33] (current)
Line 1: Line 1:
- 
 ====== Setup WiFi adapter on Raspbian Wheezy ====== ====== Setup WiFi adapter on Raspbian Wheezy ======
   - Run apt-get update to get it up-to-date (not necessary, but...)   - Run apt-get update to get it up-to-date (not necessary, but...)
Line 15: Line 14:
 It returns firmware-ralink - Binary firmware for Ralink wireless cards It returns firmware-ralink - Binary firmware for Ralink wireless cards
  
-use apt-get install+sudo apt-get install ​firmware-ralink
  
 Last line is: Last line is:
 Setting up firmware-ralink (0.36+wheezy.1) ... Setting up firmware-ralink (0.36+wheezy.1) ...
 +
 +using lsmod doesn'​t show up anything.
 +
 +using dmesg shows:
 +
 +[    3.232446] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
 +[    3.380554] usb 1-1.3: New USB device found, idVendor=148f,​ idProduct=5370
 +[    3.401844] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 +[    3.422167] usb 1-1.3: Product: 802.11 n WLAN
 +[    3.428721] usb 1-1.3: Manufacturer:​ Ralink
 +[    3.451907] usb 1-1.3: SerialNumber:​ 1.0
 +
 +doing ifconfig shows adapter is now seen by system:
 +
 +wlan0     Link encap:​Ethernet ​ HWaddr e8:​4e:​06:​0d:​79:​31  ​
 +          UP BROADCAST MULTICAST ​ MTU:​1500 ​ Metric:1
 +          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 +          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 +          collisions:​0 txqueuelen:​1000 ​
 +          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 +
  
  
Line 25: Line 45:
 copy and paste: ​ copy and paste: ​
 network={ network={
- +ssid="​YOUR-SSID"​
-ssid=”YOUR_SSID” +
 proto=RSN proto=RSN
- 
 key_mgmt=WPA-PSK key_mgmt=WPA-PSK
- 
 pairwise=CCMP TKIP pairwise=CCMP TKIP
- 
 group=CCMP TKIP group=CCMP TKIP
- +psk="WPA-PASSWORD"
-psk=WPA-PASSWORD” +
 } }
  
 +save and close.
  
-edit $ sudo nano /​etc/​network/​interfaces+then edit $ sudo nano /​etc/​network/​interfaces
  
 and check that the following is in there: and check that the following is in there:
  
-auto lo 
  
 +auto lo
  
 iface lo inet loopback iface lo inet loopback
 iface eth0 inet dhcp iface eth0 inet dhcp
  
 +auto wlan0
 allow-hotplug wlan0 allow-hotplug wlan0
-iface wlan0 inet manual 
-wpa-roam /​etc/​wpa_supplicant/​wpa_supplicant.conf 
-iface default inet dhcp 
  
-and wpa-conf /etc/wpa.config+iface wlan0 inet dhcp 
 +        ​wpa-ssid "​SSID"​ 
 +        ​wpa-psk "​PASSWORD"​
  
 +then sudo nano /​etc/​network/​interfaces
  
-restart your networking ​+auto lo 
 + 
 +iface lo inet loopback 
 +iface eth0 inet dhcp 
 + 
 +auto wlan0 
 +iface wlan0 inet dhcp 
 +wpa-conf /​etc/​wpa.conf 
 + 
 + 
 +restart your networking ​ sudo /​etc/​init.d/​networking restart ​
  
-sudo /​etc/​init.d/​networking restart ​ 
 Running /​etc/​init.d/​networking restart is deprecated because it may not re-enable some interfaces ... (warning). Running /​etc/​init.d/​networking restart is deprecated because it may not re-enable some interfaces ... (warning).
 Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2 Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Line 68: Line 92:
 For info, please visit https://​www.isc.org/​software/​dhcp/​ For info, please visit https://​www.isc.org/​software/​dhcp/​
  
-Listening on LPF/​eth0/​b8:​27:​eb:​f8:53:c5 +Listening on LPF/​eth0/​b8:​27:​eb:​d4:ed:3b 
-Sending on   ​LPF/​eth0/​b8:​27:​eb:​f8:53:c5+Sending on   ​LPF/​eth0/​b8:​27:​eb:​d4:ed:3b
 Sending on   ​Socket/​fallback Sending on   ​Socket/​fallback
 DHCPRELEASE on eth0 to 192.168.1.254 port 67 DHCPRELEASE on eth0 to 192.168.1.254 port 67
 +
 +At which point the raspi WiFi interface will come up and you can disconnect the ethernet cable from the onboard ethernet adapter.
 +
 +If you have configured the raspi as DHCP, you will have to find the IP address it has been assigned. Simplest for me was do an nmap of my network to find it.
 +
 +If you configured it static, SSH to it as before.
 +
 +If this doesn'​t work, you may need to reboot it. At which point you can then SSH to it.
  
  
  
 ===== External Links ===== ===== External Links =====
 +  * [[http://​manpages.ubuntu.com/​manpages/​lucid/​man8/​wicd-cli.8.html|wicd-cli,​ a commandline based WiFi adapter setup tool]] ​
 +  * [[http://​elinux.org/​RPi_VerifiedPeripherals#​USB_Wi-Fi_Adapters|Verified Raspberry Pi WiFi adapter peripherals]]
   * [[http://​www.raspberrypi.org/​phpBB3/​viewtopic.php?​f=26&​t=23401|WiFi hardware i/f discussion on Raspberrypi.org]]   * [[http://​www.raspberrypi.org/​phpBB3/​viewtopic.php?​f=26&​t=23401|WiFi hardware i/f discussion on Raspberrypi.org]]
   * [[http://​www.ebay.co.uk/​itm/​290647056609?​ssPageName=STRK:​MEWNX:​IT&​_trksid=p3984.m1497.l2649|USB WiFi adapter for sale on ebay]]   * [[http://​www.ebay.co.uk/​itm/​290647056609?​ssPageName=STRK:​MEWNX:​IT&​_trksid=p3984.m1497.l2649|USB WiFi adapter for sale on ebay]]
   * [[http://​www.amazon.co.uk/​USB-Wifi-Adapter-Raspberry-Pi/​dp/​B009FA2UYK|USB WiFi adapter for sale on Amazon]]   * [[http://​www.amazon.co.uk/​USB-Wifi-Adapter-Raspberry-Pi/​dp/​B009FA2UYK|USB WiFi adapter for sale on Amazon]]
 +  * [[http://​omer.me/​2012/​04/​setting-up-wireless-networks-under-debian-on-raspberry-pi/​|Setting up WiFi adapter on Raspi]]
rpiwifi.1365857212.txt.gz · Last modified: 2013/11/01 13:32 (external edit)