Results 1 to 2 of 2
Hello.
This is my guide on how to get wireless network cards to work in linux even if they don't have linux drivers. This guide should work for most cards ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-13-2006 #1
Wireless Network Cards in Linux
Hello.
This is my guide on how to get wireless network cards to work in linux even if they don't have linux drivers. This guide should work for most cards under most distros. For this tutorial I am using Fedora Core 5 with a Netgear WG511v2.
ONE OF THE MAIN PROBLEMS THAT PEOPLE HAVE IS THAT THEY ARE IN THE WRONG ACCOUNT. BEFORE YOU START ANY OF THIS MAKE SURE THAT YOU ARE LOGGED INTO THE root ACCOUNT!
First you will need to prepare for installing ndiswrapper and your network card. First you will need to get Windows XP drivers for your wireless network card. If you are using a Netgear WG511v2 like I was then you can get the drivers from here or from you installation cd. The drivers from the link before are on my server so if they don't work then my server is not on which probably means my computer is off, if this is the case then wait till it is back on or find the drivers yourself. Now this is very important, copy the directory with all the driver files in it to / and rename the folderThis is very very important so make sure that there is a folder in / called wg511v2driver with files inside it. Now that you have got the Windows XP drivers you will need ndiswrapper to get them to work with your distribution of linux, in my case Fedora Core 5. If your distribution comes with ndiswrapper then you can skip the downloading and installing of ndiswrapper. You can check to see if you have ndiswrapper by opening Terminal and typingCode:wg511v2driver
and if this says install/manage Windows drivers in ndiswrapper then it is already installed but if it doesn't you will need to follow the next steps to download and install it.Code:ndiswrapper
DOWNLOADING NDISWRAPPER
You can download ndiswrapper from http://prdownloads.sourceforge.net/n...ar.gz?download and choosing the mirror that is closest to you. Once you have downloaded the file move it to the / directory.
INSTALLING NDISWRAPPER
To install ndiswrapper you will need the kernel source. If you have never heard of this before then you wont have it so you will need to download it. This is easy. Make sure that you have updated you kernel and then go into terminal and typethis will work in most distributions of linux. Now that you have installed you kernel sources you will need to make a link to them so that ndiswrapper can install properly. This step is important. To see if there is a link already go to /lib/modules/KERNELVERSION/ and replace KERNELVERSION with your kernel that you downloaded the sources for. In this directory there should be a file/shortcut called build. If this link is broken then you will need do the next step but if it isn't then you don't need to. If you link is broken you will have to open terminal and typeCode:package kernel-source<kernel-version>.rpm
and this should create the link. If the link is still broken then you have done one of the previous steps wrong, probably the downloading of the kernel sources. Remember to replace KERNELVERSION with the version of your kernel that you downloaded the source for. Now that everything is ready you can now install ndiswrapper.Code:ln -s /usr/src/linux-<kernel-version> /lib/modules/KERNELVERSION/build
Go to / where you moved the ndiswrapper download to. Extract the contents of the archive by typingin Terminal. You should replace VERSION with the version of ndiswrapper you downloaded. In my case I downloaded ndiswrapper 1.25 so I would typeCode:tar -zxvf ndiswrapper-VERSION.tar.gz
in terminal. This should extract the contents of the archive to a folder called ndiswrapper-VERSION in the / directory. Now open terminal again and typeCode:tar -zxvf ndiswrapper-1.25.tar.gz
and remember to replace VERSION with the version of ndiswrapper you have. Also remember that there is a space between cd and /ndiswrapper.Code:cd /ndiswrapper-VERSION
Now that you have everything ready for the installation we will now begin to install ndiswrapper. Open terminal again and typeagain also remebering to replace VERSION with the version of ndiswrapper you use. Once you have typed that keep Terminal open and typeCode:cd /ndiswrapper-VERSION
and once it has done that typeCode:make distclean
. Once you have done that KEEP Terminal open and typeCode:make
and remember you should be in the root account all the way through this tutorial. ndiswrapper should now be installed so type ndiswrapper in terminal and if it works there will be a list of options but if it doesn't then you have done something wrong earlier in this guide.Code:make install
INSTALLING THE WINDOWS DRIVERS IN LINUX
Now that ndiswrapper is installed you are about 2/3 of the way there. There should be a folder in / calledand if this is not there then go back to the top of this tutorial. Go into this directory and there should be a file ending in .inf If you have a Netgear WG511v2 Card then this should be called WG511v2.inf if you got it from my server or from your installation cd. Make sure that this file is there and if it isn't then put them there. It is important to remember the name of the .inf file in the directory. Now typeCode:wg551v2driver
in Terminal and make sure you type it right. Now to check if this has worked typeCode:ndiswrapper -i /wg511v2driver/wg511v2.inf
in Terminal and if it shows the name of the driver then it has worked and if it doesn't then you have done something wrong.Code:ndiswrapper -l
FINAL STEPS
Congratulations you are almost finished.
Typeand if there is no error message then you can continue. In Terminal now typeCode:depmod -a
and if this works then the driver is loaded.Code:modprobe ndiswrapper
Now open Terminal and typethenCode:iwlist wlan0 scan
but replace NETWORKNAME with the name of you network, in my case it was NETGEAR. Almost all home networks are managed unless you changed them so typeCode:iwconfig wlan0 essid NETWORKNAME
and if it isn't managed replace Managed with the type of network it is suck as AdHOC. Now typeCode:iwconfig wlan0 mode Managed
again. Now for the very last step.Code:iwlist wlan0 scan
Different Linux Distros have a different command so I will list them all.
orCode:ifconfig wlan0 up
orCode:dhclient wlan0
so just type all of them in one by one until you get one to work. In Fedora Core 5 the correct command is dCode:dhcpcd wlan0
Thats it.Code:hclient wlan0
The only problem is every time you turn on you computer you will have to enter all the FINAL STEPS again. I have created a small shell script that can do this for you except it only works with Fedora Core 5 and a WG511v2 Card.
To get it go to http://82.20.7.129/netconnect.sh and once it is downloaded run it.
That program assumes that your network is called NETGEAR and its Managed.
If your network is called soemthing else then right click the the file netconnect.sh and click Open With Other Application and choose text editor. When its open change NETGEAR to the name of your network and change Managed to the type of your network.
Thanks for reading and using my tutorial. If you have any questions, found any errors in my tutorial or any errors in my shell script then post here.
If any of the links to 82.20.7.129 dont work then my server is probably down so try it again in a few hours.
Thanks!!!
- 10-14-2006 #2
Server
I have fixed all problems with the link to the WG511v2 driver.
My server is up and running again.
If you want to download via ftp instead go to ftp://82.20.6.192/ and double clicking on wg511v2driver.tar


Reply With Quote
