User Tools

Site Tools


chumbyhackerboard:wifi

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
chumbyhackerboard:wifi [2010/08/30 16:32]
ladyada
chumbyhackerboard:wifi [2012/12/12 18:40]
ladyada
Line 1: Line 1:
-notes! +====== ​Moved! ======
- +
-====== ​Connecting to your WiFi network ====== +
- +
-Plug in the dongle +
- +
-{{:​chumbyhackerboard:​plugwlan.gif|}} +
- +
-Run **iwconfig wlan0 scan** to list all the local networks +
- +
-{{:​chumbyhackerboard:​iwlist.gif|}} +
- +
-Find your network, we'll connect to **adafruit** (not listed here, just substitute your own connection name) +
- +
-Configure the wlan adapter (we'll be using WEP here, WPA is more complex) +
-  * Set the WiFi password with **iwconfig wlan0 enc XXXXXXXXXX** where XXXXXXXXXX is your 10 digit hexadecimal WEP password (ps. our password isnt really DEADBEEF00) +
-  * Set the channel to match the one in the **iwlist** output with **iwconfig wlan0 channel NN** +
-  * Set the network you want to connect to with **iwconfig wlan0 essid adafruit** where **adafruit** is substituted with your network name +
- +
-{{:​chumbyhackerboard:​iwconfig.gif|}} +
- +
-You should get a **[ 1932.400000] ADDRCONF(NETDEV_CHANGE):​ wlan0: link becomes ready** response from the kernel +
- +
-====== Start DHCP ====== +
- +
-DHCP will let you get your IP, route and DNS right from the router +
- +
-You'll need to remount root so that dhclient can edit it +
- +
-{{:​chumbyhackerboard:​iwremount.gif|}} +
- +
-Start up the **wlan0** connection +
- +
-{{:​chumbyhackerboard:​ifconfigup.gif|}} +
- +
-Then run **dhclient** +
- +
-{{:​chumbyhackerboard:​dhcpdwlan0.gif|}} +
- +
-You should be able to ping! +
- +
-{{:​chumbyhackerboard:​pinggooglewlan0.gif|}} +
- +
- +
-====== Set up IP & DNS ====== +
- +
-Say you don't have DHCP or don't want to use DHCP for some reason. +
- +
-Pick an IP address, and **ifconfig wlan0 <​ipaddress>​ up** to give yourself an IP address +
- +
-{{:​chumbyhackerboard:​ifconfignodhcp.gif|}} +
- +
-Don't forget to add a default route, through your router +
- +
-{{:​chumbyhackerboard:​addroute.gif|}} +
- +
-If you want DNS you'll have to remount the root directory **rw** and edit **/​etc/​resolv.conf** +
- +
-{{:​chumbyhackerboard:​iwremount.gif|}} +
- +
-{{:​chumbyhackerboard:​resolvconf.gif|}} +
- +
-{{:​chumbyhackerboard:​remountro.gif|}}+
  
 +This tutorial has moved to [[http://​learn.adafruit.com/​chumby-hacker-board/​wifi|http://​learn.adafruit.com/​chumby-hacker-board/​wifi]]
/home/ladyada/public_html/wiki/data/pages/chumbyhackerboard/wifi.txt · Last modified: 2016/01/28 18:05 (external edit)