Thursday, February 17, 2011

My AC adaptor of the D-Link DI-624 router broken this week!

I decided to upgrade my wireless router.  I ordered D-LINK DIR-655 from Amazon.com (80 bucks - I'm an Amazon website fan - I watched that company stock went up from 65 dollars/share to 183 dollars/share).

Get back to the real issue here.  Tonight I can not get my Fedora to connect to the new wireless router.

I accidentally un-installed all the wireless-tools.  Even command line iwconfig did not work.  I got into trouble.  I went to my windows PC and downloaded wireless-tools-29-5.1.fc12.x86_64.rpm and wpa_supplicant-0.7.3.tar.gz.  Then, I transferred them to my Fedora computer through external hard disk since the internet and intranet did not work and my wireless router is on the first floor.  I was not planning to unplug my Fedora and carry that big guy to the first floor.  Anyway, it worked fine.  The rpm did not have Public Key.  I changed /etc/yum.conf and set gbgcheck=0. 

#sudo yum localinstall wireless-tools-29-5.1.fc12.x86_64.rpm 
worked magically. 

For wpa_supplicant-0.7.3.tar.gz, it contains source code.  I extracted it and went into the src folder.
#make
#sudo make install

You can use wpa_gui or command line.

See http://hostap.epitest.fi/wpa_supplicant/wpa_gui.html

I did not use the gui of wpa.  I opened Network Connections and build the new wireless. 




#ifconfig
The system worked.

Use wpa software: http://www.linuxforums.org/forum/red-hat-fedora-linux/99133-setting-up-wpa-wireless-connection.html

1)
#gedit /etc/wpa_supplicant/wpa_supplicant.conf


Ctrl_interface = /var/run /wpa_supplicant 

Ctrl_interface_group = wheel

Network = (
Ssid = "YOUR_NAME_SSID"
Key_mgmt # = "WPA-PSK"
Psk = "YOURPASS_OR_KEY"
)


2) make association
# wpa_supplicant -B -dd -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

wait a few seconds ...

3) #dhclient wlan0

This experience:
Commands:
#ifconfig wlan1 up
#iwlist wlan1 scan
#iwconfig wlan1 essid yournet
#iwconfig wlan1 key yourkeyinHex
#iwconfig

List the routes:
#netstat -r

Command line connect wireless:
#sudo iwconfig
#iwconfig wlan1 essid mynet key mykeyinHEX
#ifconfig wlan1 up
#dhclient wlan1
#iwconfig wlan1


Hope those will be helpful for someone who has the same problem as I do.

No comments:

Post a Comment