ianw1974 Posted March 22, 2006 Report Share Posted March 22, 2006 Has taken me a while to get this working, since I couldn't find the information anywhere, so thought I would post it here first! Oh, and that I've only been installed and running with arch the last day or two :P First, install ndiswrapper and wpa_supplicant: pacman -Sy ndiswrapper wpa_supplicant this will then install both apps. Press "y" if prompted to install, unless you already have them and they are up-to-date. ndiswrapper configuration Once they have completed installation, you now need to follow the steps to configure ndiswrapper - http://ndiswrapper.sourceforge.net/mediawi...x.php/Main_Page ndiswrapper -i filename.inf ndiswrapper -l ndiswrapper -m depmod -a that's the ndiswrapper install almost finished, just got to update /etc/rc.conf to load the module at boot (below is a sample of my config, yours might look slightly different): MODULES=(ndiswrapper snd-intel8x0 !usbserial) the important part is making sure that ndiswrapper exists on this line. It would be best to test that ndiswrapper will load now, so: modprobe ndiswrapper iwconfig if wlan0 doesn't exist after this, refer back to the ndiswrapper link I provided for more information. wpa_supplicant configuration OK, next up is configuring wpa_supplicant so that you can use WPA-PSK. I have included this in this document because it's much more secure than using WEP. First, edit /etc/wpa_supplicant.conf or if it doesn't exist, then create one with this content: ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid="your_wireless_access_point_name_here" psk="your_password_here" key_mgmt=WPA-PSK proto=WPA } The ctrl_interface directory needs to be created (as it's not usually there by default): mkdir /var/run/wpa_supplicant If you had configured normal networking, you will now configure it differently using network profiles. Therefore, comment out the lines and make sure interfaces only shows the lo (loopback), my examples below: lo="lo 127.0.0.1" #eth0="eth0 10.1.1.3 netmask 255.255.255.0 broadcast 10.1.1.255" #wlan0="wlan0 10.1.1.4 netmask 255.255.255.0 broadcast 10.1.1.255" INTERFACES=(lo) Also, uncomment the network profiles line, as shown below: NET_PROFILES(wlan0) if you want to use more than one profile, eg, one for eth0 and wlan0, set this to "MENU" instead of "wlan0" and you will be prompted during bootup to choose which card to activate for your session. For me, I only use wireless, so I only enabled wireless by default. Now, you need to create the network profile, this is stored in /etc/network_profiles, and needs to be called the same name as what you mentioned above. So, in my example, the filename should be "wlan0". Here is my file, configure yours filling in your details: DESCRIPTION="Wireless Profile" INTERFACE=wlan0 HOSTNAME=elise DOMAINNAME=buziaks.com IFOPTS="10.1.1.4 netmask 255.255.255.0 broadcast 10.1.1.255" GATEWAY=10.1.1.1 DOMAIN=buziaks.com DNS1=10.1.1.1 ESSID=WLAN IWOPTS="mode managed essid $ESSID" WIFI_INTERFACE=wlan0 WIFI_WAIT=5 USEWPA="yes" WPAOPTS="-D ndiswrapper" the two domain options aren't necessary so can be deleted if you like. Here is the network profile for eth0 in case you want it, and modify accordingly for eth1, eth2, etc, etc. DESCRIPTION="Ethernet Profile" INTERFACE=eth0 HOSTNAME=elise DOMAINNAME=buziaks.com IFOPTS="10.1.1.3 netmask 255.255.255.0 broadcast 10.1.1.255" GATEWAY=10.1.1.1 DOMAIN=buziaks.com DNS1=10.1.1.1 if you want to use both profiles at the same time, modify the following line in /etc/rc.conf so it's shown as below: NET_PROFILES(eth0 wlan0) or, if you want to choose during bootup, then edit /etc/rc.conf: NET_PROFILES(MENU) as mentioned earlier. Then, reboot your system, and you'll now find that wireless is working under Arch Linux! Please note an error does appear at bootup as well as on shutdown, but it doesn't affect the operation of the wireless. The error on startup seems to be because /var/run/wpa_supplicant/wlan0 exists and wasn't cleared down properly on shutdown. And I think this was because the error on shutdown didn't get rid of the file! But hey, only minor :P Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted March 23, 2006 Author Report Share Posted March 23, 2006 Now on arch wiki too, now I figured out how to do it :D http://wiki.archlinux.org/index.php/Ndiswr..._wpa_supplicant Quote Link to comment Share on other sites More sharing options...
iphitus Posted March 23, 2006 Report Share Posted March 23, 2006 (edited) might be a good idea to remove the one here and replace it with a link, in case the wiki gets updated. which is actually quite likely to happen. Arch has an awesome wiki. iphitus edit: I also categorised it with the other wireless howtos: http://wiki.archlinux.org/index.php/Category:Wireless for ya ;) Edited March 23, 2006 by iphitus Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted March 23, 2006 Author Report Share Posted March 23, 2006 Nice one :P I'm new to all this wiki stuff, so glad I managed to do just this one so far! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.