# ========================================================================= # Copyright 2004 Josh Glover # # LICENCE: # # This work is licensed under the Creative Commons Attribution-ShareAlike # License. To view a copy of this license, visit: # # http://creativecommons.org/licenses/by-sa/2.0/ # # or send a letter to: # # Creative Commons # 559 Nathan Abbott Way # Stanford, California 94305, USA. # # centrino-wlan.txt # # DESCRIPTION: # # Captain's Log for setting up the wireless networking on my Centrino # (Intel PRO/Wireless 2100) laptop running a 2.6 kernel. # # USAGE: # # Read the Captain's Log, pasting bits into your terminal once you # have verified that all paths, settings and so on are right for your # environment, *OR*, copy the Captain's Log somewhere on your box, # edit it to fit your environment, and run it (possibly as root): # # bash centrino-wlan.txt # # MODIFICATIONS: # # Josh Glover (2004/05/11): Initial revision # ========================================================================= # Install the Wireless Tools for Linux emerge net-wireless/wireless-tools # Install the HostAP wireless drivers (see bug #s 47726, 41141, and 32737 # at http://bugs.gentoo.org/ to see why 'emerge net-wireless/hostap-driver' # did not work for me). FEATURES="-sandbox -userpriv -usersandbox -ccache -distcc buildpkg" \ ACCEPT_KEYWORDS='~x86' \ emerge net-wireless/hostap-driver ### Is this really necessary? ### # Install Hotplug support emerge sys-apps/hotplug ### Is this really necessary? ### # Install IPW2100 driver (see bug #s 47726, 41141, and 32737 # at http://bugs.gentoo.org/ to see why 'emerge net-wireless/ipw2100' # did not work for me). FEATURES="-sandbox -userpriv -usersandbox -ccache -distcc buildpkg" \ ACCEPT_KEYWORDS='~x86' \ emerge net-wireless/ipw2100 # Add the IPW2100 driver module to the list of modules that get # autoloaded at boot time, and then load it echo ipw2100 >>/etc/modules.autoload.d/kernel-2.6 modprobe ipw2100 # Determine which NIC is the wireless one (it should be the ethN # interface with the largest value of N, and should not have the # RUNNING flag set) ifconfig -a # Set WNIC to the name of the wireless NIC that you discovered above WNIC=eth1 # Start wireless interface ESSID="My SSID" WAP="00:DE:AD:BE:EF:00" WIP="192.168.1.10" WEPKEY="dead-beef-0000-dead-beef-0000-00" iwconfig ${WNIC} key ${WEPKEY} key restricted iwconfig ${WNIC} essid ${ESSID} mode Managed ap ${WAP} ifconfig ${WNIC} ${WIP} up # [ Optional ] Install ifplugd to automatically stop and start # the wireless interface when a cable or signal is added or removed #emerge sys-apps/ifplugd #sed -i.bak -e 's/^INTERFACES=".\+"/INTERFACES="'${WNIC}'"/' \ # /etc/conf.d/ifplugd