linux-wlan-ng in Gentoo Linux 2004.2 rm 2004-08-08 == A. first installation ================================================================= (for Gemtek mini-USB WLAN adapter) (for PCMCIA WLAN cards additionally pcmcia must be emerged and configured, and some other config steps differ significantly...) do everything as root: 1. emerging of linux-wlan-ng 1.1. new entry in /etc/portage/package.keywords: net-wireless/linux-wlan-ng ~x86 usb 1.2. type # FEATURES="-sandbox" emerge "=linux-wlan-ng-0.2.1_pre20" (this installs the kernel drivers, binaries, and config files at their gentoo places) 2. edit /etc/conf.d/wlan.conf the one thing to do is to set the SSID of your preferred WLAN 3. edit /etc/conf.d/wlancfg-SSID (SSID is the string name of your preferred WLAN) 3.1 copy the example file by typing # cp /etc/conf.d/wlancfg-DEFAULT /etc/conf.d/wlancfg-SSID # vi /etc/conf.d/wlancfg-SSID now insert your WEP info etc. according to the good comments in this file 4. edit /etc/conf.d/net analogous to the iface_eth0 lines add lines for wlan0: iface_wlan0... (note the differences for fixed IP address or using dhcp) [additionally, according to a hint from the gentoo forums, I copied /etc/init.d/net.eth0 to /etc/init.d/net.wlan0 but I doubt that this does/changes anything...] 5. if desired, add "/etc/init.d/wlan" to your default runlevel in order to start wlan by booting or start wlan on demand by typing each time: # /etc/init.d/wlan start 6. alias for the module add the following line to /etc/modules.d/aliases alias wlan0 prism2_usb then do # modules-update ====================================================== that should be it! ==> but for me it does not work :-( it does work however if I call the old ws script line by line I think it would work if I put my own sript lines inside /etc/init.d/wlan inside the start() function but this would be overwritten each time I emerge-update linux-wlan-ng ======================================================== solution 2004-08-08 copy /etc/init.d/wlan to /etc/init.d/wlan-rm edit that file /etc/init.d/wlan-rm 1.1. comment the line(s) "wlan_enable $DEVICE" 1.2. instead place the following in the next line: "wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable" 2.1. comment the line(s) "wlan_source_config_for_ssid "$ssid:$bssid" " 2.2. instead place the following in the next line: "wlan_source_config_for_ssid "$ssid" " 3. at the end of the start() function just before the "done" place the following lines: 3.1 in case you use fixed IP addresses: "ifconfig wlan0 192.168.1.40 (insert your IP here) route add default gw 192.168.1.254" (insert your gateway here) (and in /etc/resolv.conf add your nameservers!) 3.2 in case you use dhcp: "dhcpcd wlan0" ================================== this should be all! How to use it? EITHER ================= start wlan manually by typing # /etc/init.d/net.eth0 stop # /etc/init.d/wlan-rm start OR ===================== if you want to enable wlan by default, add it to your runlevel: # rc-update add wlan-rm default in order for routing to work correctly, remove net.eth0 # rc.update del net.eth0 default it works for me. == B. recompiling the modules ============================================================ each time you recompile your kernel or build a new kernel, you should 1. boot into the new kernel (I use a seperate GRUB entry with "softlevel=eth" where "eth" is a clone of the runlevel "default" except that it is - without wlan-rm - with net.eth0 2. repeat step A.1.2. : # FEATURES="-sandbox" emerge "=linux-wlan-ng-0.2.1_pre20" this will recompile the prism2 modules and install them at the right places 3. reboot (into your default runlevel) good luck rudolf mittelmann rudolf.mittelmannATartm-friendsDOTat