Wireless network configuration
- 1 First steps
- 2 Installation
- 3 Setup and Boot
- 4 Misc Links
- Check to see if Linux supports your hardware. You can find out what your card is with lshwd.
- zd1201-based card like ZyXEL B-220
- wlan-ng supports quite a lot of chipsets; check here first.
- madwifi for Atheros chipsets (AR5210, AR5211, AR5212 and AR5213)
- rt2x00 project for a unified driver for Ralink's rt2400, rt2500, and rt2570 chipsets (beta).
- Ralink Linux Support for drivers for Ralink chipsets direct from the manufacturer.
- rt2x00 project for better-maintained versions of Ralink's own drivers ("legacy drivers" on the site).
- ipw2100 for Intel Pro/Wireless 2100 Mini PCI
- ipw2200 for Intel Pro/Wireless 2200 Mini PCI
- ipw3945 for Intel Pro/Wireless 3945 AB/G Mini PCI-E
- orinoco for some Prism 2-based cards
- prism54 for Prism 54-based cards
- bcm43xx for Broadcom 43xx-based cards
- Check the Linux Wireless Support page for your hardware or in The Linux Questions hardware compatibility list (HCL), which also has a good list of Linux-friendly hardware
- If the hardware is supported only under Windows
- If your hardware is not listed anywhere
- I think you may be screwed....
- Try a web search for the exact model name of your hardware with the word "linux" - and feel free to ask for help on the forums
First off, make sure you grab wireless-tools from pacman
pacman -S wireless_tools
You cannot initialize wireless hardware without these tools.
Here are the details of how to get the drivers for your card. You may find that there are several options open to you, so remember you can check the HCL for help on selecting the best driver.
pacman -S wlan-ng24
pacman -S wlan-ng26
Unified driver for Ralink chipsets (will ultimately replace rt2500,rt61,rt73 etc). Compatible with stable wpa_supplicant using the wext driver interface. This driver is currently in heavy development but is likely to be in the mainline kernel as of 2.6.24.
pacman -S rt2x00-cvs
(from unstable repository)
See the rt2x00 wiki page.
For Ralink's PCI/PCMCIA based rt2500 series chipsets (the first generation of Ralink chips to support 802.11g).
pacman -S rt2500
Supports standard iwconfig tools for unencrypted and WEP connections, although it can be quite sensitive to the order of commands. wpa_supplicant is not supported using the standard wext interface. The driver does support WPA (using hardware encryption), but in a non-standard way. The trunk version of wpa_supplicant (0.6.x) appears to include special support for this driver, and it is also possible to negotiate a WPA connection manually using iwpriv commands. See these instructions for details. The same applies for RT61 and RT73 below.
For PCI/PCMCIA cards based on Ralink's later generation of 802.11g chipsets (including those supporting proprietary MIMO modes). See the RT61 wiki page.
For USB devices based on Ralink's later generation of 802.11g chipsets (including those supporting proprietary MIMO modes). See the RT73 wiki page.
pacman -S madwifi
The module is called ath_pci. You may need to use the countrycode option when loading the MadWifi driver in order to use channels and transmit power settings that are legal in your country/region. In the Netherlands, for example, you would load the module like this:
modprobe ath_pci countrycode=528
You can verify the settings with the iwlist command. See man iwlist and the CountryCode page on the MadWifi wiki. To have this setting automatically applied during boot, add the following to /etc/modprobe.conf:
options ath_pci countrycode=528
ATTENTION: I had to remove the countrycode option completely or the ath0 device wasn't created (andyrtr, kernel 2.6.21)!
ipw2100 and ipw2200
Depending on which of the chips you have, use either:
pacman -S ipw2100-fw
pacman -S ipw2200-fw
You will probably need to reboot for the firmware to be loaded.
ipw3945 and ipw4965
Intel's new iwlwifi project drivers will work for both chipsets, simply choose the microcode that corresponds to yours:
pacman -S iwlwifi iwlwifi-3945-ucode
pacman -S iwlwifi iwlwifi-4965-ucode
Add the kernel driver to your startup:
in the modules=() array, add iwl3945 or iwl4965 to the list, depending on your chipset
CTRL + X, Y to close and save.
The drivers should now load after a reboot, and running 'ifconfig' from a terminal should report wlan0 as a new network interface.
Note: if the iwlwifi drivers, being "experimental", do not work, know that the windows NETw4x32 driver works with ndiswrapper just fine.
ipw3945 (Alternate Method)
Note: This ipw3945 driver will be phased out as Intel's iwlwifi project drivers reach maturity.
pacman -S ipw3945
This should install ipw3945-ucode, ipw3945, and ipw3945d (daemon).
To properly initialize the driver on startup...
in the modules=() array, add ipw3945 to the list
in the daemons=() array, add ipw3945d to the list (its order must come BEFORE network and dhcdbd/networkmanager in the array)
CTRL + X, Y to close and save.
The ipw3945 module should load during "Loading Modules.." and "Starting IPW3945d" should appear during daemon initialization, and ethX should be present.
Update: On my HP nc6320 the Bluetooth won't connect unless you unload the ipw3945 module.
This should be part of the kernel package and be installed already.
Ndiswrapper is not a real driver, but you can use it when there are no native Linux drivers for your wireless chips. So it is very useful in some situations. To use it you need the *.inf file from your Windows driver. To install ndiswrapper use the steps below:
To install the ndiswrapper use pacman:
pacman -Sy ndiswrapper ndiswrapper-utils
Note: Beyond kernel needs the packages ndiswrapper-beyond instead of the ndiswrapper package!
Note: If you do not have internet access on the machine running Arch, you can also download the packages to a disk from one of the mirrors, e.g. http://www2.cddc.vt.edu/linux/distributions/archlinux/extra/os/i686/ . You need the ndiswrapper (or ndiswrapper-beyond as it says above) and ndiswrapper-utils packages. You may also have to download the latest kernel26 (or beyond), as the version provided on the CD is not always the latest one.
Once the installation has completed, follow the steps to configure ndiswrapper.
ndiswrapper -i filename.inf ndiswrapper -l ndiswrapper -m depmod -a
Now the ndiswrapper install is almost finished; you just have 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, so just add it alongside the other modules. It would be best to test that ndiswrapper will load now, so:
modprobe ndiswrapper iwconfig
and wlan0 should exist. Check this page if you're having problems: Ndiswrapper installation wiki.
Download the firmware driver for your appropriate card from this site. Rename the firmware file to 'isl3890'. If nonexistent, create the directory /lib/firmware and place the file 'isl3890' in it. This should do the trick. (forum source)
The ACX100/111 driver can be found at . This can be used for cards based on the Texas Instruments ACX100/111 chipset.
Contrary to what people think, this is relatively easy to setup. There is a huge guide written by Craig here. However, the README that comes with the driver is actually easier to follow.
- Download the latest version of the driver.
- Extract the archive to a directory of your choice. Beware: The archive does not have a directory inside, so if you don't extract within a directory, a lot of files will spill out everywhere.
- Change to the directory containing the extracted files.
make -C /lib/modules/`uname -r`/build M=`pwd`
- Change to root user.
make -C /lib/modules/`uname -r`/build M=`pwd` modules_install
depmod -aeso the kernel detects the new module.
- Insert the driver CD that came with the card into the CD/DVD drive on your computer.
- Mount the drive with
- Copy the firmware from the CD to /lib/firmware.
- Rename the firmware to 'tiacxNNNcMM' (NNN=100/111, MM=radio module ID (in uppercase hex)) for the PCI driver or tiacxNNNusbcMM for the USB driver.
- Load the acx module with
- Add the acx module to the MODULES array in /etc/rc.conf so it gets loaded on startup.
- Follow the instructions for connecting to your network with iwconfig.
Note: It is also possible to compile the driver inside the kernel tree. This is documented in the README file with the driver.
Broadcom users that have 43xx series chipsets have a new alternative to ndiswrapper. In kernel version 2.6.17, the bcm43xx driver was introduced.
hwd -sto determine that you have an appropriate card. My output of hwd -s looked like this:
Network : Broadcom Corp.|BCM94306 802.11g NIC module: unknown
pacman -Sy bcm43xx-fwcutterto install the firmware cutter application.
- Download the Windows driver file for your card from which to extract the firmware.
- I initially downloaded the driver from Dell's support site. When that didn't work I found a link on the Ubuntu Wiki and used that file instead: . I just saved this file to my desktop; you won't need it after the next step.
bcm43xx-fwcutter -w /lib/firmware /home/<user>/Desktop/wl_apsta.oYou may have to create /lib/firmware first.
- Restart, and configure your device as normal. You may want to add bcm43xx into the modules section of your rc.conf file. Good luck!
See the rtl8187 wiki page.
Setup and Boot
Arch Linux provides two methods for enabling wireless connections. The first method is based on the existing network script and should be used for non-roaming wireless access. If you're on only one wireless network, this is the best setup to use. However, if you continually roam from network to network, the Network Profiles setup would be best, though slightly more complicated.
Using the Arch Linux Wireless Network settings
- Typical Arch Linux Wireless configuration is rather straightforward. The network itself is configured in the exact same way a non-wireless network is in /etc/rc.conf. For example:
# /etc/rc.conf wlan0="dhcp" INTERFACES=(lo eth0 wlan0)
where wlan0 is the wireless interface name
- Beyond this, the networking scripts need some way to determine that wlan0 is a wireless interface (as not all wireless interfaces are wlan*). This is done in the /etc/conf.d/wireless file. The setup here is very simple. For each wireless interface, you simply declare a setting called wlan_<interface name>. If your wireless interface is "wlan0", it uses wlan_wlan0. If your wireless interface is "eth1", wlan_eth1 is what you need. The value for this setting is simply the parameters to iwconfig (see man iwconfig for details) including the interface name.
- A simple, non-encrypted setup for the above would look like:
# /etc/conf.d/wireless wlan_wlan0="wlan0 essid MyEssid" WLAN_INTERFACES=(wlan0)
- While a WEP Encrypted setup would look like:
# /etc/conf.d/wireless wlan_wlan0="wlan0 essid MyEssid key 12345678" WLAN_INTERFACES=(wlan0)
- phrakture's trick
- My personal trick isn't much of a trick at all; it just simplifies a lot of the process. While /etc/conf.d/wireless is sourced (included) in the network script, it is not a requirement for having a wireless interface. Therefore, the actual settings for the wireless interface can exist in anything sourced by the network script. For that reason, I put all my settings in /etc/rc.conf:
# /etc/rc.conf eth0="dhcp" wlan0="dhcp" wlan_wlan0="wlan0 essid MyEssid" #wlan_wlan0="wlan0 essid MyEssid key 12345678" #wlan_wlan0="wlan0 essid MyEssid key s:wirelesspassword" WLAN_INTERFACES=(wlan0) INTERFACES=(lo eth0 wlan0)
All of these settings assume your wireless card is wlan0, if it is something else (such as eth0) then simply replace wlan0 with eth0 every time it appears. For example, if your wireless card is eth0 so you change wlan_wlan0 to be wlan_eth0="eth0 essid ...." , wlan0="dhcp" to eth0="dhcp" and WLAN_INTERFACES=(wlan0) to WLAN_INTERFACES=(eth0). The same applies for cards named eth1 and so forth.
Using the Archlinux Roaming Network Profiles
- Create new profile
- Create a new network profile in /etc/network-profiles/ based on the template file. Let's call it home. Remember the filename you choose! We'll use it to refer to our new profile later.
- Adjust the settings in the new profile to your needs.
- Remove outdated settings from rc.conf
- Remove all interfaces that should be managed by the Network Profiles in the future from INTERFACES.
- Remove any relevant routes from ROUTES.
- Leave the "lo" interface in place.
- Add Network Profile settings to rc.conf
- Add the name of your new network profile to NET_PROFILES=()
- Add the name of your new network profile to NET_PROFILES=()
So much for the quick setup... You can also set NET_PROFILES to "menu" and it will present a dialog/ncurses menu (which requires the dialog package installed) at bootup where you can pick the profile you want. This doesn't work if you use @network (starting network in the background).
Alternatively, you can pass a NET= value on the kernel boot line, telling netcfg which profile you wish to start with.
vmlinuz root=/dev/hda3 vga=773 ro NET=home
Picked from Judd's explanation.
If you want to change your network profile after boot, you can run 'netcfg' as root.
Simple Wireless Autodetection iphitus created an autodetection patch for the official initscripts which has now been imported as standard. Please see here for an explanation of how it works.
There is a workaround for another wireless autodetection that scans the air for known APs and starts the associated profile.
WPA support phydeaux created a great patch for WPA support which has been adopted straight into the main tree and will be in the next release (after 0.7.1). For information about how to use WPA with the Network Profiles see also Ndiswrapper and wpa supplicant.
Wifi-radar This is a nifty little GUI program that lets you switch wireless networks with ease. Simply do the following:
- # pacman -S wifi-radar
- # visudo
Here, add the following line: yourusername ALL=(ALL) NOPASSWD: /usr/bin/wifi-radar Press ESC, then colon (:), then x, then ENTER to save and exit.
- Now, just add wifi-radar to your daemons list in /etc/rc.conf and run wifi-radar from your internet menu, and you're all set. :) If you want to view the available networks or to configure your setup, simply run sudo wifi-radar.
- You might need to edit /etc/conf.d/wifi-radar to set the particular network interface that you want to use.
NB!: I had to set 'Ifup required' to ON to be able to get it to work with my line. Before this, the internet would not connect.
NetworkManager A more advanced network management system for Linux. This is included in various Linux distributions and now can be used in Arch Linux. It is very painless for roaming users, and includes an easy-to-use GUI program for selecting your desired network. One caveat however is that you are prompted for your keyring password every time you log into gnome and the program starts. This most likely won't be fixed until later versions, and can be quite annoying. More information on NetworkManager can be found at: Networkmanager.