Установка ModuleAssistant
Step 1 : Installing m-a
First we need to install module-assistant (you can re-run that command if you aren't sure).
apt-get install module-assistant
Then we get module-assistant to download the headers corresponding to the current kernel, and other 'build-essential' tools... simply run :
m-a prepare
Step 2 : Update the list of modules
That's as easy as running
m-a update
Step 3 : Build and Install the module
Finally, assuming you want the "ndiswrapper" module, simply run :
m-a a-i ndiswrapper
The "a-i" stands for "auto-install" which means "download the module source, compile it for the current kernel and install it".
Interactive mode
If you don't like typing commands, you can run module-assistant in interactive mode. simply type :
m-a
This will take you to a menu with the options: Overview, Update, Prepare, Select and Exit. Prepare will configure and install any packages you need in order to compile kernel modules (e.g. kernel headers, gcc, etc). The Select menu takes you to a screen where you can select which modules you want to compile.
Select the modules using the arrow keys and the space bar. Press return when you are done.
This will take you to the final menu where you will be given options to build and install the modules. Note: You can use Synaptic to remove any modules you have installed.