LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-18-2006, 10:15 AM   #1
Mr_Oz
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
WPA with Fedora 4


Does anybosy have any information on step by step on how to get WPA working on Fedora 4? Will it be built in in 5?
 
Old 02-18-2006, 11:27 AM   #2
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
My ndiswrapper and wpa_supplicant howto for wpa

It is always a good idea to have wireless security by enabling WPA or WPA2. In order to do this obtain an application called the wpa_supplicant which can be downloaded here
http://hostap.epitest.fi/wpa_supplicant

I have had problems with the latest stable version which was 0.3.9 and had to go with the latest developement version wpa_supplicant-0.4.5.tar.gz. Likewise for different versions of ndiswrapper. After extracting wpa_supplicant create a .config file with the following options to get it to work with the ndiswrapper and then make it and copy the appropriate files into their correct directory.
Code:
[root@localhost rpms]# tar -xvzf wpa_supplicant-0.4.5.tar.gz
[root@localhost rpms]# cd wpa_supplicant-0.4.5
[root@localhost wpa_supplicant]# CONFIG_DRIVER_NDISWRAPPER=y > .config
[root@localhost wpa_supplicant]# CONFIG_CTRL_IFACE=y >> .config
[root@localhost wpa_supplicant]# make
[root@localhost wpa_supplicant]# cp wpa_cli wpa_supplicant wpa_passphrase 
                                    /usr/local/bin/
Now make a configuration file with the appropriate security settings in /etc/. Mine reads as follows for a WPA TKIP configuration.
Code:
[root@localhost wpa_supplicant-0.4.5]# nano /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant # for wpa_cli support

network={
  ssid="joeshmoe" #Access Point name
  psk="mySecret"  #My WPA password (plaintext or encrypted)
  key_mgmt=WPA-PSK
  proto=WPA
  pairwise=TKIP
  group=TKIP
}
Now see if things are working. It is important that you configure the access point before you start wpa_supplicant.
Code:
[root@localhost ~]# iwconfig wlan0 essid any
[root@localhost ~]# ifconfig wlan0 up
[root@localhost ~]# wpa_supplicant -Dndiswrapper 
                    -iwlan0 -c/etc/wpa_supplicant.conf -Bw
[root@localhost ~]# dhclient wlan0
If there are any errors, replace the wpa_supplicant option -Bw with -dd and try to debug the output to find the problem.

Now automate this process by issueing the command
Code:
[root@localhost root]# echo "/usr/local/bin/wpa_supplicant -Dndiswrapper 
                                       -iwlan0 -c/etc/wpa_supplicant.conf -Bw" >>  
                                       /etc/sysconfig/network-scripts/ifup-wireless
If something goes wrong get ethereal, run tethereal in a shell, if the AP does not reply to your DHCP Discover with an Offer, then there is probably a problem with your encryption method.

Hopefully this will help, I create notes on everything I do and this was copy and pasted from that.

Last edited by accessrichard; 02-18-2006 at 11:32 AM.
 
Old 02-18-2006, 03:57 PM   #3
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Rep: Reputation: 30
Hi,
just download wpa_supplicant.rpm from :
http://rpm.pbone.net/index.php3/stat....i386.rpm.html

it will Required libc.so.6, download it also.

then just creat a file /etc/wpa_supplicant.conf

write in side it :

network={
ssid="your_network_name"
psk="your_wireless_key"
}

then run this command:

wpa_supplicant -D (your wireless driver type) -i (your wireless interface) -c /etc/wpa_supplicant.conf

EX: wpa_supplicant -D ipw -i eth1 -c /etc/wpa_supplicant.conf

then run the dhcp client for your ethernet.

dhclient eth1

Last edited by Dr_Death_UAE; 02-18-2006 at 03:58 PM.
 
Old 02-19-2006, 05:38 PM   #4
Mr_Oz
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks guys for the help! It is working just great!

Thank again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wpa-psk, ipw2200 on Fedora Core 4 doesn't work RoyalGala Linux - Wireless Networking 3 01-25-2006 03:35 PM
WPA on PCLinuxOS? valnar Linux - Wireless Networking 1 12-20-2005 09:38 AM
Wpa Help shinny Linux - Wireless Networking 2 08-28-2005 09:53 AM
WPC54g, Fedora Core 3, WPA, help needed IwritePatents Linux - Wireless Networking 8 02-24-2005 11:13 AM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration