RaspberryPiwirelessadapter
Hardware
ThisguideisaboutinstallingtheEdimaxEW‐7811Un
nanowirelessadapteronaRaspberryPiwitha
wirelessroutersupportingDHCPandconfiguredtouseWPA2‐PSK.Theguidemaybeusefulfor
installingotherwirelessadaptersaswellandforconfiguringWPA‐PSK.
Software
ThesoftwareusedwastheDebiansqueezepackage
debian6-19-04-2012.imgplusa
replacementdrivermodule(
8192cu.ko)availablefromhere.Thedriverisatar.gzfileandneeds
tobeunpackedtwice.Noothermodificationsweremadetothesoftware.
Powersupply
Therehavebeenreportsthatwirelessadapterstakealotofpower,buttheRaspberryPiwithan
EW‐7811UnadapterrunsonaSamsungMicroUSBmainscharger,astandardKindlepower
supply
andeventheKindleleadattachedtoaUSBhubonalaptoprunningonbatterypower.
AccessingRPi
Itispossibletoconfiguretheadapterusing
sshoverEthernet,butitisaloteasiertoseeerror
messagesifadisplayscreenisdirectlyattached.
Configuration
Allofthisconfigurationneedstobedoneasaprivilegeduser,soyoucanprefixalltheediting
commandswith
sudoorjustrun“sudo su”toturnyourselfintoanadministrator.
/etc/udev/rules.d/70‐persistent‐net.rules
Deleteanythinginthisfileaboutwlan0orwlan1.Thisfileisusedtorememberthephysical
characteristicsofUSBadaptersandmaywellcontainincorrectormisleadinginformation,and
shouldbeemptyapartfromcommentsunless youhaveaddedother
USBdevices.
/etc/network/interfaces
Updatethisfiletoaddthewlan0section,sothatitlookslikethis.
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
Comments to this Manuals