05.03.2013 Views

RPi Easy SD Card Setup - eLinux.org

RPi Easy SD Card Setup - eLinux.org

RPi Easy SD Card Setup - eLinux.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or<br />

# /usr/share/doc/ifupdown/examples for more information.<br />

auto lo<br />

iface lo inet loopback<br />

iface eth0 inet dhcp<br />

# The wireless interface<br />

auto wlan0<br />

iface wlan0 inet dhcp<br />

wpa-conf /etc/wpa.conf<br />

or<br />

▪ Plug in adapter<br />

▪ Confirm adapter is present:<br />

root@raspberrypi:~# sudo iwconfig<br />

lo no wireless extensions.<br />

eth0 no wireless extensions.<br />

wlan0 IEEE 802.11bgn ESSID:off/any<br />

Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm<br />

Retry long limit:7 RTS thr:off Fragment thr:off<br />

Encryption key:off<br />

Power Management:off<br />

▪ Scan your network to see what wireless access points can be seen. You may need to<br />

do this to identify your network's SSID (name), but it also confirms that the wifi<br />

dongle is doing something. The first command just lists the SSIDs found, the second<br />

tells you probably more than you ever want to know:<br />

sudo iwlist wlan0 scan | grep ESSID<br />

sudo iwlist wlan0 scan<br />

▪ Create the wpa.conf file - eg: sudo vi /etc/wpa.conf:<br />

Note: The ssid is case sensitive - if your WLAN's SSID is MYLAN, using "mylan"<br />

will not work - you won't connect!<br />

network={<br />

ssid="NETWORK-SSID"<br />

proto=RSN<br />

key_mgmt=WPA-PSK<br />

pairwise=CCMP TKIP<br />

group=CCMP TKIP<br />

psk="YOUR-WLAN-PASSWORD"<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!