FedoraForum.org - Fedora Support Forums and Community
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 55
  1. #1
    scorpio1883 Guest

    [HOW-TO] NDISWRAPPER + WPA_SUPPLICANT WMP54G Broadcom Drivers

    HOW TO NDISWRAPPER + WPA_SUPPLICANT on a WMP54G & WPCI810G both use Broadcom drivers

    This how-to can be used for other drivers b/c the only change you'll have to make to my how-to is the *.inf and *.sys files. I'm not even very specific when i talk about them, so this should work for any card supported by ndiswrapper!

    Information for this howto came from these sites and from other people that helped me...thx to those people. I recommend you read these first, and use my how-to, if you get stuck....
    http://ndiswrapper.sourceforge.net/m.../index.php/WPA
    http://ndiswrapper.sourceforge.net/m...p/Installation

    CHECK THE LINK BELOW TO SEE IF YOUR CARD IS SUPPORTED! Also use this to find the appropriate *.inf and *.sys files needed for ndiswrapper to work...

    http://ndiswrapper.sourceforge.net/m...index.php/List

    I made this How-TO, b/c of the multiple headaches I had getting all of this to work..

    BEFORE GOING ON NOTE! I recommend you update all critical items such as the Kernel, etc, if you're able to that is.

    -----------Beginning------------------
    TURN OFF your router Encryption while doing this.. makes this procedure easier

    The majority of this howto is in the Root Shell, so if i say "make" type that in the Root console...duh

    You need:

    ...ndiswrapper...
    http://downloads.sourceforge.net/ndi...5&big_mirror=0 UPDATED

    ...wireless tools...
    http://pcmcia-cs.sourceforge.net/ftp...ools.28.tar.gz UPDATED

    ...wpa_supplicant... for WPA security... http://hostap.epitest.fi/releases/wp...t-0.5.7.tar.gz UPDATED

    Save these downloads in your home folder, b/c it's easy to access thats why..

    Go to your home directory by "cd /home/...../"

    1. tar -zxvf ndiswrapper-1.2.tar.gz
    2. cd ndiswrapper
    3. make distclean
    4. make
    5. make install

    Go to your home directory again by "cd /home/...../"

    6. tar -zxvf wireless_tools.27.tar.gz
    7. cd wireless tools
    8. make
    9. make install
    10. kedit /etc/ld.so.config ...kedit is like notepad for windon't XP or you can use gedit or nano,etc.

    should look like this:

    /usr/local/lib/
    include ld.so.conf.d/*.conf

    there might be other things there thats normal, but add "/usr/local/lib/" ABOVE include ld.so.......

    11. ldconfig .......which will load ld.so.conf
    ldconfig will only work if you've installed wireless tools

    12. ndiswrapper -i bcwml5.inf
    13. ndiswrapper -l
    "hardware present.." it should say something like this or you've messed something up
    14. modprobe ndiswrapper
    15. dmesg ... it will show ur wlan0 with some mac address
    if dmesg does not show your card and a mac address
    try the steps above again

    wireless tools enables you to use iwconfig, and iwlist, etc

    16. iwconfig ... shows current config

    17. iwlist wlan0 scan ....shows available wireless routers

    18. iwconfig wlan0 essid "put your AP name here" example linksys ...iwconfig wlan0 essid linksys

    MAKE SURE TO BROADCAST your SSID or you won't be able to change your essid

    Add any other necessary items with iwconfig
    such as "iwconfig wlan0 mode Managed", but this can be done in
    system setting > Network

    19. dhclient wlan0 ... you should be able to use your internet after this command, if you followed my advice and disabled your encryption it should work

    If you can use the internet continue on, else go back and try again

    if you can use the internet..

    20. ndiswrapper -m ... doing this puts "alias wlan0 ndiswrapper"
    in /etc/modprobe.config

    21. Goto system settings then network..

    click new > wireless > ndiswrapper > configure it so it starts up at
    boot and whatever else floats your boat...

    22. kedit
    paste this in:

    ################################################## #####
    # NDIS Wrapper Configuration: WIRELESS WLAN0
    DEVICE=wlan0
    ONBOOT=yes
    BOOTPROTO=dhcp #either static or dhcp
    TYPE=Wireless
    MODE=Managed
    SSID="your AP" #Change
    CHANNEL=11 #Change to your channel
    USERCTL=yes
    PEERDNS=no
    KEY=xxxxxxxxx #Change if using Wep or delete if using WPA
    RATE=Auto #Change to example: 54Mb/s or keep as auto your choice
    NICK=wlan0
    ################################################## ##########

    save in /etc/sysconfig/network-scripts/ with the filename: ifcfg-wlan0


    .......Thats it for ndiswrapper, so if thats all you need stop here......

    BEFORE GOING ON NOTE! I recommend you update all critical items such as the Kernel, etc, b/c what you just did will not work on a different kernel. So update! This mainly applies to people that just installed

    If you're all updated, then continue down, else update and repeat..lol. Sucks for you!


    23. In the directory where you saved WPA_SUPPLICANT right click and
    and "Extract Here"

    24. kedit
    paste this in kedit

    CONFIG_DRIVER_NDISWRAPPER=y
    CONFIG_CTRL_IFACE=y

    save as .config in wpa_supplicant folder

    25. "make" .... not make, use the quotes

    26. make ... again without quotes

    27. In root type: Konqueror ...then goto wpa_supplicant folder using the Konqueror window that came up. You do this b/c unless you have root access. You won't be able to copy and paste the necessary files into their appropriate folder. Which is /usr/local/bin.

    28. Copy wpa_supplicant, wpa_passphrase and wpa_cli to /usr/local/bin.

    29. kedit

    paste this in

    #ctrl_interface=/var/run/wpa_supplicant
    network={
    ssid="blah" #change
    psk="mysecret" #change
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    }

    save in /etc as wpa_supplicant.conf

    30. echo /usr/local/bin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -wB >> /etc/sysconfig/network-scripts/ifup-wireless

    ...one whole line not two

    31. echo killall wpa_supplicant > /etc/sysconfig/network-scripts/ifdown-wireless

    ...one whole line not two

    32. chmod +x /etc/sysconfig/network-scripts/ifdown-wireless
    changes access rights so no one but you can see your psk

    33. In root: change directory to wpa_supplicant folder

    34. make install

    33. "Run system-config-network and click on the DNS tab. There you can set the hostname (aka computer name). Double-click the wlan device or edit wlan0 and enable the option to "activate this device when the computer starts." Also enable "auto obtain ip address with dhcp" and "auto obtain DNS info from provider." As for eth0, just uncheck "activate this device when computer starts."" -Heon2574


    Turn the router's encryption back on using wpa-psk with TKIP or AES. CCMP is a.k.a AES, restart computer, it should work after reboot use forum for problems... hope it helps.

    Forgive any grammar errors, etc... and correct me if you find any errors in this Howto
    Last edited by scorpio1883; 24th May 2007 at 06:03 AM.

  2. #2
    scorpio1883 Guest
    Oh by the way i had some issues with system settings -> network until I updated it through up2date so you might not want to use it until you update it. This applies to those using fedora core 4 dvd and you've just installed

  3. #3
    imdeemvp Guest
    Good how-to but to long....you can also install via yum:
    Code:
    yum install ndiswrapper kernel-module-ndiswrapper-$(uname -r)
    and than the configuration. For example and will use the correct fedora commads:
    1
    Code:
    /usr/sbin/ndiswrapper -i <your directory where the inf was copied to>/driver_to_be_use.INF
    2
    Code:
    /usr/sbin/ndiswrapper -l
    3
    Code:
    /sbin/modprobe ndiswrapper
    4. Create an alias in /etc/modprobe.conf:
    Code:
    /usr/sbin/ndiswrapper -m
    when all done run:
    Code:
    system-config-network
    you should see this: ndiswrapper(wlan0) and take from there.

  4. #4
    scorpio1883 Guest
    I'd like to call it in-depth but yes it is long. I try to hand feed those who are brand new to linux, b/c are we trying to keep this "Linux" stuff a secret. If you have a problems with my guide please ask me b/c i've had alot of different problems figuring this out and might be able to help troubleshoot yours

  5. #5
    imdeemvp Guest
    You have a great how-to just modify it and make a little more specific....just see how simple I made it. Trust me your post is greatly appreciated I am just giving you "constructive critisism".

  6. #6
    Join Date
    Mar 2004
    Location
    Westland, Michigan
    Age
    52
    Posts
    2,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Turn encryption on with wpa-psk using TKIP or AES aka CCMP, restart computer,
    I'm a little confused on this part, what are we supposed to do here?
    RHCE and MCSE systems administrator
    Registered Linux User #375155 For More Info or to register yourself

    My Linux box is:
    Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..

  7. #7
    Join Date
    Mar 2004
    Location
    Westland, Michigan
    Age
    52
    Posts
    2,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, figured it out.

    You meant reenable encryption on the router.
    RHCE and MCSE systems administrator
    Registered Linux User #375155 For More Info or to register yourself

    My Linux box is:
    Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..

  8. #8
    scorpio1883 Guest
    How did the How-to work for you? Was it a success? Any other questions? I edited my How-to so it would be a little more clear where you were confused...
    Last edited by scorpio1883; 4th August 2005 at 08:15 AM.

  9. #9
    Join Date
    Mar 2004
    Location
    Westland, Michigan
    Age
    52
    Posts
    2,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did the steps suggested by imdeemvp and then did the remaining steps in your post;

    In terms of confusion

    step 12: Unless you actually read the ndiswrapper links that you posted, I wasn's sure where the heck that bcwml5.inf came from. I thought you just provided the links for more reference if anybody needed them, but without actually reading them, I would have never figured out that I actually needed the Windows driver.

    In my case, I have the Linksys WRT54G and am using a Dell Latitude d610 laptop. I have WPA enabled, but unless I actually leave my router broadcasting the SSID, I cannot pull an IP address from my network. As soon as I broadcast the SSID on my router, I can get an IP. I turn off the SSID broadcast and can no longer pull an IP. Obviously, my preference is to set this up such that I do NOT have to broadcast my SSID.


    Finally, I seem to see VERY SLOW initial connections to pages. When I type www.google.com, it might take 10 seconds before the page actually comes up. Every site is working fine, it just takes a long time to perform the lookup. Anybody else seeing this or know of a way to fix it?
    RHCE and MCSE systems administrator
    Registered Linux User #375155 For More Info or to register yourself

    My Linux box is:
    Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..

  10. #10
    imdeemvp Guest

  11. #11
    scorpio1883 Guest

    Smile

    Part 1
    Alright I fixed that problem. I made a link available, so whomever reads my how-to. They will be able to find there appropriate .inf and .sys files needed by ndiswrapper. So now you can look down the list and if your card is supported by ndiswrapper. It will provide a link to the drivers or tell you where to get them.

    Part 2
    Your concerns about broadcasting your ssid are kind of irrelavant. This is b/c even if you dont broadcast your ssid it can still be found by using different programs such as netstumbler, ethereal, etc. If someone really wanted to break into your router, not broadcasting your ssid is not going to stop them. Using the lastest and greatest encryption will do the trick, plus mac address filtering will also help alittle. A hacker is not going to bother with your router, if it has encryption like wpa-psk with AES, which i recommend or WPA2 is even better. The reason I know this is b/c if you do a simple wireless network search around your neighborhood. I'm sure you'll find atleast one or more routers without any kind of protection. I mean, why would someone bother with a router that they'd have to bruteforce crack. That would take hours or days or maybe even years depending on the creativeness of your passwords. Just make a long password that does not form any reconizable words in the english language and use Caps every other letter and numbers. Use backslashes, etc, anything that your router will allow. I've tried $ and my router likes it but linux doesn't and we seem to have the same setup a "WRT54G". So i would not use the dollar sign at all, but try different things.

    Part 3
    If you're still hell bent on not broadcasting your ssid, and still want to use the internet at the same time, even after my little speech. I believe, if you add "ap_scan=2" without the quotes, and put it in wpa_supplicant.config file in /etc directory. That will allow you to not broadcast your ssid and still connect normally, but I've never tried it, so i'm not sure.
    Put the "ap_scan=2" above network={
    ssid="blah"... and below #ctrl_interface=/var/run/wpa_supplicant.

    Try different numbers, if 2 doesn't work, but i believe the number two will do the job.
    Last edited by scorpio1883; 5th August 2005 at 09:01 PM.

  12. #12
    scorpio1883 Guest
    Also about google not coming up as quickly as you want you might want to go into your /etc/sysconfig/network-scripts/ifcfg-wlan0, and change your RATE. It probably looks like this, if you didn't mess with my ifcfg-wlan0 file i provided, RATE=Auto. Change this to RATE=54Mb/s. 54 Mb/s is the fastest rate the WRT54G can broadcast at. I believe that might make it start alittle faster. I had a similar problem. If this doesn't help search it on this form and/or google search it, but if thats your only problem you're a lucky man. hope this helps...

  13. #13
    scorpio1883 Guest
    Also using YUM is a great way to install something if you have a internet connection already or have all the files needed locally but if you dont have either of those my how-to is better....so there..lol

  14. #14
    Join Date
    Mar 2004
    Location
    Westland, Michigan
    Age
    52
    Posts
    2,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Scorpio,

    I understand what you are saying about the SSID. While I do know that people aren't going to spend the time trying to crack into my router, I try to do as much as possible to keep the risk low. Right now I am doing the following;
    mac filtering
    no dhcp
    no SSID broadcast
    WPA2 key(very long)

    In terms of my speed, I gotta spend a little more time playing with the system. It seems that DNS lookups are just incredibly slow, so not sure the change from Auto to 54 is going to solve that problem.

    I'll give a few things a try and let you know if I find something that takes care of the problem.
    RHCE and MCSE systems administrator
    Registered Linux User #375155 For More Info or to register yourself

    My Linux box is:
    Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..

  15. #15
    Join Date
    Mar 2004
    Location
    Westland, Michigan
    Age
    52
    Posts
    2,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I followed the suggestion from imdeemvp and things are working better.

    When I first ran iwconfig, it wasn't showing my ESSID or my access point MAC. I typed in iwconfig wlan0 essid "essid_key_here" and than it showed up ok. I did a ifdown wlan0 and then couldn't bring wlan0 back up.

    So, I rebooted the box and all is well, seeing my ESSID now with iwconfig and things are working much better in terms of browsing speed.

    I'm not sure what the problem was originally with that ESSID name. I have specified that value in /etc/wpa_supplicant.conf as well as /etc/sysconfig/network-scripts/ifcfg-wlan0.

    Oh well, I added this other trick to my list of troubleshooting steps and now have this wireless working good in Linux.

    Thanks for your help guys.
    RHCE and MCSE systems administrator
    Registered Linux User #375155 For More Info or to register yourself

    My Linux box is:
    Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Broadcom chipset (Linksys WMP54G) IP address problem
    By Bassett in forum Servers & Networking
    Replies: 0
    Last Post: 19th January 2009, 10:03 PM
  2. How-To Ndiswrapper + Wpa_supplicant with Broadcom Drivers
    By scorpio1883 in forum Guides & Solutions (Not For Questions)
    Replies: 0
    Last Post: 19th August 2005, 01:21 AM
  3. WMP54G v. 2 NDISWRAPPER 0.12 Success!
    By scorpio1883 in forum Servers & Networking
    Replies: 0
    Last Post: 2nd July 2005, 07:28 AM
  4. Ndiswrapper WMP54G v.2
    By scorpio1883 in forum Using Fedora
    Replies: 0
    Last Post: 29th June 2005, 10:33 PM
  5. Help with NDisWrapper & WMP54G
    By wolfdreamer in forum Hardware
    Replies: 5
    Last Post: 18th January 2005, 08:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •