This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stand-alone_wifi_ap_and_ssh [2011/01/30 22:24] dbc created |
stand-alone_wifi_ap_and_ssh [2016/01/28 18:05] (current) |
||
---|---|---|---|
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 | ||
# Staring with CHB V1 script, following mods by | # Staring with CHB V1 script, following mods by | ||
- | # Eric Gregory | + | # Eric Gregori |
# | # | ||
# Set up Chumby to be a wireless AP, with no back-haul routing. | # Set up Chumby to be a wireless AP, with no back-haul routing. | ||
Line 45: | Line 45: | ||
INTIF=wlan0 | INTIF=wlan0 | ||
| | ||
- | # DBC - There won't ben an external inteface. | + | # DBC - There won't be an external inteface. |
## Ensure we have an internal and an external interface. | ## Ensure we have an internal and an external interface. | ||
#if [ "x${INTIF}" = "x" -o "x${INTIF}" = "x" ] | #if [ "x${INTIF}" = "x" -o "x${INTIF}" = "x" ] | ||
Line 76: | Line 76: | ||
#echo 1 > /proc/sys/net/ipv4/ip_forward | #echo 1 > /proc/sys/net/ipv4/ip_forward | ||
- | 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: | + | 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 start up the ssh daemon, it now should look something like this: | ||
# DBC 28-Jan-11 | # DBC 28-Jan-11 | ||
/bin/echo "**** Starting userhook2 ****" | /bin/echo "**** Starting userhook2 ****" | ||
Line 93: | Line 97: | ||
Port 222 | Port 222 | ||
..snip.. | ..snip.. | ||
+ | |||
+ | And that huge message of the day? It's in /etc/motd if you want to trim it down. | ||
At this point, you will be running a wide-open wireless AP on a box with no root password. Now might be a good time to add a root password. | At this point, you will be running a wide-open wireless AP on a box with no root password. Now might be a good time to add a root password. | ||