|
Macintosh PowerBook
|
|
How-to
Links
For you information, an AirPort base station has an ORiNOCO Silver card inside it. Apple just put it into a nice package, added an ethernet port, a modem, and some software. |
Go Wireless!I wanted to be able to connect to the Internet wirelessly since Dana Street Roasting Company in downtown Mountain View (where I hang out a lot) started offering free wireless networking. Additionally, I also got an Apple AirPort base station for home so I can be online with the PowerBook while sitting on the couch. There are several steps to get wireless networking up and running:
Having kernel support In order to do wireless networking, you need to have support for it in your kernel by having CONFIG_NET_RADIO set to Y. (It's found under "Network device support" in kernel configuration.) I recommend kernel 2.2.19 (for 2.2 series kernels) since earlier versions had issues compiling with recent versions of the PCMCIA kernel module. You don't need any specific drivers selected. Note that the WaveLAN driver that may be listed there is for the old WaveLAN (non-IEEE 802.11 compliant) card, so don't select it. Getting a wireless networking PCMCIA card In order to do wireless networking, you need a need a supported PCMCIA card. (Check the PCMCIA project page for a list.) Because of its popularity (which translates into better support), I chose Lucent Technologies' ORiNOCO PC Card (Silver) (formerly the WaveLAN Turbo 11Mb PC Card). (Yes, the new name is dumb.) Note: for the network at Dana Street Roasting Company (which establishes an IBSS network), an ORiNOCO card must be running Lucent's "station firmware" version 6.04 (or later). Unfortunately, the there is only a Windows version of the firmware update tool so you'd have to find a friend with a laptop running Windows who can do the update for you. Note: for newer PowerBook 2000 and Titanium models, or the new iBooks, you'd probably be happier using Apple's AirPort card since it's entirely contained inside the case. However, you need to use the AirPort card driver. Compiling and installing the PCMCIA kernel module I'm using version 3.1.29 of the PCMCIA kernel module. (Versions prior to 3.1.27 didn't work out of the box on a PowerPC and required a patch.) Simply follow the directions for compiling and installing it. (You can accept all the default values during configuration.) Configuring PCMCIA options The configuration options for PCMCIA cards are set in:
Configuring wireless options First, you need to install the Wireless Tools software. The PCMCIA software allows you to have different "schemes," that is different sets of configurations. (This is similar to what the Location Manager under MacOS allows.) To have one scheme for home and another for the café, you need to edit:
Note: the network at Dana Street Roasting Company doesn't use encryption. Note: for the café, the MODE should be Ad-Hoc and not Managed; however, for whatever reason in my configuration, it works only when Managed. Configuring network options Just as with wireless options, network options allows different schemes. On my home LAN, I assign the PowerBook a static IP address; at the café, I must use a DHCP client (dhcpcd) to obtain an IP address. To configure networking, you need to edit:
Bringing PCMCIA up and down A start/stop script is included as part of the PCMCIA kernel module. I found I had to make a couple of modifications because I occasionally got "Device or resource busy" errors preventing the module from being unloaded, shutting down the card, and the card from being removed. I discovered that the thing that was keeping the "device busy" was the fact that the DHCP client daemon (dhcpcd) was still running; hence the modification was to add the two lines shown below immediately after the stop line in the script:
tail -f /var/log/messagesin a separate window to see what's going on. To establish the wireless connection:
Monitoring the wireless connectionTo monitor the strength of the wireless connection, you can use wmwave in AfterStep's Wharf. (Even though it's a WindowMaker Dock application, it works with AfterStep's Wharf.) |