This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
stand-alone_wifi_ap_and_ssh [2011/01/30 22:24] dbc created |
stand-alone_wifi_ap_and_ssh [2011/01/31 01:09] dbc |
||
---|---|---|---|
Line 4: | Line 4: | ||
First, make sure you have basic WiFi working as described in this tutorial: | First, make sure you have basic WiFi working as described in this tutorial: | ||
- | [[http://www.ladyada.net/learn/chumby/wifi.html|WiFi networking]] - Getting to the Internet via wireless 802.11b/g (in progress) | + | [[http://www.ladyada.net/learn/chumby/wifi.html|WiFi networking]] - Getting to the Internet via wireless 802.11b/g (in progress). |
Get up to the point where you see the RT73 reported as alive: | Get up to the point where you see the RT73 reported as alive: | ||
Line 12: | Line 12: | ||
OK, got your basic WiFi working? Great. Now let's get it going as an AP. | OK, got your basic WiFi working? Great. Now let's get it going as an AP. | ||
- | The Chumby boot process looks for three scripts at various places, userhook0, userhook1, and userhook2. Each one is later in the boot process, depending on when you want to hook in. We want a late hook, so we'll edit userhook2. | + | The Chumby boot process looks for three user-supplied boot scripts: userhook0, userhook1, and userhook2. Each one is later in the boot process, depending on when you want to hook in. We want a late hook, so we'll edit userhook2. |
Remount the file system with write access: | Remount the file system with write access: | ||
Line 30: | Line 30: | ||
/bin/echo "**** Ending userhook2 ****" | /bin/echo "**** Ending userhook2 ****" | ||
- | Don't forget to chmod it 755. Now the Chumby boot scripts will execute userhook2 late in the boot process. We'll copy the regular start_ap.sh from /usr/chumby/scripts start_ap.sh and comment out some lines. | + | Don't forget to 'chmod 755' it. Now the Chumby boot scripts will execute userhook2 late in the boot process. We'll copy the regular start_ap.sh from /usr/chumby/scripts start_ap.sh and comment out some lines. |
# Dave Curtis 28-Jan-11 | # Dave Curtis 28-Jan-11 | ||
Line 76: | Line 76: | ||
#echo 1 > /proc/sys/net/ipv4/ip_forward | #echo 1 > /proc/sys/net/ipv4/ip_forward | ||
+ | It's a good idea to 'chmod 644' the original /usr/chumby/scritps/start_ap.sh so that it doesn't get executed when you aren't expecting it. | ||
Reboot! At this point you should be able to get a DHCP address from your Chumby. It sure would be nice if we could ssh into it now. Update userhook2 to look list this: | Reboot! At this point you should be able to get a DHCP address from your Chumby. It sure would be nice if we could ssh into it now. Update userhook2 to look list this: | ||
# DBC 28-Jan-11 | # DBC 28-Jan-11 |