Thursday, January 8, 2009

Getting wireless working in Fedora 10

My desktop has a Linksys wireless usb N adapter. After installing Fedora 10 I have having extreme difficulty using the network manager to connect to my wireless network. The alternative was to turn off network manager and use wpa_supplicant. To do this I hade to go through a few steps. First make sure that your wireless adpater is set up correctly with ndiswrapper there are a ton of guides out there for how to do this. If you have my adapter make sure you are using 32 bit Fedora 10, as they're currently aren't any 64 bit driver options. Second you'll need to setup a config file for wpa_supplicant. The config file is usually under something like /etc/wpa_supplicant/wpa_supplicant.conf. My file looks like this

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="network1"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="somepassword"
}


The password will be encrypted to do get the encrypted form of your password, you'll need to run a "wpa_passphrase + your network name + your network password". Then copy and pass the encytped passphrase into the .conf file. Now you should be ready to connect to your network. There are two commands neccesary to complete this. The first command to run is

wpa_supplicant -d -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

The command to run next is

dhclient wlan0

It was wlan0 for me, but that will be the name of whatever your adpater is recognized as. The first command will cause the adapter to connect to the router. The dhclient command will actually retrive an i.p address from the router. Sometimes it takes a few minutes after running the dhclient command for anything to happen. I hope this helps. Also you will probably want to create a startup script for these two commands, so that your computer connects upon startup. Otherwise you'll have to run these manually each time.

No comments: