Right. Well this is going to be a baptism of fire! You should really treat this as a last resort in cases where there's no easier way. You could easily mess up your system.
You basically need to install the kernel-source, download the drivers, compile then install them.
I'll try and break it down into small steps, but, if you run into any problems it could get messy.
Firstly, you need to install the kernel source. Without wanting to state the obvious, your kernel is the heart of your Linux system, and Mandriva/Mandrake's kernel is pre-compiled from this source code, including drivers. The Madwifi driver is a module that connects to the kernel, which is why it needs the kernel source code when we compile it.
From a console, switch to root, and enter the following to install the kernel source, the compiler and the cvs client:
urpmi kernel-source gcc cvs
You can also accomplish the same thing from Mandrake's control center. It's fairly large...
Next step is to download the Madwifi drivers. There isn't a package to download, so we need to get them from the development repository. Back at the console, cut and paste the following (ignore my itallics!):
cvs -d:pserver:email@example.com:/cvsroot/madwifi login
Just press return when asked for a password
cvs -z3 -d:pserver:firstname.lastname@example.org:/cvsroot/madwifi co -P madwifi
This will then download the source code for the driver. I really hope this isn't putting you off Linux for life... Change to the new madwifi
directory, build the package and install by typing the following:
sudo make install
As mentioned in my first message, this has placed the drivers in /lib/modules/2.6[VERSION]mdkcustom/net
. VERSION should look something like '11-6'. We need to move the files to /lib/modules/2.6[VERSION]mdk/. For me, I would use:
cp -rf /lib/modules/2.6.11-6mdkcustom/net/* /lib/modules/2.6.11-6mdk/kernel/net/
But you may need to change the version number to match your installed kernel. The final step is to make sure the driver is automatically loaded. The following command appends the right line to the module configurating script:
cp /etc/modprobe.conf /etc/modprobe.conf_backup
echo "alias ath0 ath_pci" >>/etc/modprobe.conf
Finally, load the driver:
You should then be able to configure your wireless card from Mandrake's control center. Good Luck!!!